AWS SDK for C++  1.9.97
AWS SDK for C++
AutoTuneStatus.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace ElasticsearchService
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
47 
51  inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
52 
56  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
57 
61  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
62 
66  inline AutoTuneStatus& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
67 
71  inline AutoTuneStatus& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
72 
73 
77  inline const Aws::Utils::DateTime& GetUpdateDate() const{ return m_updateDate; }
78 
82  inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; }
83 
87  inline void SetUpdateDate(const Aws::Utils::DateTime& value) { m_updateDateHasBeenSet = true; m_updateDate = value; }
88 
92  inline void SetUpdateDate(Aws::Utils::DateTime&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::move(value); }
93 
97  inline AutoTuneStatus& WithUpdateDate(const Aws::Utils::DateTime& value) { SetUpdateDate(value); return *this;}
98 
102  inline AutoTuneStatus& WithUpdateDate(Aws::Utils::DateTime&& value) { SetUpdateDate(std::move(value)); return *this;}
103 
104 
108  inline int GetUpdateVersion() const{ return m_updateVersion; }
109 
113  inline bool UpdateVersionHasBeenSet() const { return m_updateVersionHasBeenSet; }
114 
118  inline void SetUpdateVersion(int value) { m_updateVersionHasBeenSet = true; m_updateVersion = value; }
119 
123  inline AutoTuneStatus& WithUpdateVersion(int value) { SetUpdateVersion(value); return *this;}
124 
125 
129  inline const AutoTuneState& GetState() const{ return m_state; }
130 
134  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
135 
139  inline void SetState(const AutoTuneState& value) { m_stateHasBeenSet = true; m_state = value; }
140 
144  inline void SetState(AutoTuneState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
145 
149  inline AutoTuneStatus& WithState(const AutoTuneState& value) { SetState(value); return *this;}
150 
154  inline AutoTuneStatus& WithState(AutoTuneState&& value) { SetState(std::move(value)); return *this;}
155 
156 
161  inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
162 
167  inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
168 
173  inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
174 
179  inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
180 
185  inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
186 
191  inline AutoTuneStatus& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
192 
197  inline AutoTuneStatus& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
198 
203  inline AutoTuneStatus& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
204 
205 
209  inline bool GetPendingDeletion() const{ return m_pendingDeletion; }
210 
214  inline bool PendingDeletionHasBeenSet() const { return m_pendingDeletionHasBeenSet; }
215 
219  inline void SetPendingDeletion(bool value) { m_pendingDeletionHasBeenSet = true; m_pendingDeletion = value; }
220 
224  inline AutoTuneStatus& WithPendingDeletion(bool value) { SetPendingDeletion(value); return *this;}
225 
226  private:
227 
228  Aws::Utils::DateTime m_creationDate;
229  bool m_creationDateHasBeenSet;
230 
231  Aws::Utils::DateTime m_updateDate;
232  bool m_updateDateHasBeenSet;
233 
234  int m_updateVersion;
235  bool m_updateVersionHasBeenSet;
236 
237  AutoTuneState m_state;
238  bool m_stateHasBeenSet;
239 
240  Aws::String m_errorMessage;
241  bool m_errorMessageHasBeenSet;
242 
243  bool m_pendingDeletion;
244  bool m_pendingDeletionHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace ElasticsearchService
249 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::ElasticsearchService::Model::AutoTuneStatus::WithUpdateDate
AutoTuneStatus & WithUpdateDate(Aws::Utils::DateTime &&value)
Definition: AutoTuneStatus.h:102
Aws::ElasticsearchService::Model::AutoTuneStatus::GetState
const AutoTuneState & GetState() const
Definition: AutoTuneStatus.h:129
Aws::ElasticsearchService::Model::AutoTuneStatus::SetErrorMessage
void SetErrorMessage(Aws::String &&value)
Definition: AutoTuneStatus.h:179
Aws::ElasticsearchService::Model::AutoTuneStatus::WithUpdateVersion
AutoTuneStatus & WithUpdateVersion(int value)
Definition: AutoTuneStatus.h:123
Aws::ElasticsearchService::Model::AutoTuneState
AutoTuneState
Definition: AutoTuneState.h:17
Aws::ElasticsearchService::Model::AutoTuneStatus::operator=
AutoTuneStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
DateTime.h
Aws::ElasticsearchService::Model::AutoTuneStatus::GetPendingDeletion
bool GetPendingDeletion() const
Definition: AutoTuneStatus.h:209
Aws::ElasticsearchService::Model::AutoTuneStatus
Definition: AutoTuneStatus.h:35
Aws::ElasticsearchService::Model::AutoTuneStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ElasticsearchService::Model::AutoTuneStatus::WithErrorMessage
AutoTuneStatus & WithErrorMessage(Aws::String &&value)
Definition: AutoTuneStatus.h:197
Aws::ElasticsearchService::Model::AutoTuneStatus::WithErrorMessage
AutoTuneStatus & WithErrorMessage(const char *value)
Definition: AutoTuneStatus.h:203
Aws::ElasticsearchService::Model::AutoTuneStatus::SetErrorMessage
void SetErrorMessage(const char *value)
Definition: AutoTuneStatus.h:185
Aws::ElasticsearchService::Model::AutoTuneStatus::UpdateDateHasBeenSet
bool UpdateDateHasBeenSet() const
Definition: AutoTuneStatus.h:82
Aws::ElasticsearchService::Model::AutoTuneStatus::WithState
AutoTuneStatus & WithState(const AutoTuneState &value)
Definition: AutoTuneStatus.h:149
Aws::ElasticsearchService::Model::AutoTuneStatus::SetState
void SetState(AutoTuneState &&value)
Definition: AutoTuneStatus.h:144
Aws::ElasticsearchService::Model::AutoTuneStatus::StateHasBeenSet
bool StateHasBeenSet() const
Definition: AutoTuneStatus.h:134
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::AutoTuneStatus::SetUpdateVersion
void SetUpdateVersion(int value)
Definition: AutoTuneStatus.h:118
Aws::ElasticsearchService::Model::AutoTuneStatus::SetCreationDate
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: AutoTuneStatus.h:61
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::AutoTuneStatus::CreationDateHasBeenSet
bool CreationDateHasBeenSet() const
Definition: AutoTuneStatus.h:51
Aws::ElasticsearchService::Model::AutoTuneStatus::SetErrorMessage
void SetErrorMessage(const Aws::String &value)
Definition: AutoTuneStatus.h:173
Aws::ElasticsearchService::Model::AutoTuneStatus::PendingDeletionHasBeenSet
bool PendingDeletionHasBeenSet() const
Definition: AutoTuneStatus.h:214
Aws::ElasticsearchService::Model::AutoTuneStatus::GetErrorMessage
const Aws::String & GetErrorMessage() const
Definition: AutoTuneStatus.h:161
Aws::ElasticsearchService::Model::AutoTuneStatus::AutoTuneStatus
AutoTuneStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ElasticsearchService::Model::AutoTuneStatus::SetState
void SetState(const AutoTuneState &value)
Definition: AutoTuneStatus.h:139
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::AutoTuneStatus::SetPendingDeletion
void SetPendingDeletion(bool value)
Definition: AutoTuneStatus.h:219
Aws::ElasticsearchService::Model::AutoTuneStatus::WithCreationDate
AutoTuneStatus & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: AutoTuneStatus.h:71
Aws::ElasticsearchService::Model::AutoTuneStatus::SetUpdateDate
void SetUpdateDate(Aws::Utils::DateTime &&value)
Definition: AutoTuneStatus.h:92
Aws::ElasticsearchService::Model::AutoTuneStatus::SetCreationDate
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: AutoTuneStatus.h:56
Aws::ElasticsearchService::Model::AutoTuneStatus::WithState
AutoTuneStatus & WithState(AutoTuneState &&value)
Definition: AutoTuneStatus.h:154
Aws::ElasticsearchService::Model::AutoTuneStatus::WithPendingDeletion
AutoTuneStatus & WithPendingDeletion(bool value)
Definition: AutoTuneStatus.h:224
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::AutoTuneStatus::AutoTuneStatus
AutoTuneStatus()
Aws::ElasticsearchService::Model::AutoTuneStatus::WithCreationDate
AutoTuneStatus & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: AutoTuneStatus.h:66
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::AutoTuneStatus::GetUpdateVersion
int GetUpdateVersion() const
Definition: AutoTuneStatus.h:108
Aws::ElasticsearchService::Model::AutoTuneStatus::SetUpdateDate
void SetUpdateDate(const Aws::Utils::DateTime &value)
Definition: AutoTuneStatus.h:87
Aws::ElasticsearchService::Model::AutoTuneStatus::GetUpdateDate
const Aws::Utils::DateTime & GetUpdateDate() const
Definition: AutoTuneStatus.h:77
Aws::ElasticsearchService::Model::AutoTuneStatus::ErrorMessageHasBeenSet
bool ErrorMessageHasBeenSet() const
Definition: AutoTuneStatus.h:167
AutoTuneState.h
Aws::ElasticsearchService::Model::AutoTuneStatus::WithUpdateDate
AutoTuneStatus & WithUpdateDate(const Aws::Utils::DateTime &value)
Definition: AutoTuneStatus.h:97
Aws::ElasticsearchService::Model::AutoTuneStatus::WithErrorMessage
AutoTuneStatus & WithErrorMessage(const Aws::String &value)
Definition: AutoTuneStatus.h:191
Aws::ElasticsearchService::Model::AutoTuneStatus::GetCreationDate
const Aws::Utils::DateTime & GetCreationDate() const
Definition: AutoTuneStatus.h:46
Aws::ElasticsearchService::Model::AutoTuneStatus::UpdateVersionHasBeenSet
bool UpdateVersionHasBeenSet() const
Definition: AutoTuneStatus.h:113