AWS SDK for C++  1.9.106
AWS SDK for C++
CreateAccountStatus.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 Organizations
25 {
26 namespace Model
27 {
28 
37  {
38  public:
43 
44 
52  inline const Aws::String& GetId() const{ return m_id; }
53 
61  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 
70  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
71 
79  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
80 
88  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
89 
97  inline CreateAccountStatus& WithId(const Aws::String& value) { SetId(value); return *this;}
98 
106  inline CreateAccountStatus& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
107 
115  inline CreateAccountStatus& WithId(const char* value) { SetId(value); return *this;}
116 
117 
121  inline const Aws::String& GetAccountName() const{ return m_accountName; }
122 
126  inline bool AccountNameHasBeenSet() const { return m_accountNameHasBeenSet; }
127 
131  inline void SetAccountName(const Aws::String& value) { m_accountNameHasBeenSet = true; m_accountName = value; }
132 
136  inline void SetAccountName(Aws::String&& value) { m_accountNameHasBeenSet = true; m_accountName = std::move(value); }
137 
141  inline void SetAccountName(const char* value) { m_accountNameHasBeenSet = true; m_accountName.assign(value); }
142 
146  inline CreateAccountStatus& WithAccountName(const Aws::String& value) { SetAccountName(value); return *this;}
147 
151  inline CreateAccountStatus& WithAccountName(Aws::String&& value) { SetAccountName(std::move(value)); return *this;}
152 
156  inline CreateAccountStatus& WithAccountName(const char* value) { SetAccountName(value); return *this;}
157 
158 
162  inline const CreateAccountState& GetState() const{ return m_state; }
163 
167  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
168 
172  inline void SetState(const CreateAccountState& value) { m_stateHasBeenSet = true; m_state = value; }
173 
177  inline void SetState(CreateAccountState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
178 
182  inline CreateAccountStatus& WithState(const CreateAccountState& value) { SetState(value); return *this;}
183 
187  inline CreateAccountStatus& WithState(CreateAccountState&& value) { SetState(std::move(value)); return *this;}
188 
189 
193  inline const Aws::Utils::DateTime& GetRequestedTimestamp() const{ return m_requestedTimestamp; }
194 
198  inline bool RequestedTimestampHasBeenSet() const { return m_requestedTimestampHasBeenSet; }
199 
203  inline void SetRequestedTimestamp(const Aws::Utils::DateTime& value) { m_requestedTimestampHasBeenSet = true; m_requestedTimestamp = value; }
204 
208  inline void SetRequestedTimestamp(Aws::Utils::DateTime&& value) { m_requestedTimestampHasBeenSet = true; m_requestedTimestamp = std::move(value); }
209 
213  inline CreateAccountStatus& WithRequestedTimestamp(const Aws::Utils::DateTime& value) { SetRequestedTimestamp(value); return *this;}
214 
218  inline CreateAccountStatus& WithRequestedTimestamp(Aws::Utils::DateTime&& value) { SetRequestedTimestamp(std::move(value)); return *this;}
219 
220 
224  inline const Aws::Utils::DateTime& GetCompletedTimestamp() const{ return m_completedTimestamp; }
225 
229  inline bool CompletedTimestampHasBeenSet() const { return m_completedTimestampHasBeenSet; }
230 
234  inline void SetCompletedTimestamp(const Aws::Utils::DateTime& value) { m_completedTimestampHasBeenSet = true; m_completedTimestamp = value; }
235 
239  inline void SetCompletedTimestamp(Aws::Utils::DateTime&& value) { m_completedTimestampHasBeenSet = true; m_completedTimestamp = std::move(value); }
240 
244  inline CreateAccountStatus& WithCompletedTimestamp(const Aws::Utils::DateTime& value) { SetCompletedTimestamp(value); return *this;}
245 
249  inline CreateAccountStatus& WithCompletedTimestamp(Aws::Utils::DateTime&& value) { SetCompletedTimestamp(std::move(value)); return *this;}
250 
251 
257  inline const Aws::String& GetAccountId() const{ return m_accountId; }
258 
264  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
265 
271  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
272 
278  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
279 
285  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
286 
292  inline CreateAccountStatus& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
293 
299  inline CreateAccountStatus& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
300 
306  inline CreateAccountStatus& WithAccountId(const char* value) { SetAccountId(value); return *this;}
307 
308 
313  inline const Aws::String& GetGovCloudAccountId() const{ return m_govCloudAccountId; }
314 
319  inline bool GovCloudAccountIdHasBeenSet() const { return m_govCloudAccountIdHasBeenSet; }
320 
325  inline void SetGovCloudAccountId(const Aws::String& value) { m_govCloudAccountIdHasBeenSet = true; m_govCloudAccountId = value; }
326 
331  inline void SetGovCloudAccountId(Aws::String&& value) { m_govCloudAccountIdHasBeenSet = true; m_govCloudAccountId = std::move(value); }
332 
337  inline void SetGovCloudAccountId(const char* value) { m_govCloudAccountIdHasBeenSet = true; m_govCloudAccountId.assign(value); }
338 
343  inline CreateAccountStatus& WithGovCloudAccountId(const Aws::String& value) { SetGovCloudAccountId(value); return *this;}
344 
349  inline CreateAccountStatus& WithGovCloudAccountId(Aws::String&& value) { SetGovCloudAccountId(std::move(value)); return *this;}
350 
355  inline CreateAccountStatus& WithGovCloudAccountId(const char* value) { SetGovCloudAccountId(value); return *this;}
356 
357 
386  inline const CreateAccountFailureReason& GetFailureReason() const{ return m_failureReason; }
387 
416  inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
417 
446  inline void SetFailureReason(const CreateAccountFailureReason& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
447 
476  inline void SetFailureReason(CreateAccountFailureReason&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
477 
506  inline CreateAccountStatus& WithFailureReason(const CreateAccountFailureReason& value) { SetFailureReason(value); return *this;}
507 
536  inline CreateAccountStatus& WithFailureReason(CreateAccountFailureReason&& value) { SetFailureReason(std::move(value)); return *this;}
537 
538  private:
539 
540  Aws::String m_id;
541  bool m_idHasBeenSet;
542 
543  Aws::String m_accountName;
544  bool m_accountNameHasBeenSet;
545 
546  CreateAccountState m_state;
547  bool m_stateHasBeenSet;
548 
549  Aws::Utils::DateTime m_requestedTimestamp;
550  bool m_requestedTimestampHasBeenSet;
551 
552  Aws::Utils::DateTime m_completedTimestamp;
553  bool m_completedTimestampHasBeenSet;
554 
555  Aws::String m_accountId;
556  bool m_accountIdHasBeenSet;
557 
558  Aws::String m_govCloudAccountId;
559  bool m_govCloudAccountIdHasBeenSet;
560 
561  CreateAccountFailureReason m_failureReason;
562  bool m_failureReasonHasBeenSet;
563  };
564 
565 } // namespace Model
566 } // namespace Organizations
567 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Organizations::Model::CreateAccountStatus::SetGovCloudAccountId
void SetGovCloudAccountId(Aws::String &&value)
Definition: CreateAccountStatus.h:331
Aws::Organizations::Model::CreateAccountStatus::GetFailureReason
const CreateAccountFailureReason & GetFailureReason() const
Definition: CreateAccountStatus.h:386
Aws::Organizations::Model::CreateAccountFailureReason
CreateAccountFailureReason
Definition: CreateAccountFailureReason.h:17
Aws::Organizations::Model::CreateAccountStatus::SetFailureReason
void SetFailureReason(CreateAccountFailureReason &&value)
Definition: CreateAccountStatus.h:476
Aws::Organizations::Model::CreateAccountStatus::SetId
void SetId(const Aws::String &value)
Definition: CreateAccountStatus.h:70
CreateAccountFailureReason.h
Aws::Organizations::Model::CreateAccountStatus::SetAccountId
void SetAccountId(const char *value)
Definition: CreateAccountStatus.h:285
Aws::Organizations::Model::CreateAccountStatus::WithId
CreateAccountStatus & WithId(const Aws::String &value)
Definition: CreateAccountStatus.h:97
Aws::Organizations::Model::CreateAccountStatus::WithAccountName
CreateAccountStatus & WithAccountName(const char *value)
Definition: CreateAccountStatus.h:156
Aws::Organizations::Model::CreateAccountStatus::GetRequestedTimestamp
const Aws::Utils::DateTime & GetRequestedTimestamp() const
Definition: CreateAccountStatus.h:193
DateTime.h
Aws::Organizations::Model::CreateAccountStatus::AccountNameHasBeenSet
bool AccountNameHasBeenSet() const
Definition: CreateAccountStatus.h:126
Aws::Organizations::Model::CreateAccountStatus::CreateAccountStatus
CreateAccountStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::CreateAccountStatus::SetRequestedTimestamp
void SetRequestedTimestamp(Aws::Utils::DateTime &&value)
Definition: CreateAccountStatus.h:208
Aws::Organizations::Model::CreateAccountStatus::SetCompletedTimestamp
void SetCompletedTimestamp(Aws::Utils::DateTime &&value)
Definition: CreateAccountStatus.h:239
Aws::Organizations::Model::CreateAccountStatus::SetId
void SetId(const char *value)
Definition: CreateAccountStatus.h:88
Aws::Organizations::Model::CreateAccountStatus::WithFailureReason
CreateAccountStatus & WithFailureReason(const CreateAccountFailureReason &value)
Definition: CreateAccountStatus.h:506
Aws::Organizations::Model::CreateAccountStatus::WithRequestedTimestamp
CreateAccountStatus & WithRequestedTimestamp(Aws::Utils::DateTime &&value)
Definition: CreateAccountStatus.h:218
Aws::Organizations::Model::CreateAccountStatus::SetState
void SetState(CreateAccountState &&value)
Definition: CreateAccountStatus.h:177
Aws::Organizations::Model::CreateAccountStatus::WithCompletedTimestamp
CreateAccountStatus & WithCompletedTimestamp(Aws::Utils::DateTime &&value)
Definition: CreateAccountStatus.h:249
Aws::Organizations::Model::CreateAccountStatus::IdHasBeenSet
bool IdHasBeenSet() const
Definition: CreateAccountStatus.h:61
Aws::Organizations::Model::CreateAccountStatus::WithState
CreateAccountStatus & WithState(const CreateAccountState &value)
Definition: CreateAccountStatus.h:182
Aws::Organizations::Model::CreateAccountStatus::StateHasBeenSet
bool StateHasBeenSet() const
Definition: CreateAccountStatus.h:167
Aws::Organizations::Model::CreateAccountStatus::WithAccountId
CreateAccountStatus & WithAccountId(const char *value)
Definition: CreateAccountStatus.h:306
Aws::Organizations::Model::CreateAccountStatus::SetState
void SetState(const CreateAccountState &value)
Definition: CreateAccountStatus.h:172
Aws::Organizations::Model::CreateAccountStatus::SetGovCloudAccountId
void SetGovCloudAccountId(const Aws::String &value)
Definition: CreateAccountStatus.h:325
Aws::Organizations::Model::CreateAccountStatus::WithState
CreateAccountStatus & WithState(CreateAccountState &&value)
Definition: CreateAccountStatus.h:187
Aws::Organizations::Model::CreateAccountStatus::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: CreateAccountStatus.h:271
Aws::Organizations::Model::CreateAccountStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::CreateAccountStatus::GetAccountName
const Aws::String & GetAccountName() const
Definition: CreateAccountStatus.h:121
Aws::Organizations::Model::CreateAccountStatus::WithId
CreateAccountStatus & WithId(Aws::String &&value)
Definition: CreateAccountStatus.h:106
Aws::Organizations::Model::CreateAccountStatus::GovCloudAccountIdHasBeenSet
bool GovCloudAccountIdHasBeenSet() const
Definition: CreateAccountStatus.h:319
Aws::Organizations::Model::CreateAccountStatus::WithAccountId
CreateAccountStatus & WithAccountId(Aws::String &&value)
Definition: CreateAccountStatus.h:299
Aws::Organizations::Model::CreateAccountStatus::SetRequestedTimestamp
void SetRequestedTimestamp(const Aws::Utils::DateTime &value)
Definition: CreateAccountStatus.h:203
Aws::Organizations::Model::CreateAccountStatus::WithId
CreateAccountStatus & WithId(const char *value)
Definition: CreateAccountStatus.h:115
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::CreateAccountStatus::WithFailureReason
CreateAccountStatus & WithFailureReason(CreateAccountFailureReason &&value)
Definition: CreateAccountStatus.h:536
Aws::Organizations::Model::CreateAccountStatus::GetGovCloudAccountId
const Aws::String & GetGovCloudAccountId() const
Definition: CreateAccountStatus.h:313
Aws::Organizations::Model::CreateAccountStatus::WithGovCloudAccountId
CreateAccountStatus & WithGovCloudAccountId(const char *value)
Definition: CreateAccountStatus.h:355
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::CreateAccountStatus::WithGovCloudAccountId
CreateAccountStatus & WithGovCloudAccountId(Aws::String &&value)
Definition: CreateAccountStatus.h:349
Aws::Organizations::Model::CreateAccountStatus::GetId
const Aws::String & GetId() const
Definition: CreateAccountStatus.h:52
Aws::Organizations::Model::CreateAccountStatus::WithRequestedTimestamp
CreateAccountStatus & WithRequestedTimestamp(const Aws::Utils::DateTime &value)
Definition: CreateAccountStatus.h:213
Aws::Organizations::Model::CreateAccountStatus::SetFailureReason
void SetFailureReason(const CreateAccountFailureReason &value)
Definition: CreateAccountStatus.h:446
Aws::Organizations::Model::CreateAccountStatus::RequestedTimestampHasBeenSet
bool RequestedTimestampHasBeenSet() const
Definition: CreateAccountStatus.h:198
Aws::Organizations::Model::CreateAccountStatus
Definition: CreateAccountStatus.h:37
Aws::Organizations::Model::CreateAccountStatus::CompletedTimestampHasBeenSet
bool CompletedTimestampHasBeenSet() const
Definition: CreateAccountStatus.h:229
Aws::Organizations::Model::CreateAccountStatus::GetState
const CreateAccountState & GetState() const
Definition: CreateAccountStatus.h:162
Aws::Organizations::Model::CreateAccountStatus::WithAccountName
CreateAccountStatus & WithAccountName(Aws::String &&value)
Definition: CreateAccountStatus.h:151
Aws::Organizations::Model::CreateAccountStatus::SetCompletedTimestamp
void SetCompletedTimestamp(const Aws::Utils::DateTime &value)
Definition: CreateAccountStatus.h:234
Aws::Organizations::Model::CreateAccountStatus::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: CreateAccountStatus.h:264
Aws::Organizations::Model::CreateAccountStatus::SetAccountName
void SetAccountName(Aws::String &&value)
Definition: CreateAccountStatus.h:136
Aws::Organizations::Model::CreateAccountState
CreateAccountState
Definition: CreateAccountState.h:17
Aws::Organizations::Model::CreateAccountStatus::SetAccountName
void SetAccountName(const char *value)
Definition: CreateAccountStatus.h:141
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::CreateAccountStatus::WithAccountName
CreateAccountStatus & WithAccountName(const Aws::String &value)
Definition: CreateAccountStatus.h:146
Aws::Organizations::Model::CreateAccountStatus::SetAccountName
void SetAccountName(const Aws::String &value)
Definition: CreateAccountStatus.h:131
Aws::Organizations::Model::CreateAccountStatus::FailureReasonHasBeenSet
bool FailureReasonHasBeenSet() const
Definition: CreateAccountStatus.h:416
Aws::Organizations::Model::CreateAccountStatus::WithAccountId
CreateAccountStatus & WithAccountId(const Aws::String &value)
Definition: CreateAccountStatus.h:292
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Organizations::Model::CreateAccountStatus::CreateAccountStatus
CreateAccountStatus()
Aws::Organizations::Model::CreateAccountStatus::operator=
CreateAccountStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Organizations_EXPORTS.h
Aws::Organizations::Model::CreateAccountStatus::WithCompletedTimestamp
CreateAccountStatus & WithCompletedTimestamp(const Aws::Utils::DateTime &value)
Definition: CreateAccountStatus.h:244
Aws::Organizations::Model::CreateAccountStatus::WithGovCloudAccountId
CreateAccountStatus & WithGovCloudAccountId(const Aws::String &value)
Definition: CreateAccountStatus.h:343
CreateAccountState.h
Aws::Organizations::Model::CreateAccountStatus::GetCompletedTimestamp
const Aws::Utils::DateTime & GetCompletedTimestamp() const
Definition: CreateAccountStatus.h:224
Aws::Organizations::Model::CreateAccountStatus::SetId
void SetId(Aws::String &&value)
Definition: CreateAccountStatus.h:79
Aws::Organizations::Model::CreateAccountStatus::GetAccountId
const Aws::String & GetAccountId() const
Definition: CreateAccountStatus.h:257
Aws::Organizations::Model::CreateAccountStatus::SetGovCloudAccountId
void SetGovCloudAccountId(const char *value)
Definition: CreateAccountStatus.h:337
Aws::Organizations::Model::CreateAccountStatus::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: CreateAccountStatus.h:278