AWS SDK for C++

AWS SDK for C++ Version 1.11.769

Loading...
Searching...
No Matches
CreateAccountStatus.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/organizations/Organizations_EXPORTS.h>
10#include <aws/organizations/model/CreateAccountFailureReason.h>
11#include <aws/organizations/model/CreateAccountState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Organizations {
23namespace Model {
24
34 public:
35 AWS_ORGANIZATIONS_API CreateAccountStatus() = default;
36 AWS_ORGANIZATIONS_API CreateAccountStatus(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ORGANIZATIONS_API CreateAccountStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template <typename IdT = Aws::String>
51 void SetId(IdT&& value) {
52 m_idHasBeenSet = true;
53 m_id = std::forward<IdT>(value);
54 }
55 template <typename IdT = Aws::String>
57 SetId(std::forward<IdT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetAccountName() const { return m_accountName; }
67 inline bool AccountNameHasBeenSet() const { return m_accountNameHasBeenSet; }
68 template <typename AccountNameT = Aws::String>
69 void SetAccountName(AccountNameT&& value) {
70 m_accountNameHasBeenSet = true;
71 m_accountName = std::forward<AccountNameT>(value);
72 }
73 template <typename AccountNameT = Aws::String>
74 CreateAccountStatus& WithAccountName(AccountNameT&& value) {
75 SetAccountName(std::forward<AccountNameT>(value));
76 return *this;
77 }
79
81
85 inline CreateAccountState GetState() const { return m_state; }
86 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
87 inline void SetState(CreateAccountState value) {
88 m_stateHasBeenSet = true;
89 m_state = value;
90 }
92 SetState(value);
93 return *this;
94 }
96
98
101 inline const Aws::Utils::DateTime& GetRequestedTimestamp() const { return m_requestedTimestamp; }
102 inline bool RequestedTimestampHasBeenSet() const { return m_requestedTimestampHasBeenSet; }
103 template <typename RequestedTimestampT = Aws::Utils::DateTime>
104 void SetRequestedTimestamp(RequestedTimestampT&& value) {
105 m_requestedTimestampHasBeenSet = true;
106 m_requestedTimestamp = std::forward<RequestedTimestampT>(value);
107 }
108 template <typename RequestedTimestampT = Aws::Utils::DateTime>
109 CreateAccountStatus& WithRequestedTimestamp(RequestedTimestampT&& value) {
110 SetRequestedTimestamp(std::forward<RequestedTimestampT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Utils::DateTime& GetCompletedTimestamp() const { return m_completedTimestamp; }
120 inline bool CompletedTimestampHasBeenSet() const { return m_completedTimestampHasBeenSet; }
121 template <typename CompletedTimestampT = Aws::Utils::DateTime>
122 void SetCompletedTimestamp(CompletedTimestampT&& value) {
123 m_completedTimestampHasBeenSet = true;
124 m_completedTimestamp = std::forward<CompletedTimestampT>(value);
125 }
126 template <typename CompletedTimestampT = Aws::Utils::DateTime>
127 CreateAccountStatus& WithCompletedTimestamp(CompletedTimestampT&& value) {
128 SetCompletedTimestamp(std::forward<CompletedTimestampT>(value));
129 return *this;
130 }
132
134
139 inline const Aws::String& GetAccountId() const { return m_accountId; }
140 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
141 template <typename AccountIdT = Aws::String>
142 void SetAccountId(AccountIdT&& value) {
143 m_accountIdHasBeenSet = true;
144 m_accountId = std::forward<AccountIdT>(value);
145 }
146 template <typename AccountIdT = Aws::String>
147 CreateAccountStatus& WithAccountId(AccountIdT&& value) {
148 SetAccountId(std::forward<AccountIdT>(value));
149 return *this;
150 }
152
154
158 inline const Aws::String& GetGovCloudAccountId() const { return m_govCloudAccountId; }
159 inline bool GovCloudAccountIdHasBeenSet() const { return m_govCloudAccountIdHasBeenSet; }
160 template <typename GovCloudAccountIdT = Aws::String>
161 void SetGovCloudAccountId(GovCloudAccountIdT&& value) {
162 m_govCloudAccountIdHasBeenSet = true;
163 m_govCloudAccountId = std::forward<GovCloudAccountIdT>(value);
164 }
165 template <typename GovCloudAccountIdT = Aws::String>
166 CreateAccountStatus& WithGovCloudAccountId(GovCloudAccountIdT&& value) {
167 SetGovCloudAccountId(std::forward<GovCloudAccountIdT>(value));
168 return *this;
169 }
171
173
209 inline CreateAccountFailureReason GetFailureReason() const { return m_failureReason; }
210 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
212 m_failureReasonHasBeenSet = true;
213 m_failureReason = value;
214 }
216 SetFailureReason(value);
217 return *this;
218 }
220 private:
221 Aws::String m_id;
222
223 Aws::String m_accountName;
224
226
227 Aws::Utils::DateTime m_requestedTimestamp{};
228
229 Aws::Utils::DateTime m_completedTimestamp{};
230
231 Aws::String m_accountId;
232
233 Aws::String m_govCloudAccountId;
234
236 bool m_idHasBeenSet = false;
237 bool m_accountNameHasBeenSet = false;
238 bool m_stateHasBeenSet = false;
239 bool m_requestedTimestampHasBeenSet = false;
240 bool m_completedTimestampHasBeenSet = false;
241 bool m_accountIdHasBeenSet = false;
242 bool m_govCloudAccountIdHasBeenSet = false;
243 bool m_failureReasonHasBeenSet = false;
244};
245
246} // namespace Model
247} // namespace Organizations
248} // namespace Aws
void SetRequestedTimestamp(RequestedTimestampT &&value)
CreateAccountStatus & WithCompletedTimestamp(CompletedTimestampT &&value)
AWS_ORGANIZATIONS_API CreateAccountStatus()=default
CreateAccountStatus & WithState(CreateAccountState value)
const Aws::Utils::DateTime & GetRequestedTimestamp() const
CreateAccountStatus & WithAccountId(AccountIdT &&value)
void SetFailureReason(CreateAccountFailureReason value)
AWS_ORGANIZATIONS_API CreateAccountStatus(Aws::Utils::Json::JsonView jsonValue)
CreateAccountStatus & WithRequestedTimestamp(RequestedTimestampT &&value)
CreateAccountStatus & WithFailureReason(CreateAccountFailureReason value)
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
CreateAccountStatus & WithGovCloudAccountId(GovCloudAccountIdT &&value)
void SetGovCloudAccountId(GovCloudAccountIdT &&value)
const Aws::Utils::DateTime & GetCompletedTimestamp() const
CreateAccountFailureReason GetFailureReason() const
CreateAccountStatus & WithAccountName(AccountNameT &&value)
CreateAccountStatus & WithId(IdT &&value)
AWS_ORGANIZATIONS_API CreateAccountStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCompletedTimestamp(CompletedTimestampT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue