/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Macie2 { namespace Model { /** */ class EnableOrganizationAdminAccountRequest : public Macie2Request { public: AWS_MACIE2_API EnableOrganizationAdminAccountRequest(); // 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 "EnableOrganizationAdminAccount"; } AWS_MACIE2_API Aws::String SerializePayload() const override; /** *

The Amazon Web Services account ID for the account to designate as the * delegated Amazon Macie administrator account for the organization.

*/ inline const Aws::String& GetAdminAccountId() const{ return m_adminAccountId; } /** *

The Amazon Web Services account ID for the account to designate as the * delegated Amazon Macie administrator account for the organization.

*/ inline bool AdminAccountIdHasBeenSet() const { return m_adminAccountIdHasBeenSet; } /** *

The Amazon Web Services account ID for the account to designate as the * delegated Amazon Macie administrator account for the organization.

*/ inline void SetAdminAccountId(const Aws::String& value) { m_adminAccountIdHasBeenSet = true; m_adminAccountId = value; } /** *

The Amazon Web Services account ID for the account to designate as the * delegated Amazon Macie administrator account for the organization.

*/ inline void SetAdminAccountId(Aws::String&& value) { m_adminAccountIdHasBeenSet = true; m_adminAccountId = std::move(value); } /** *

The Amazon Web Services account ID for the account to designate as the * delegated Amazon Macie administrator account for the organization.

*/ inline void SetAdminAccountId(const char* value) { m_adminAccountIdHasBeenSet = true; m_adminAccountId.assign(value); } /** *

The Amazon Web Services account ID for the account to designate as the * delegated Amazon Macie administrator account for the organization.

*/ inline EnableOrganizationAdminAccountRequest& WithAdminAccountId(const Aws::String& value) { SetAdminAccountId(value); return *this;} /** *

The Amazon Web Services account ID for the account to designate as the * delegated Amazon Macie administrator account for the organization.

*/ inline EnableOrganizationAdminAccountRequest& WithAdminAccountId(Aws::String&& value) { SetAdminAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID for the account to designate as the * delegated Amazon Macie administrator account for the organization.

*/ inline EnableOrganizationAdminAccountRequest& WithAdminAccountId(const char* value) { SetAdminAccountId(value); return *this;} /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline EnableOrganizationAdminAccountRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline EnableOrganizationAdminAccountRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline EnableOrganizationAdminAccountRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_adminAccountId; bool m_adminAccountIdHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws