AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScheduledAutoTuneDetails.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/opensearch/model/ScheduledAutoTuneActionType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/opensearch/model/ScheduledAutoTuneSeverityType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace OpenSearchService
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_OPENSEARCHSERVICE_API ScheduledAutoTuneDetails();
41 AWS_OPENSEARCHSERVICE_API ScheduledAutoTuneDetails(Aws::Utils::Json::JsonView jsonValue);
42 AWS_OPENSEARCHSERVICE_API ScheduledAutoTuneDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
51 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
52 inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
53 inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
54 inline ScheduledAutoTuneDetails& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
55 inline ScheduledAutoTuneDetails& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
57
59
62 inline const ScheduledAutoTuneActionType& GetActionType() const{ return m_actionType; }
63 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
64 inline void SetActionType(const ScheduledAutoTuneActionType& value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
65 inline void SetActionType(ScheduledAutoTuneActionType&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); }
67 inline ScheduledAutoTuneDetails& WithActionType(ScheduledAutoTuneActionType&& value) { SetActionType(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetAction() const{ return m_action; }
75 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
76 inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
77 inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
78 inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
79 inline ScheduledAutoTuneDetails& WithAction(const Aws::String& value) { SetAction(value); return *this;}
80 inline ScheduledAutoTuneDetails& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
81 inline ScheduledAutoTuneDetails& WithAction(const char* value) { SetAction(value); return *this;}
83
85
89 inline const ScheduledAutoTuneSeverityType& GetSeverity() const{ return m_severity; }
90 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
91 inline void SetSeverity(const ScheduledAutoTuneSeverityType& value) { m_severityHasBeenSet = true; m_severity = value; }
92 inline void SetSeverity(ScheduledAutoTuneSeverityType&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
94 inline ScheduledAutoTuneDetails& WithSeverity(ScheduledAutoTuneSeverityType&& value) { SetSeverity(std::move(value)); return *this;}
96 private:
97
99 bool m_dateHasBeenSet = false;
100
101 ScheduledAutoTuneActionType m_actionType;
102 bool m_actionTypeHasBeenSet = false;
103
104 Aws::String m_action;
105 bool m_actionHasBeenSet = false;
106
108 bool m_severityHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace OpenSearchService
113} // namespace Aws
AWS_OPENSEARCHSERVICE_API ScheduledAutoTuneDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ScheduledAutoTuneDetails & WithDate(const Aws::Utils::DateTime &value)
ScheduledAutoTuneDetails & WithAction(const Aws::String &value)
ScheduledAutoTuneDetails & WithAction(const char *value)
AWS_OPENSEARCHSERVICE_API ScheduledAutoTuneDetails(Aws::Utils::Json::JsonView jsonValue)
const ScheduledAutoTuneActionType & GetActionType() const
ScheduledAutoTuneDetails & WithActionType(ScheduledAutoTuneActionType &&value)
ScheduledAutoTuneDetails & WithSeverity(ScheduledAutoTuneSeverityType &&value)
const ScheduledAutoTuneSeverityType & GetSeverity() const
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ScheduledAutoTuneDetails & WithActionType(const ScheduledAutoTuneActionType &value)
void SetSeverity(const ScheduledAutoTuneSeverityType &value)
void SetSeverity(ScheduledAutoTuneSeverityType &&value)
ScheduledAutoTuneDetails & WithAction(Aws::String &&value)
ScheduledAutoTuneDetails & WithDate(Aws::Utils::DateTime &&value)
void SetActionType(const ScheduledAutoTuneActionType &value)
void SetActionType(ScheduledAutoTuneActionType &&value)
ScheduledAutoTuneDetails & WithSeverity(const ScheduledAutoTuneSeverityType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue