7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/organizations/model/AccountStatus.h>
10#include <aws/organizations/model/AccountState.h>
11#include <aws/organizations/model/AccountJoinedMethod.h>
12#include <aws/core/utils/DateTime.h>
25namespace Organizations
39 AWS_ORGANIZATIONS_API
Account() =
default;
53 template<
typename IdT = Aws::String>
54 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
55 template<
typename IdT = Aws::String>
69 template<
typename ArnT = Aws::String>
70 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
71 template<
typename ArnT = Aws::String>
83 template<
typename EmailT = Aws::String>
84 void SetEmail(EmailT&& value) { m_emailHasBeenSet =
true; m_email = std::forward<EmailT>(value); }
85 template<
typename EmailT = Aws::String>
98 template<
typename NameT = Aws::String>
99 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
100 template<
typename NameT = Aws::String>
153 template<
typename JoinedTimestampT = Aws::Utils::DateTime>
154 void SetJoinedTimestamp(JoinedTimestampT&& value) { m_joinedTimestampHasBeenSet =
true; m_joinedTimestamp = std::forward<JoinedTimestampT>(value); }
155 template<
typename JoinedTimestampT = Aws::Utils::DateTime>
161 bool m_idHasBeenSet =
false;
164 bool m_arnHasBeenSet =
false;
167 bool m_emailHasBeenSet =
false;
170 bool m_nameHasBeenSet =
false;
173 bool m_statusHasBeenSet =
false;
176 bool m_stateHasBeenSet =
false;
179 bool m_joinedMethodHasBeenSet =
false;
182 bool m_joinedTimestampHasBeenSet =
false;
AccountStatus GetStatus() const
Account & WithEmail(EmailT &&value)
void SetArn(ArnT &&value)
Account & WithJoinedMethod(AccountJoinedMethod value)
void SetName(NameT &&value)
bool ArnHasBeenSet() const
Account & WithArn(ArnT &&value)
const Aws::String & GetArn() const
const Aws::String & GetId() const
bool EmailHasBeenSet() const
bool JoinedMethodHasBeenSet() const
void SetJoinedTimestamp(JoinedTimestampT &&value)
bool IdHasBeenSet() const
AWS_ORGANIZATIONS_API Account(Aws::Utils::Json::JsonView jsonValue)
Account & WithState(AccountState value)
void SetJoinedMethod(AccountJoinedMethod value)
Account & WithJoinedTimestamp(JoinedTimestampT &&value)
Account & WithName(NameT &&value)
void SetState(AccountState value)
AWS_ORGANIZATIONS_API Account & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(AccountStatus value)
bool JoinedTimestampHasBeenSet() const
const Aws::String & GetEmail() const
AWS_ORGANIZATIONS_API Account()=default
bool NameHasBeenSet() const
const Aws::Utils::DateTime & GetJoinedTimestamp() const
AccountState GetState() const
Account & WithStatus(AccountStatus value)
AccountJoinedMethod GetJoinedMethod() const
Account & WithId(IdT &&value)
bool StateHasBeenSet() const
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEmail(EmailT &&value)
bool StatusHasBeenSet() const
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue