/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace PinpointSMSVoiceV2 { namespace Model { /** */ class CreateOptOutListRequest : public PinpointSMSVoiceV2Request { public: AWS_PINPOINTSMSVOICEV2_API CreateOptOutListRequest(); // 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 "CreateOptOutList"; } AWS_PINPOINTSMSVOICEV2_API Aws::String SerializePayload() const override; AWS_PINPOINTSMSVOICEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the new OptOutList.

*/ inline const Aws::String& GetOptOutListName() const{ return m_optOutListName; } /** *

The name of the new OptOutList.

*/ inline bool OptOutListNameHasBeenSet() const { return m_optOutListNameHasBeenSet; } /** *

The name of the new OptOutList.

*/ inline void SetOptOutListName(const Aws::String& value) { m_optOutListNameHasBeenSet = true; m_optOutListName = value; } /** *

The name of the new OptOutList.

*/ inline void SetOptOutListName(Aws::String&& value) { m_optOutListNameHasBeenSet = true; m_optOutListName = std::move(value); } /** *

The name of the new OptOutList.

*/ inline void SetOptOutListName(const char* value) { m_optOutListNameHasBeenSet = true; m_optOutListName.assign(value); } /** *

The name of the new OptOutList.

*/ inline CreateOptOutListRequest& WithOptOutListName(const Aws::String& value) { SetOptOutListName(value); return *this;} /** *

The name of the new OptOutList.

*/ inline CreateOptOutListRequest& WithOptOutListName(Aws::String&& value) { SetOptOutListName(std::move(value)); return *this;} /** *

The name of the new OptOutList.

*/ inline CreateOptOutListRequest& WithOptOutListName(const char* value) { SetOptOutListName(value); return *this;} /** *

An array of tags (key and value pairs) to associate with the new * OptOutList.

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

An array of tags (key and value pairs) to associate with the new * OptOutList.

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

An array of tags (key and value pairs) to associate with the new * OptOutList.

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

An array of tags (key and value pairs) to associate with the new * OptOutList.

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

An array of tags (key and value pairs) to associate with the new * OptOutList.

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

An array of tags (key and value pairs) to associate with the new * OptOutList.

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

An array of tags (key and value pairs) to associate with the new * OptOutList.

*/ inline CreateOptOutListRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

An array of tags (key and value pairs) to associate with the new * OptOutList.

*/ inline CreateOptOutListRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don't specify a client token, a randomly generated token * is used for the request to ensure idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don't specify a client token, a randomly generated token * is used for the request to ensure idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don't specify a client token, a randomly generated token * is used for the request to ensure idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don't specify a client token, a randomly generated token * is used for the request to ensure idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don't specify a client token, a randomly generated token * is used for the request to ensure idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don't specify a client token, a randomly generated token * is used for the request to ensure idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don't specify a client token, a randomly generated token * is used for the request to ensure idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don't specify a client token, a randomly generated token * is used for the request to ensure idempotency.

*/ inline CreateOptOutListRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_optOutListName; bool m_optOutListNameHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace PinpointSMSVoiceV2 } // namespace Aws