AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename IdT = Aws::String>
57 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
58 template<typename IdT = Aws::String>
59 CreateAccountStatus& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_accountNameHasBeenSet = true; m_accountName = std::forward<AccountNameT>(value); }
70 template<typename AccountNameT = Aws::String>
71 CreateAccountStatus& WithAccountName(AccountNameT&& value) { SetAccountName(std::forward<AccountNameT>(value)); return *this;}
73
75
79 inline CreateAccountState GetState() const { return m_state; }
80 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
81 inline void SetState(CreateAccountState value) { m_stateHasBeenSet = true; m_state = value; }
82 inline CreateAccountStatus& WithState(CreateAccountState value) { SetState(value); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetRequestedTimestamp() const { return m_requestedTimestamp; }
90 inline bool RequestedTimestampHasBeenSet() const { return m_requestedTimestampHasBeenSet; }
91 template<typename RequestedTimestampT = Aws::Utils::DateTime>
92 void SetRequestedTimestamp(RequestedTimestampT&& value) { m_requestedTimestampHasBeenSet = true; m_requestedTimestamp = std::forward<RequestedTimestampT>(value); }
93 template<typename RequestedTimestampT = Aws::Utils::DateTime>
94 CreateAccountStatus& WithRequestedTimestamp(RequestedTimestampT&& value) { SetRequestedTimestamp(std::forward<RequestedTimestampT>(value)); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetCompletedTimestamp() const { return m_completedTimestamp; }
102 inline bool CompletedTimestampHasBeenSet() const { return m_completedTimestampHasBeenSet; }
103 template<typename CompletedTimestampT = Aws::Utils::DateTime>
104 void SetCompletedTimestamp(CompletedTimestampT&& value) { m_completedTimestampHasBeenSet = true; m_completedTimestamp = std::forward<CompletedTimestampT>(value); }
105 template<typename CompletedTimestampT = Aws::Utils::DateTime>
106 CreateAccountStatus& WithCompletedTimestamp(CompletedTimestampT&& value) { SetCompletedTimestamp(std::forward<CompletedTimestampT>(value)); return *this;}
108
110
115 inline const Aws::String& GetAccountId() const { return m_accountId; }
116 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
117 template<typename AccountIdT = Aws::String>
118 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
119 template<typename AccountIdT = Aws::String>
120 CreateAccountStatus& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
122
124
128 inline const Aws::String& GetGovCloudAccountId() const { return m_govCloudAccountId; }
129 inline bool GovCloudAccountIdHasBeenSet() const { return m_govCloudAccountIdHasBeenSet; }
130 template<typename GovCloudAccountIdT = Aws::String>
131 void SetGovCloudAccountId(GovCloudAccountIdT&& value) { m_govCloudAccountIdHasBeenSet = true; m_govCloudAccountId = std::forward<GovCloudAccountIdT>(value); }
132 template<typename GovCloudAccountIdT = Aws::String>
133 CreateAccountStatus& WithGovCloudAccountId(GovCloudAccountIdT&& value) { SetGovCloudAccountId(std::forward<GovCloudAccountIdT>(value)); return *this;}
135
137
173 inline CreateAccountFailureReason GetFailureReason() const { return m_failureReason; }
174 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
175 inline void SetFailureReason(CreateAccountFailureReason value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
178 private:
179
180 Aws::String m_id;
181 bool m_idHasBeenSet = false;
182
183 Aws::String m_accountName;
184 bool m_accountNameHasBeenSet = false;
185
187 bool m_stateHasBeenSet = false;
188
189 Aws::Utils::DateTime m_requestedTimestamp{};
190 bool m_requestedTimestampHasBeenSet = false;
191
192 Aws::Utils::DateTime m_completedTimestamp{};
193 bool m_completedTimestampHasBeenSet = false;
194
195 Aws::String m_accountId;
196 bool m_accountIdHasBeenSet = false;
197
198 Aws::String m_govCloudAccountId;
199 bool m_govCloudAccountIdHasBeenSet = false;
200
202 bool m_failureReasonHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace Organizations
207} // 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