AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAccountStatus.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/organizations/model/CreateAccountState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/organizations/model/CreateAccountFailureReason.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 Organizations
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_ORGANIZATIONS_API CreateAccountStatus();
41 AWS_ORGANIZATIONS_API CreateAccountStatus(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ORGANIZATIONS_API CreateAccountStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
54 inline const Aws::String& GetId() const{ return m_id; }
55 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
56 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
58 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
59 inline CreateAccountStatus& WithId(const Aws::String& value) { SetId(value); return *this;}
60 inline CreateAccountStatus& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
61 inline CreateAccountStatus& WithId(const char* value) { SetId(value); return *this;}
63
65
68 inline const Aws::String& GetAccountName() const{ return m_accountName; }
69 inline bool AccountNameHasBeenSet() const { return m_accountNameHasBeenSet; }
70 inline void SetAccountName(const Aws::String& value) { m_accountNameHasBeenSet = true; m_accountName = value; }
71 inline void SetAccountName(Aws::String&& value) { m_accountNameHasBeenSet = true; m_accountName = std::move(value); }
72 inline void SetAccountName(const char* value) { m_accountNameHasBeenSet = true; m_accountName.assign(value); }
73 inline CreateAccountStatus& WithAccountName(const Aws::String& value) { SetAccountName(value); return *this;}
74 inline CreateAccountStatus& WithAccountName(Aws::String&& value) { SetAccountName(std::move(value)); return *this;}
75 inline CreateAccountStatus& WithAccountName(const char* value) { SetAccountName(value); return *this;}
77
79
83 inline const CreateAccountState& GetState() const{ return m_state; }
84 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
85 inline void SetState(const CreateAccountState& value) { m_stateHasBeenSet = true; m_state = value; }
86 inline void SetState(CreateAccountState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
87 inline CreateAccountStatus& WithState(const CreateAccountState& value) { SetState(value); return *this;}
88 inline CreateAccountStatus& WithState(CreateAccountState&& value) { SetState(std::move(value)); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetRequestedTimestamp() const{ return m_requestedTimestamp; }
96 inline bool RequestedTimestampHasBeenSet() const { return m_requestedTimestampHasBeenSet; }
97 inline void SetRequestedTimestamp(const Aws::Utils::DateTime& value) { m_requestedTimestampHasBeenSet = true; m_requestedTimestamp = value; }
98 inline void SetRequestedTimestamp(Aws::Utils::DateTime&& value) { m_requestedTimestampHasBeenSet = true; m_requestedTimestamp = std::move(value); }
102
104
107 inline const Aws::Utils::DateTime& GetCompletedTimestamp() const{ return m_completedTimestamp; }
108 inline bool CompletedTimestampHasBeenSet() const { return m_completedTimestampHasBeenSet; }
109 inline void SetCompletedTimestamp(const Aws::Utils::DateTime& value) { m_completedTimestampHasBeenSet = true; m_completedTimestamp = value; }
110 inline void SetCompletedTimestamp(Aws::Utils::DateTime&& value) { m_completedTimestampHasBeenSet = true; m_completedTimestamp = std::move(value); }
114
116
121 inline const Aws::String& GetAccountId() const{ return m_accountId; }
122 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
123 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
124 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
125 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
126 inline CreateAccountStatus& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
127 inline CreateAccountStatus& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
128 inline CreateAccountStatus& WithAccountId(const char* value) { SetAccountId(value); return *this;}
130
132
136 inline const Aws::String& GetGovCloudAccountId() const{ return m_govCloudAccountId; }
137 inline bool GovCloudAccountIdHasBeenSet() const { return m_govCloudAccountIdHasBeenSet; }
138 inline void SetGovCloudAccountId(const Aws::String& value) { m_govCloudAccountIdHasBeenSet = true; m_govCloudAccountId = value; }
139 inline void SetGovCloudAccountId(Aws::String&& value) { m_govCloudAccountIdHasBeenSet = true; m_govCloudAccountId = std::move(value); }
140 inline void SetGovCloudAccountId(const char* value) { m_govCloudAccountIdHasBeenSet = true; m_govCloudAccountId.assign(value); }
141 inline CreateAccountStatus& WithGovCloudAccountId(const Aws::String& value) { SetGovCloudAccountId(value); return *this;}
142 inline CreateAccountStatus& WithGovCloudAccountId(Aws::String&& value) { SetGovCloudAccountId(std::move(value)); return *this;}
143 inline CreateAccountStatus& WithGovCloudAccountId(const char* value) { SetGovCloudAccountId(value); return *this;}
145
147
183 inline const CreateAccountFailureReason& GetFailureReason() const{ return m_failureReason; }
184 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
185 inline void SetFailureReason(const CreateAccountFailureReason& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
186 inline void SetFailureReason(CreateAccountFailureReason&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
188 inline CreateAccountStatus& WithFailureReason(CreateAccountFailureReason&& value) { SetFailureReason(std::move(value)); return *this;}
190 private:
191
192 Aws::String m_id;
193 bool m_idHasBeenSet = false;
194
195 Aws::String m_accountName;
196 bool m_accountNameHasBeenSet = false;
197
198 CreateAccountState m_state;
199 bool m_stateHasBeenSet = false;
200
201 Aws::Utils::DateTime m_requestedTimestamp;
202 bool m_requestedTimestampHasBeenSet = false;
203
204 Aws::Utils::DateTime m_completedTimestamp;
205 bool m_completedTimestampHasBeenSet = false;
206
207 Aws::String m_accountId;
208 bool m_accountIdHasBeenSet = false;
209
210 Aws::String m_govCloudAccountId;
211 bool m_govCloudAccountIdHasBeenSet = false;
212
213 CreateAccountFailureReason m_failureReason;
214 bool m_failureReasonHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace Organizations
219} // namespace Aws
void SetState(const CreateAccountState &value)
CreateAccountStatus & WithCompletedTimestamp(const Aws::Utils::DateTime &value)
void SetFailureReason(CreateAccountFailureReason &&value)
CreateAccountStatus & WithState(const CreateAccountState &value)
CreateAccountStatus & WithFailureReason(CreateAccountFailureReason &&value)
CreateAccountStatus & WithId(const char *value)
CreateAccountStatus & WithGovCloudAccountId(const Aws::String &value)
CreateAccountStatus & WithId(Aws::String &&value)
const Aws::Utils::DateTime & GetRequestedTimestamp() const
CreateAccountStatus & WithAccountId(const Aws::String &value)
CreateAccountStatus & WithGovCloudAccountId(Aws::String &&value)
void SetRequestedTimestamp(Aws::Utils::DateTime &&value)
void SetCompletedTimestamp(const Aws::Utils::DateTime &value)
CreateAccountStatus & WithState(CreateAccountState &&value)
AWS_ORGANIZATIONS_API CreateAccountStatus(Aws::Utils::Json::JsonView jsonValue)
const CreateAccountFailureReason & GetFailureReason() const
CreateAccountStatus & WithGovCloudAccountId(const char *value)
CreateAccountStatus & WithAccountName(const char *value)
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
CreateAccountStatus & WithRequestedTimestamp(Aws::Utils::DateTime &&value)
CreateAccountStatus & WithId(const Aws::String &value)
CreateAccountStatus & WithAccountId(Aws::String &&value)
void SetCompletedTimestamp(Aws::Utils::DateTime &&value)
CreateAccountStatus & WithCompletedTimestamp(Aws::Utils::DateTime &&value)
const CreateAccountState & GetState() const
void SetGovCloudAccountId(const Aws::String &value)
CreateAccountStatus & WithAccountId(const char *value)
void SetFailureReason(const CreateAccountFailureReason &value)
const Aws::Utils::DateTime & GetCompletedTimestamp() const
CreateAccountStatus & WithAccountName(Aws::String &&value)
CreateAccountStatus & WithFailureReason(const CreateAccountFailureReason &value)
CreateAccountStatus & WithRequestedTimestamp(const Aws::Utils::DateTime &value)
AWS_ORGANIZATIONS_API CreateAccountStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRequestedTimestamp(const Aws::Utils::DateTime &value)
CreateAccountStatus & WithAccountName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue