/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Account { namespace Model { /** */ class GetContactInformationRequest : public AccountRequest { public: AWS_ACCOUNT_API GetContactInformationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetContactInformation"; } AWS_ACCOUNT_API Aws::String SerializePayload() const override; /** *

Specifies the 12-digit account ID number of the Amazon Web Services account * that you want to access or modify with this operation. If you don't specify this * parameter, it defaults to the Amazon Web Services account of the identity used * to call the operation. To use this parameter, the caller must be an identity in * the organization's * management account or a delegated administrator account. The specified * account ID must also be a member account in the same organization. The * organization must have all * features enabled, and the organization must have trusted * access enabled for the Account Management service, and optionally a delegated * admin account assigned.

The management account can't specify * its own AccountId. It must call the operation in standalone context * by not including the AccountId parameter.

To call * this operation on an account that is not a member of an organization, don't * specify this parameter. Instead, call the operation using an identity belonging * to the account whose contacts you wish to retrieve or modify.

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

Specifies the 12-digit account ID number of the Amazon Web Services account * that you want to access or modify with this operation. If you don't specify this * parameter, it defaults to the Amazon Web Services account of the identity used * to call the operation. To use this parameter, the caller must be an identity in * the organization's * management account or a delegated administrator account. The specified * account ID must also be a member account in the same organization. The * organization must have all * features enabled, and the organization must have trusted * access enabled for the Account Management service, and optionally a delegated * admin account assigned.

The management account can't specify * its own AccountId. It must call the operation in standalone context * by not including the AccountId parameter.

To call * this operation on an account that is not a member of an organization, don't * specify this parameter. Instead, call the operation using an identity belonging * to the account whose contacts you wish to retrieve or modify.

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

Specifies the 12-digit account ID number of the Amazon Web Services account * that you want to access or modify with this operation. If you don't specify this * parameter, it defaults to the Amazon Web Services account of the identity used * to call the operation. To use this parameter, the caller must be an identity in * the organization's * management account or a delegated administrator account. The specified * account ID must also be a member account in the same organization. The * organization must have all * features enabled, and the organization must have trusted * access enabled for the Account Management service, and optionally a delegated * admin account assigned.

The management account can't specify * its own AccountId. It must call the operation in standalone context * by not including the AccountId parameter.

To call * this operation on an account that is not a member of an organization, don't * specify this parameter. Instead, call the operation using an identity belonging * to the account whose contacts you wish to retrieve or modify.

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

Specifies the 12-digit account ID number of the Amazon Web Services account * that you want to access or modify with this operation. If you don't specify this * parameter, it defaults to the Amazon Web Services account of the identity used * to call the operation. To use this parameter, the caller must be an identity in * the organization's * management account or a delegated administrator account. The specified * account ID must also be a member account in the same organization. The * organization must have all * features enabled, and the organization must have trusted * access enabled for the Account Management service, and optionally a delegated * admin account assigned.

The management account can't specify * its own AccountId. It must call the operation in standalone context * by not including the AccountId parameter.

To call * this operation on an account that is not a member of an organization, don't * specify this parameter. Instead, call the operation using an identity belonging * to the account whose contacts you wish to retrieve or modify.

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

Specifies the 12-digit account ID number of the Amazon Web Services account * that you want to access or modify with this operation. If you don't specify this * parameter, it defaults to the Amazon Web Services account of the identity used * to call the operation. To use this parameter, the caller must be an identity in * the organization's * management account or a delegated administrator account. The specified * account ID must also be a member account in the same organization. The * organization must have all * features enabled, and the organization must have trusted * access enabled for the Account Management service, and optionally a delegated * admin account assigned.

The management account can't specify * its own AccountId. It must call the operation in standalone context * by not including the AccountId parameter.

To call * this operation on an account that is not a member of an organization, don't * specify this parameter. Instead, call the operation using an identity belonging * to the account whose contacts you wish to retrieve or modify.

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

Specifies the 12-digit account ID number of the Amazon Web Services account * that you want to access or modify with this operation. If you don't specify this * parameter, it defaults to the Amazon Web Services account of the identity used * to call the operation. To use this parameter, the caller must be an identity in * the organization's * management account or a delegated administrator account. The specified * account ID must also be a member account in the same organization. The * organization must have all * features enabled, and the organization must have trusted * access enabled for the Account Management service, and optionally a delegated * admin account assigned.

The management account can't specify * its own AccountId. It must call the operation in standalone context * by not including the AccountId parameter.

To call * this operation on an account that is not a member of an organization, don't * specify this parameter. Instead, call the operation using an identity belonging * to the account whose contacts you wish to retrieve or modify.

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

Specifies the 12-digit account ID number of the Amazon Web Services account * that you want to access or modify with this operation. If you don't specify this * parameter, it defaults to the Amazon Web Services account of the identity used * to call the operation. To use this parameter, the caller must be an identity in * the organization's * management account or a delegated administrator account. The specified * account ID must also be a member account in the same organization. The * organization must have all * features enabled, and the organization must have trusted * access enabled for the Account Management service, and optionally a delegated * admin account assigned.

The management account can't specify * its own AccountId. It must call the operation in standalone context * by not including the AccountId parameter.

To call * this operation on an account that is not a member of an organization, don't * specify this parameter. Instead, call the operation using an identity belonging * to the account whose contacts you wish to retrieve or modify.

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

Specifies the 12-digit account ID number of the Amazon Web Services account * that you want to access or modify with this operation. If you don't specify this * parameter, it defaults to the Amazon Web Services account of the identity used * to call the operation. To use this parameter, the caller must be an identity in * the organization's * management account or a delegated administrator account. The specified * account ID must also be a member account in the same organization. The * organization must have all * features enabled, and the organization must have trusted * access enabled for the Account Management service, and optionally a delegated * admin account assigned.

The management account can't specify * its own AccountId. It must call the operation in standalone context * by not including the AccountId parameter.

To call * this operation on an account that is not a member of an organization, don't * specify this parameter. Instead, call the operation using an identity belonging * to the account whose contacts you wish to retrieve or modify.

*/ inline GetContactInformationRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; }; } // namespace Model } // namespace Account } // namespace Aws