/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Organizations { namespace Model { /** *

Contains information about an Amazon Web Services account that is a member of * an organization.

See Also:

AWS * API Reference

*/ class Account { public: AWS_ORGANIZATIONS_API Account(); AWS_ORGANIZATIONS_API Account(Aws::Utils::Json::JsonView jsonValue); AWS_ORGANIZATIONS_API Account& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The unique identifier (ID) of the account.

The regex pattern for an account ID * string requires exactly 12 digits.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier (ID) of the account.

The regex pattern for an account ID * string requires exactly 12 digits.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier (ID) of the account.

The regex pattern for an account ID * string requires exactly 12 digits.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique identifier (ID) of the account.

The regex pattern for an account ID * string requires exactly 12 digits.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique identifier (ID) of the account.

The regex pattern for an account ID * string requires exactly 12 digits.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique identifier (ID) of the account.

The regex pattern for an account ID * string requires exactly 12 digits.

*/ inline Account& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier (ID) of the account.

The regex pattern for an account ID * string requires exactly 12 digits.

*/ inline Account& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier (ID) of the account.

The regex pattern for an account ID * string requires exactly 12 digits.

*/ inline Account& WithId(const char* value) { SetId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the account.

For more information * about ARNs in Organizations, see ARN * Formats Supported by Organizations in the Amazon Web Services Service * Authorization Reference.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the account.

For more information * about ARNs in Organizations, see ARN * Formats Supported by Organizations in the Amazon Web Services Service * Authorization Reference.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the account.

For more information * about ARNs in Organizations, see ARN * Formats Supported by Organizations in the Amazon Web Services Service * Authorization Reference.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the account.

For more information * about ARNs in Organizations, see ARN * Formats Supported by Organizations in the Amazon Web Services Service * Authorization Reference.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the account.

For more information * about ARNs in Organizations, see ARN * Formats Supported by Organizations in the Amazon Web Services Service * Authorization Reference.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the account.

For more information * about ARNs in Organizations, see ARN * Formats Supported by Organizations in the Amazon Web Services Service * Authorization Reference.

*/ inline Account& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the account.

For more information * about ARNs in Organizations, see ARN * Formats Supported by Organizations in the Amazon Web Services Service * Authorization Reference.

*/ inline Account& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the account.

For more information * about ARNs in Organizations, see ARN * Formats Supported by Organizations in the Amazon Web Services Service * Authorization Reference.

*/ inline Account& WithArn(const char* value) { SetArn(value); return *this;} /** *

The email address associated with the Amazon Web Services account.

The * regex pattern for this parameter * is a string of characters that represents a standard internet email address.

*/ inline const Aws::String& GetEmail() const{ return m_email; } /** *

The email address associated with the Amazon Web Services account.

The * regex pattern for this parameter * is a string of characters that represents a standard internet email address.

*/ inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; } /** *

The email address associated with the Amazon Web Services account.

The * regex pattern for this parameter * is a string of characters that represents a standard internet email address.

*/ inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; } /** *

The email address associated with the Amazon Web Services account.

The * regex pattern for this parameter * is a string of characters that represents a standard internet email address.

*/ inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); } /** *

The email address associated with the Amazon Web Services account.

The * regex pattern for this parameter * is a string of characters that represents a standard internet email address.

*/ inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); } /** *

The email address associated with the Amazon Web Services account.

The * regex pattern for this parameter * is a string of characters that represents a standard internet email address.

*/ inline Account& WithEmail(const Aws::String& value) { SetEmail(value); return *this;} /** *

The email address associated with the Amazon Web Services account.

The * regex pattern for this parameter * is a string of characters that represents a standard internet email address.

*/ inline Account& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;} /** *

The email address associated with the Amazon Web Services account.

The * regex pattern for this parameter * is a string of characters that represents a standard internet email address.

*/ inline Account& WithEmail(const char* value) { SetEmail(value); return *this;} /** *

The friendly name of the account.

The regex pattern that is used to * validate this parameter is a string of any of the characters in the ASCII * character range.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The friendly name of the account.

The regex pattern that is used to * validate this parameter is a string of any of the characters in the ASCII * character range.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The friendly name of the account.

The regex pattern that is used to * validate this parameter is a string of any of the characters in the ASCII * character range.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The friendly name of the account.

The regex pattern that is used to * validate this parameter is a string of any of the characters in the ASCII * character range.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The friendly name of the account.

The regex pattern that is used to * validate this parameter is a string of any of the characters in the ASCII * character range.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The friendly name of the account.

The regex pattern that is used to * validate this parameter is a string of any of the characters in the ASCII * character range.

*/ inline Account& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The friendly name of the account.

The regex pattern that is used to * validate this parameter is a string of any of the characters in the ASCII * character range.

*/ inline Account& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The friendly name of the account.

The regex pattern that is used to * validate this parameter is a string of any of the characters in the ASCII * character range.

*/ inline Account& WithName(const char* value) { SetName(value); return *this;} /** *

The status of the account in the organization.

*/ inline const AccountStatus& GetStatus() const{ return m_status; } /** *

The status of the account in the organization.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the account in the organization.

*/ inline void SetStatus(const AccountStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the account in the organization.

*/ inline void SetStatus(AccountStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the account in the organization.

*/ inline Account& WithStatus(const AccountStatus& value) { SetStatus(value); return *this;} /** *

The status of the account in the organization.

*/ inline Account& WithStatus(AccountStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The method by which the account joined the organization.

*/ inline const AccountJoinedMethod& GetJoinedMethod() const{ return m_joinedMethod; } /** *

The method by which the account joined the organization.

*/ inline bool JoinedMethodHasBeenSet() const { return m_joinedMethodHasBeenSet; } /** *

The method by which the account joined the organization.

*/ inline void SetJoinedMethod(const AccountJoinedMethod& value) { m_joinedMethodHasBeenSet = true; m_joinedMethod = value; } /** *

The method by which the account joined the organization.

*/ inline void SetJoinedMethod(AccountJoinedMethod&& value) { m_joinedMethodHasBeenSet = true; m_joinedMethod = std::move(value); } /** *

The method by which the account joined the organization.

*/ inline Account& WithJoinedMethod(const AccountJoinedMethod& value) { SetJoinedMethod(value); return *this;} /** *

The method by which the account joined the organization.

*/ inline Account& WithJoinedMethod(AccountJoinedMethod&& value) { SetJoinedMethod(std::move(value)); return *this;} /** *

The date the account became a part of the organization.

*/ inline const Aws::Utils::DateTime& GetJoinedTimestamp() const{ return m_joinedTimestamp; } /** *

The date the account became a part of the organization.

*/ inline bool JoinedTimestampHasBeenSet() const { return m_joinedTimestampHasBeenSet; } /** *

The date the account became a part of the organization.

*/ inline void SetJoinedTimestamp(const Aws::Utils::DateTime& value) { m_joinedTimestampHasBeenSet = true; m_joinedTimestamp = value; } /** *

The date the account became a part of the organization.

*/ inline void SetJoinedTimestamp(Aws::Utils::DateTime&& value) { m_joinedTimestampHasBeenSet = true; m_joinedTimestamp = std::move(value); } /** *

The date the account became a part of the organization.

*/ inline Account& WithJoinedTimestamp(const Aws::Utils::DateTime& value) { SetJoinedTimestamp(value); return *this;} /** *

The date the account became a part of the organization.

*/ inline Account& WithJoinedTimestamp(Aws::Utils::DateTime&& value) { SetJoinedTimestamp(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_email; bool m_emailHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; AccountStatus m_status; bool m_statusHasBeenSet = false; AccountJoinedMethod m_joinedMethod; bool m_joinedMethodHasBeenSet = false; Aws::Utils::DateTime m_joinedTimestamp; bool m_joinedTimestampHasBeenSet = false; }; } // namespace Model } // namespace Organizations } // namespace Aws