/** * 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 Macie2 { namespace Model { /** */ class CreateMemberRequest : public Macie2Request { public: AWS_MACIE2_API CreateMemberRequest(); // 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 "CreateMember"; } AWS_MACIE2_API Aws::String SerializePayload() const override; /** *

The details of the account to associate with the administrator account.

*/ inline const AccountDetail& GetAccount() const{ return m_account; } /** *

The details of the account to associate with the administrator account.

*/ inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; } /** *

The details of the account to associate with the administrator account.

*/ inline void SetAccount(const AccountDetail& value) { m_accountHasBeenSet = true; m_account = value; } /** *

The details of the account to associate with the administrator account.

*/ inline void SetAccount(AccountDetail&& value) { m_accountHasBeenSet = true; m_account = std::move(value); } /** *

The details of the account to associate with the administrator account.

*/ inline CreateMemberRequest& WithAccount(const AccountDetail& value) { SetAccount(value); return *this;} /** *

The details of the account to associate with the administrator account.

*/ inline CreateMemberRequest& WithAccount(AccountDetail&& value) { SetAccount(std::move(value)); return *this;} /** *

A map of key-value pairs that specifies the tags to associate with the * account in Amazon Macie.

An account can have a maximum of 50 tags. Each * tag consists of a tag key and an associated tag value. The maximum length of a * tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A map of key-value pairs that specifies the tags to associate with the * account in Amazon Macie.

An account can have a maximum of 50 tags. Each * tag consists of a tag key and an associated tag value. The maximum length of a * tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A map of key-value pairs that specifies the tags to associate with the * account in Amazon Macie.

An account can have a maximum of 50 tags. Each * tag consists of a tag key and an associated tag value. The maximum length of a * tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A map of key-value pairs that specifies the tags to associate with the * account in Amazon Macie.

An account can have a maximum of 50 tags. Each * tag consists of a tag key and an associated tag value. The maximum length of a * tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A map of key-value pairs that specifies the tags to associate with the * account in Amazon Macie.

An account can have a maximum of 50 tags. Each * tag consists of a tag key and an associated tag value. The maximum length of a * tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline CreateMemberRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A map of key-value pairs that specifies the tags to associate with the * account in Amazon Macie.

An account can have a maximum of 50 tags. Each * tag consists of a tag key and an associated tag value. The maximum length of a * tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline CreateMemberRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A map of key-value pairs that specifies the tags to associate with the * account in Amazon Macie.

An account can have a maximum of 50 tags. Each * tag consists of a tag key and an associated tag value. The maximum length of a * tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline CreateMemberRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A map of key-value pairs that specifies the tags to associate with the * account in Amazon Macie.

An account can have a maximum of 50 tags. Each * tag consists of a tag key and an associated tag value. The maximum length of a * tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline CreateMemberRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A map of key-value pairs that specifies the tags to associate with the * account in Amazon Macie.

An account can have a maximum of 50 tags. Each * tag consists of a tag key and an associated tag value. The maximum length of a * tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline CreateMemberRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A map of key-value pairs that specifies the tags to associate with the * account in Amazon Macie.

An account can have a maximum of 50 tags. Each * tag consists of a tag key and an associated tag value. The maximum length of a * tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline CreateMemberRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of key-value pairs that specifies the tags to associate with the * account in Amazon Macie.

An account can have a maximum of 50 tags. Each * tag consists of a tag key and an associated tag value. The maximum length of a * tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline CreateMemberRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A map of key-value pairs that specifies the tags to associate with the * account in Amazon Macie.

An account can have a maximum of 50 tags. Each * tag consists of a tag key and an associated tag value. The maximum length of a * tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline CreateMemberRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A map of key-value pairs that specifies the tags to associate with the * account in Amazon Macie.

An account can have a maximum of 50 tags. Each * tag consists of a tag key and an associated tag value. The maximum length of a * tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline CreateMemberRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: AccountDetail m_account; bool m_accountHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws