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

Provides information about your AWS account.

See Also:

AWS API * Reference

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

The identifier of the AWS account that is assigned to the user.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The identifier of the AWS account that is assigned to the user.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The identifier of the AWS account that is assigned to the user.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The identifier of the AWS account that is assigned to the user.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The identifier of the AWS account that is assigned to the user.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The identifier of the AWS account that is assigned to the user.

*/ inline AccountInfo& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The identifier of the AWS account that is assigned to the user.

*/ inline AccountInfo& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The identifier of the AWS account that is assigned to the user.

*/ inline AccountInfo& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The display name of the AWS account that is assigned to the user.

*/ inline const Aws::String& GetAccountName() const{ return m_accountName; } /** *

The display name of the AWS account that is assigned to the user.

*/ inline bool AccountNameHasBeenSet() const { return m_accountNameHasBeenSet; } /** *

The display name of the AWS account that is assigned to the user.

*/ inline void SetAccountName(const Aws::String& value) { m_accountNameHasBeenSet = true; m_accountName = value; } /** *

The display name of the AWS account that is assigned to the user.

*/ inline void SetAccountName(Aws::String&& value) { m_accountNameHasBeenSet = true; m_accountName = std::move(value); } /** *

The display name of the AWS account that is assigned to the user.

*/ inline void SetAccountName(const char* value) { m_accountNameHasBeenSet = true; m_accountName.assign(value); } /** *

The display name of the AWS account that is assigned to the user.

*/ inline AccountInfo& WithAccountName(const Aws::String& value) { SetAccountName(value); return *this;} /** *

The display name of the AWS account that is assigned to the user.

*/ inline AccountInfo& WithAccountName(Aws::String&& value) { SetAccountName(std::move(value)); return *this;} /** *

The display name of the AWS account that is assigned to the user.

*/ inline AccountInfo& WithAccountName(const char* value) { SetAccountName(value); return *this;} /** *

The email address of the AWS account that is assigned to the user.

*/ inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; } /** *

The email address of the AWS account that is assigned to the user.

*/ inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; } /** *

The email address of the AWS account that is assigned to the user.

*/ inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; } /** *

The email address of the AWS account that is assigned to the user.

*/ inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); } /** *

The email address of the AWS account that is assigned to the user.

*/ inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); } /** *

The email address of the AWS account that is assigned to the user.

*/ inline AccountInfo& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;} /** *

The email address of the AWS account that is assigned to the user.

*/ inline AccountInfo& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;} /** *

The email address of the AWS account that is assigned to the user.

*/ inline AccountInfo& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_accountName; bool m_accountNameHasBeenSet = false; Aws::String m_emailAddress; bool m_emailAddressHasBeenSet = false; }; } // namespace Model } // namespace SSO } // namespace Aws