AWS SDK for C++  1.9.97
AWS SDK for C++
ScheduledAutoTuneDetails.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace ElasticsearchService
25 {
26 namespace Model
27 {
28 
38  {
39  public:
44 
45 
49  inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
50 
54  inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
55 
59  inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
60 
64  inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
65 
69  inline ScheduledAutoTuneDetails& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
70 
74  inline ScheduledAutoTuneDetails& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
75 
76 
81  inline const ScheduledAutoTuneActionType& GetActionType() const{ return m_actionType; }
82 
87  inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
88 
93  inline void SetActionType(const ScheduledAutoTuneActionType& value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
94 
99  inline void SetActionType(ScheduledAutoTuneActionType&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); }
100 
105  inline ScheduledAutoTuneDetails& WithActionType(const ScheduledAutoTuneActionType& value) { SetActionType(value); return *this;}
106 
111  inline ScheduledAutoTuneDetails& WithActionType(ScheduledAutoTuneActionType&& value) { SetActionType(std::move(value)); return *this;}
112 
113 
117  inline const Aws::String& GetAction() const{ return m_action; }
118 
122  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
123 
127  inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
128 
132  inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
133 
137  inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
138 
142  inline ScheduledAutoTuneDetails& WithAction(const Aws::String& value) { SetAction(value); return *this;}
143 
147  inline ScheduledAutoTuneDetails& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
148 
152  inline ScheduledAutoTuneDetails& WithAction(const char* value) { SetAction(value); return *this;}
153 
154 
159  inline const ScheduledAutoTuneSeverityType& GetSeverity() const{ return m_severity; }
160 
165  inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
166 
171  inline void SetSeverity(const ScheduledAutoTuneSeverityType& value) { m_severityHasBeenSet = true; m_severity = value; }
172 
177  inline void SetSeverity(ScheduledAutoTuneSeverityType&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
178 
183  inline ScheduledAutoTuneDetails& WithSeverity(const ScheduledAutoTuneSeverityType& value) { SetSeverity(value); return *this;}
184 
189  inline ScheduledAutoTuneDetails& WithSeverity(ScheduledAutoTuneSeverityType&& value) { SetSeverity(std::move(value)); return *this;}
190 
191  private:
192 
193  Aws::Utils::DateTime m_date;
194  bool m_dateHasBeenSet;
195 
196  ScheduledAutoTuneActionType m_actionType;
197  bool m_actionTypeHasBeenSet;
198 
199  Aws::String m_action;
200  bool m_actionHasBeenSet;
201 
203  bool m_severityHasBeenSet;
204  };
205 
206 } // namespace Model
207 } // namespace ElasticsearchService
208 } // namespace Aws
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::WithActionType
ScheduledAutoTuneDetails & WithActionType(const ScheduledAutoTuneActionType &value)
Definition: ScheduledAutoTuneDetails.h:105
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::SetDate
void SetDate(Aws::Utils::DateTime &&value)
Definition: ScheduledAutoTuneDetails.h:64
Aws::ElasticsearchService::Model::ScheduledAutoTuneActionType
ScheduledAutoTuneActionType
Definition: ScheduledAutoTuneActionType.h:17
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::SetAction
void SetAction(Aws::String &&value)
Definition: ScheduledAutoTuneDetails.h:132
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::ScheduledAutoTuneDetails
ScheduledAutoTuneDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::WithSeverity
ScheduledAutoTuneDetails & WithSeverity(ScheduledAutoTuneSeverityType &&value)
Definition: ScheduledAutoTuneDetails.h:189
DateTime.h
Aws::ElasticsearchService::Model::ScheduledAutoTuneSeverityType
ScheduledAutoTuneSeverityType
Definition: ScheduledAutoTuneSeverityType.h:17
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::DateHasBeenSet
bool DateHasBeenSet() const
Definition: ScheduledAutoTuneDetails.h:54
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::GetSeverity
const ScheduledAutoTuneSeverityType & GetSeverity() const
Definition: ScheduledAutoTuneDetails.h:159
ScheduledAutoTuneSeverityType.h
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::SeverityHasBeenSet
bool SeverityHasBeenSet() const
Definition: ScheduledAutoTuneDetails.h:165
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::SetAction
void SetAction(const char *value)
Definition: ScheduledAutoTuneDetails.h:137
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::WithActionType
ScheduledAutoTuneDetails & WithActionType(ScheduledAutoTuneActionType &&value)
Definition: ScheduledAutoTuneDetails.h:111
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::SetSeverity
void SetSeverity(const ScheduledAutoTuneSeverityType &value)
Definition: ScheduledAutoTuneDetails.h:171
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::WithAction
ScheduledAutoTuneDetails & WithAction(const Aws::String &value)
Definition: ScheduledAutoTuneDetails.h:142
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails
Definition: ScheduledAutoTuneDetails.h:38
ScheduledAutoTuneActionType.h
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::SetAction
void SetAction(const Aws::String &value)
Definition: ScheduledAutoTuneDetails.h:127
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::WithAction
ScheduledAutoTuneDetails & WithAction(Aws::String &&value)
Definition: ScheduledAutoTuneDetails.h:147
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::operator=
ScheduledAutoTuneDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::WithSeverity
ScheduledAutoTuneDetails & WithSeverity(const ScheduledAutoTuneSeverityType &value)
Definition: ScheduledAutoTuneDetails.h:183
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::WithAction
ScheduledAutoTuneDetails & WithAction(const char *value)
Definition: ScheduledAutoTuneDetails.h:152
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::SetDate
void SetDate(const Aws::Utils::DateTime &value)
Definition: ScheduledAutoTuneDetails.h:59
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::SetActionType
void SetActionType(const ScheduledAutoTuneActionType &value)
Definition: ScheduledAutoTuneDetails.h:93
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::WithDate
ScheduledAutoTuneDetails & WithDate(Aws::Utils::DateTime &&value)
Definition: ScheduledAutoTuneDetails.h:74
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::GetAction
const Aws::String & GetAction() const
Definition: ScheduledAutoTuneDetails.h:117
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::GetActionType
const ScheduledAutoTuneActionType & GetActionType() const
Definition: ScheduledAutoTuneDetails.h:81
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::GetDate
const Aws::Utils::DateTime & GetDate() const
Definition: ScheduledAutoTuneDetails.h:49
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::WithDate
ScheduledAutoTuneDetails & WithDate(const Aws::Utils::DateTime &value)
Definition: ScheduledAutoTuneDetails.h:69
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::SetSeverity
void SetSeverity(ScheduledAutoTuneSeverityType &&value)
Definition: ScheduledAutoTuneDetails.h:177
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::ActionTypeHasBeenSet
bool ActionTypeHasBeenSet() const
Definition: ScheduledAutoTuneDetails.h:87
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::ScheduledAutoTuneDetails
ScheduledAutoTuneDetails()
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::SetActionType
void SetActionType(ScheduledAutoTuneActionType &&value)
Definition: ScheduledAutoTuneDetails.h:99
Aws::ElasticsearchService::Model::ScheduledAutoTuneDetails::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: ScheduledAutoTuneDetails.h:122