AWS SDK for C++  1.9.104
AWS SDK for C++
OptionStatus.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ElasticsearchService
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
45 
49  inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
50 
54  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
55 
59  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
60 
64  inline OptionStatus& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
65 
69  inline OptionStatus& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
70 
71 
75  inline const Aws::Utils::DateTime& GetUpdateDate() const{ return m_updateDate; }
76 
80  inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; }
81 
85  inline void SetUpdateDate(const Aws::Utils::DateTime& value) { m_updateDateHasBeenSet = true; m_updateDate = value; }
86 
90  inline void SetUpdateDate(Aws::Utils::DateTime&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::move(value); }
91 
95  inline OptionStatus& WithUpdateDate(const Aws::Utils::DateTime& value) { SetUpdateDate(value); return *this;}
96 
100  inline OptionStatus& WithUpdateDate(Aws::Utils::DateTime&& value) { SetUpdateDate(std::move(value)); return *this;}
101 
102 
106  inline int GetUpdateVersion() const{ return m_updateVersion; }
107 
111  inline bool UpdateVersionHasBeenSet() const { return m_updateVersionHasBeenSet; }
112 
116  inline void SetUpdateVersion(int value) { m_updateVersionHasBeenSet = true; m_updateVersion = value; }
117 
121  inline OptionStatus& WithUpdateVersion(int value) { SetUpdateVersion(value); return *this;}
122 
123 
127  inline const OptionState& GetState() const{ return m_state; }
128 
132  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
133 
137  inline void SetState(const OptionState& value) { m_stateHasBeenSet = true; m_state = value; }
138 
142  inline void SetState(OptionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
143 
147  inline OptionStatus& WithState(const OptionState& value) { SetState(value); return *this;}
148 
152  inline OptionStatus& WithState(OptionState&& value) { SetState(std::move(value)); return *this;}
153 
154 
158  inline bool GetPendingDeletion() const{ return m_pendingDeletion; }
159 
163  inline bool PendingDeletionHasBeenSet() const { return m_pendingDeletionHasBeenSet; }
164 
168  inline void SetPendingDeletion(bool value) { m_pendingDeletionHasBeenSet = true; m_pendingDeletion = value; }
169 
173  inline OptionStatus& WithPendingDeletion(bool value) { SetPendingDeletion(value); return *this;}
174 
175  private:
176 
177  Aws::Utils::DateTime m_creationDate;
178  bool m_creationDateHasBeenSet;
179 
180  Aws::Utils::DateTime m_updateDate;
181  bool m_updateDateHasBeenSet;
182 
183  int m_updateVersion;
184  bool m_updateVersionHasBeenSet;
185 
186  OptionState m_state;
187  bool m_stateHasBeenSet;
188 
189  bool m_pendingDeletion;
190  bool m_pendingDeletionHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace ElasticsearchService
195 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::ElasticsearchService::Model::OptionStatus::GetPendingDeletion
bool GetPendingDeletion() const
Definition: OptionStatus.h:158
Aws::ElasticsearchService::Model::OptionStatus::GetCreationDate
const Aws::Utils::DateTime & GetCreationDate() const
Definition: OptionStatus.h:44
Aws::ElasticsearchService::Model::OptionState
OptionState
Definition: OptionState.h:17
Aws::ElasticsearchService::Model::OptionStatus::UpdateDateHasBeenSet
bool UpdateDateHasBeenSet() const
Definition: OptionStatus.h:80
Aws::ElasticsearchService::Model::OptionStatus::WithUpdateDate
OptionStatus & WithUpdateDate(Aws::Utils::DateTime &&value)
Definition: OptionStatus.h:100
DateTime.h
Aws::ElasticsearchService::Model::OptionStatus::SetUpdateDate
void SetUpdateDate(const Aws::Utils::DateTime &value)
Definition: OptionStatus.h:85
Aws::ElasticsearchService::Model::OptionStatus::SetPendingDeletion
void SetPendingDeletion(bool value)
Definition: OptionStatus.h:168
Aws::ElasticsearchService::Model::OptionStatus::SetUpdateVersion
void SetUpdateVersion(int value)
Definition: OptionStatus.h:116
Aws::ElasticsearchService::Model::OptionStatus::WithCreationDate
OptionStatus & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: OptionStatus.h:64
Aws::ElasticsearchService::Model::OptionStatus::WithCreationDate
OptionStatus & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: OptionStatus.h:69
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::OptionStatus::operator=
OptionStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::OptionStatus
Definition: OptionStatus.h:33
Aws::ElasticsearchService::Model::OptionStatus::CreationDateHasBeenSet
bool CreationDateHasBeenSet() const
Definition: OptionStatus.h:49
Aws::ElasticsearchService::Model::OptionStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ElasticsearchService::Model::OptionStatus::WithState
OptionStatus & WithState(const OptionState &value)
Definition: OptionStatus.h:147
Aws::ElasticsearchService::Model::OptionStatus::WithState
OptionStatus & WithState(OptionState &&value)
Definition: OptionStatus.h:152
Aws::ElasticsearchService::Model::OptionStatus::SetState
void SetState(const OptionState &value)
Definition: OptionStatus.h:137
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::ElasticsearchService::Model::OptionStatus::OptionStatus
OptionStatus()
Aws::ElasticsearchService::Model::OptionStatus::WithUpdateDate
OptionStatus & WithUpdateDate(const Aws::Utils::DateTime &value)
Definition: OptionStatus.h:95
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::OptionStatus::UpdateVersionHasBeenSet
bool UpdateVersionHasBeenSet() const
Definition: OptionStatus.h:111
Aws::ElasticsearchService::Model::OptionStatus::WithPendingDeletion
OptionStatus & WithPendingDeletion(bool value)
Definition: OptionStatus.h:173
Aws::ElasticsearchService::Model::OptionStatus::GetUpdateDate
const Aws::Utils::DateTime & GetUpdateDate() const
Definition: OptionStatus.h:75
Aws::ElasticsearchService::Model::OptionStatus::StateHasBeenSet
bool StateHasBeenSet() const
Definition: OptionStatus.h:132
Aws::ElasticsearchService::Model::OptionStatus::GetUpdateVersion
int GetUpdateVersion() const
Definition: OptionStatus.h:106
Aws::ElasticsearchService::Model::OptionStatus::SetCreationDate
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: OptionStatus.h:54
Aws::ElasticsearchService::Model::OptionStatus::SetUpdateDate
void SetUpdateDate(Aws::Utils::DateTime &&value)
Definition: OptionStatus.h:90
Aws::ElasticsearchService::Model::OptionStatus::WithUpdateVersion
OptionStatus & WithUpdateVersion(int value)
Definition: OptionStatus.h:121
Aws
Definition: AccessManagementClient.h:15
OptionState.h
Aws::ElasticsearchService::Model::OptionStatus::SetState
void SetState(OptionState &&value)
Definition: OptionStatus.h:142
Aws::ElasticsearchService::Model::OptionStatus::SetCreationDate
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: OptionStatus.h:59
Aws::ElasticsearchService::Model::OptionStatus::PendingDeletionHasBeenSet
bool PendingDeletionHasBeenSet() const
Definition: OptionStatus.h:163
Aws::ElasticsearchService::Model::OptionStatus::OptionStatus
OptionStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::OptionStatus::GetState
const OptionState & GetState() const
Definition: OptionStatus.h:127