/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about the delegated administrator.See
* Also:
AWS
* API Reference
The unique identifier (ID) of the delegated administrator's account.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The unique identifier (ID) of the delegated administrator's account.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The unique identifier (ID) of the delegated administrator's account.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The unique identifier (ID) of the delegated administrator's account.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The unique identifier (ID) of the delegated administrator's account.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The unique identifier (ID) of the delegated administrator's account.
*/ inline DelegatedAdministrator& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The unique identifier (ID) of the delegated administrator's account.
*/ inline DelegatedAdministrator& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The unique identifier (ID) of the delegated administrator's account.
*/ inline DelegatedAdministrator& WithId(const char* value) { SetId(value); return *this;} /** *The Amazon Resource Name (ARN) of the delegated administrator's account.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) of the delegated administrator's account.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the delegated administrator's account.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) of the delegated administrator's account.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) of the delegated administrator's account.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) of the delegated administrator's account.
*/ inline DelegatedAdministrator& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the delegated administrator's account.
*/ inline DelegatedAdministrator& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the delegated administrator's account.
*/ inline DelegatedAdministrator& WithArn(const char* value) { SetArn(value); return *this;} /** *The email address that is associated with the delegated administrator's * Amazon Web Services account.
*/ inline const Aws::String& GetEmail() const{ return m_email; } /** *The email address that is associated with the delegated administrator's * Amazon Web Services account.
*/ inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; } /** *The email address that is associated with the delegated administrator's * Amazon Web Services account.
*/ inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; } /** *The email address that is associated with the delegated administrator's * Amazon Web Services account.
*/ inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); } /** *The email address that is associated with the delegated administrator's * Amazon Web Services account.
*/ inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); } /** *The email address that is associated with the delegated administrator's * Amazon Web Services account.
*/ inline DelegatedAdministrator& WithEmail(const Aws::String& value) { SetEmail(value); return *this;} /** *The email address that is associated with the delegated administrator's * Amazon Web Services account.
*/ inline DelegatedAdministrator& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;} /** *The email address that is associated with the delegated administrator's * Amazon Web Services account.
*/ inline DelegatedAdministrator& WithEmail(const char* value) { SetEmail(value); return *this;} /** *The friendly name of the delegated administrator's account.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The friendly name of the delegated administrator's account.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The friendly name of the delegated administrator's account.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The friendly name of the delegated administrator's account.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The friendly name of the delegated administrator's account.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The friendly name of the delegated administrator's account.
*/ inline DelegatedAdministrator& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The friendly name of the delegated administrator's account.
*/ inline DelegatedAdministrator& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The friendly name of the delegated administrator's account.
*/ inline DelegatedAdministrator& WithName(const char* value) { SetName(value); return *this;} /** *The status of the delegated administrator's account in the organization.
*/ inline const AccountStatus& GetStatus() const{ return m_status; } /** *The status of the delegated administrator's account in the organization.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the delegated administrator's account in the organization.
*/ inline void SetStatus(const AccountStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the delegated administrator's account in the organization.
*/ inline void SetStatus(AccountStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the delegated administrator's account in the organization.
*/ inline DelegatedAdministrator& WithStatus(const AccountStatus& value) { SetStatus(value); return *this;} /** *The status of the delegated administrator's account in the organization.
*/ inline DelegatedAdministrator& WithStatus(AccountStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The method by which the delegated administrator's account joined the * organization.
*/ inline const AccountJoinedMethod& GetJoinedMethod() const{ return m_joinedMethod; } /** *The method by which the delegated administrator's account joined the * organization.
*/ inline bool JoinedMethodHasBeenSet() const { return m_joinedMethodHasBeenSet; } /** *The method by which the delegated administrator's account joined the * organization.
*/ inline void SetJoinedMethod(const AccountJoinedMethod& value) { m_joinedMethodHasBeenSet = true; m_joinedMethod = value; } /** *The method by which the delegated administrator's account joined the * organization.
*/ inline void SetJoinedMethod(AccountJoinedMethod&& value) { m_joinedMethodHasBeenSet = true; m_joinedMethod = std::move(value); } /** *The method by which the delegated administrator's account joined the * organization.
*/ inline DelegatedAdministrator& WithJoinedMethod(const AccountJoinedMethod& value) { SetJoinedMethod(value); return *this;} /** *The method by which the delegated administrator's account joined the * organization.
*/ inline DelegatedAdministrator& WithJoinedMethod(AccountJoinedMethod&& value) { SetJoinedMethod(std::move(value)); return *this;} /** *The date when the delegated administrator's account became a part of the * organization.
*/ inline const Aws::Utils::DateTime& GetJoinedTimestamp() const{ return m_joinedTimestamp; } /** *The date when the delegated administrator's account became a part of the * organization.
*/ inline bool JoinedTimestampHasBeenSet() const { return m_joinedTimestampHasBeenSet; } /** *The date when the delegated administrator's account became a part of the * organization.
*/ inline void SetJoinedTimestamp(const Aws::Utils::DateTime& value) { m_joinedTimestampHasBeenSet = true; m_joinedTimestamp = value; } /** *The date when the delegated administrator's account became a part of the * organization.
*/ inline void SetJoinedTimestamp(Aws::Utils::DateTime&& value) { m_joinedTimestampHasBeenSet = true; m_joinedTimestamp = std::move(value); } /** *The date when the delegated administrator's account became a part of the * organization.
*/ inline DelegatedAdministrator& WithJoinedTimestamp(const Aws::Utils::DateTime& value) { SetJoinedTimestamp(value); return *this;} /** *The date when the delegated administrator's account became a part of the * organization.
*/ inline DelegatedAdministrator& WithJoinedTimestamp(Aws::Utils::DateTime&& value) { SetJoinedTimestamp(std::move(value)); return *this;} /** *The date when the account was made a delegated administrator.
*/ inline const Aws::Utils::DateTime& GetDelegationEnabledDate() const{ return m_delegationEnabledDate; } /** *The date when the account was made a delegated administrator.
*/ inline bool DelegationEnabledDateHasBeenSet() const { return m_delegationEnabledDateHasBeenSet; } /** *The date when the account was made a delegated administrator.
*/ inline void SetDelegationEnabledDate(const Aws::Utils::DateTime& value) { m_delegationEnabledDateHasBeenSet = true; m_delegationEnabledDate = value; } /** *The date when the account was made a delegated administrator.
*/ inline void SetDelegationEnabledDate(Aws::Utils::DateTime&& value) { m_delegationEnabledDateHasBeenSet = true; m_delegationEnabledDate = std::move(value); } /** *The date when the account was made a delegated administrator.
*/ inline DelegatedAdministrator& WithDelegationEnabledDate(const Aws::Utils::DateTime& value) { SetDelegationEnabledDate(value); return *this;} /** *The date when the account was made a delegated administrator.
*/ inline DelegatedAdministrator& WithDelegationEnabledDate(Aws::Utils::DateTime&& value) { SetDelegationEnabledDate(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; Aws::Utils::DateTime m_delegationEnabledDate; bool m_delegationEnabledDateHasBeenSet = false; }; } // namespace Model } // namespace Organizations } // namespace Aws