/** * 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 mediapackagev2 { namespace Model { /** */ class CreateChannelGroupRequest : public Mediapackagev2Request { public: AWS_MEDIAPACKAGEV2_API CreateChannelGroupRequest(); // 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 "CreateChannelGroup"; } AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override; AWS_MEDIAPACKAGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name that describes the channel group. The name is the primary identifier * for the channel group, and must be unique for your account in the AWS Region. * You can't use spaces in the name. You can't change the name after you create the * channel group.

*/ inline const Aws::String& GetChannelGroupName() const{ return m_channelGroupName; } /** *

The name that describes the channel group. The name is the primary identifier * for the channel group, and must be unique for your account in the AWS Region. * You can't use spaces in the name. You can't change the name after you create the * channel group.

*/ inline bool ChannelGroupNameHasBeenSet() const { return m_channelGroupNameHasBeenSet; } /** *

The name that describes the channel group. The name is the primary identifier * for the channel group, and must be unique for your account in the AWS Region. * You can't use spaces in the name. You can't change the name after you create the * channel group.

*/ inline void SetChannelGroupName(const Aws::String& value) { m_channelGroupNameHasBeenSet = true; m_channelGroupName = value; } /** *

The name that describes the channel group. The name is the primary identifier * for the channel group, and must be unique for your account in the AWS Region. * You can't use spaces in the name. You can't change the name after you create the * channel group.

*/ inline void SetChannelGroupName(Aws::String&& value) { m_channelGroupNameHasBeenSet = true; m_channelGroupName = std::move(value); } /** *

The name that describes the channel group. The name is the primary identifier * for the channel group, and must be unique for your account in the AWS Region. * You can't use spaces in the name. You can't change the name after you create the * channel group.

*/ inline void SetChannelGroupName(const char* value) { m_channelGroupNameHasBeenSet = true; m_channelGroupName.assign(value); } /** *

The name that describes the channel group. The name is the primary identifier * for the channel group, and must be unique for your account in the AWS Region. * You can't use spaces in the name. You can't change the name after you create the * channel group.

*/ inline CreateChannelGroupRequest& WithChannelGroupName(const Aws::String& value) { SetChannelGroupName(value); return *this;} /** *

The name that describes the channel group. The name is the primary identifier * for the channel group, and must be unique for your account in the AWS Region. * You can't use spaces in the name. You can't change the name after you create the * channel group.

*/ inline CreateChannelGroupRequest& WithChannelGroupName(Aws::String&& value) { SetChannelGroupName(std::move(value)); return *this;} /** *

The name that describes the channel group. The name is the primary identifier * for the channel group, and must be unique for your account in the AWS Region. * You can't use spaces in the name. You can't change the name after you create the * channel group.

*/ inline CreateChannelGroupRequest& WithChannelGroupName(const char* value) { SetChannelGroupName(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 CreateChannelGroupRequest& 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 CreateChannelGroupRequest& 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 CreateChannelGroupRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

Enter any descriptive text that helps you to identify the channel group.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

Enter any descriptive text that helps you to identify the channel group.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

Enter any descriptive text that helps you to identify the channel group.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

Enter any descriptive text that helps you to identify the channel group.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

Enter any descriptive text that helps you to identify the channel group.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

Enter any descriptive text that helps you to identify the channel group.

*/ inline CreateChannelGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

Enter any descriptive text that helps you to identify the channel group.

*/ inline CreateChannelGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

Enter any descriptive text that helps you to identify the channel group.

*/ inline CreateChannelGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

A comma-separated list of tag key:value pairs that you define. For * example:

"Key1": "Value1",

"Key2": * "Value2"

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

A comma-separated list of tag key:value pairs that you define. For * example:

"Key1": "Value1",

"Key2": * "Value2"

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

A comma-separated list of tag key:value pairs that you define. For * example:

"Key1": "Value1",

"Key2": * "Value2"

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

A comma-separated list of tag key:value pairs that you define. For * example:

"Key1": "Value1",

"Key2": * "Value2"

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

A comma-separated list of tag key:value pairs that you define. For * example:

"Key1": "Value1",

"Key2": * "Value2"

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

A comma-separated list of tag key:value pairs that you define. For * example:

"Key1": "Value1",

"Key2": * "Value2"

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

A comma-separated list of tag key:value pairs that you define. For * example:

"Key1": "Value1",

"Key2": * "Value2"

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

A comma-separated list of tag key:value pairs that you define. For * example:

"Key1": "Value1",

"Key2": * "Value2"

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

A comma-separated list of tag key:value pairs that you define. For * example:

"Key1": "Value1",

"Key2": * "Value2"

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

A comma-separated list of tag key:value pairs that you define. For * example:

"Key1": "Value1",

"Key2": * "Value2"

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

A comma-separated list of tag key:value pairs that you define. For * example:

"Key1": "Value1",

"Key2": * "Value2"

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

A comma-separated list of tag key:value pairs that you define. For * example:

"Key1": "Value1",

"Key2": * "Value2"

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

A comma-separated list of tag key:value pairs that you define. For * example:

"Key1": "Value1",

"Key2": * "Value2"

*/ inline CreateChannelGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_channelGroupName; bool m_channelGroupNameHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace mediapackagev2 } // namespace Aws