/** * 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 #include #include #include #include namespace Aws { namespace mediapackagev2 { namespace Model { /** */ class CreateOriginEndpointRequest : public Mediapackagev2Request { public: AWS_MEDIAPACKAGEV2_API CreateOriginEndpointRequest(); // 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 "CreateOriginEndpoint"; } 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.

*/ 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.

*/ 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.

*/ 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.

*/ 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.

*/ 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.

*/ inline CreateOriginEndpointRequest& 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.

*/ inline CreateOriginEndpointRequest& 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.

*/ inline CreateOriginEndpointRequest& WithChannelGroupName(const char* value) { SetChannelGroupName(value); return *this;} /** *

The name that describes the channel. The name is the primary identifier for * the channel, and must be unique for your account in the AWS Region and channel * group.

*/ inline const Aws::String& GetChannelName() const{ return m_channelName; } /** *

The name that describes the channel. The name is the primary identifier for * the channel, and must be unique for your account in the AWS Region and channel * group.

*/ inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; } /** *

The name that describes the channel. The name is the primary identifier for * the channel, and must be unique for your account in the AWS Region and channel * group.

*/ inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; } /** *

The name that describes the channel. The name is the primary identifier for * the channel, and must be unique for your account in the AWS Region and channel * group.

*/ inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); } /** *

The name that describes the channel. The name is the primary identifier for * the channel, and must be unique for your account in the AWS Region and channel * group.

*/ inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); } /** *

The name that describes the channel. The name is the primary identifier for * the channel, and must be unique for your account in the AWS Region and channel * group.

*/ inline CreateOriginEndpointRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;} /** *

The name that describes the channel. The name is the primary identifier for * the channel, and must be unique for your account in the AWS Region and channel * group.

*/ inline CreateOriginEndpointRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;} /** *

The name that describes the channel. The name is the primary identifier for * the channel, and must be unique for your account in the AWS Region and channel * group.

*/ inline CreateOriginEndpointRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;} /** *

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

*/ inline const Aws::String& GetOriginEndpointName() const{ return m_originEndpointName; } /** *

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

*/ inline bool OriginEndpointNameHasBeenSet() const { return m_originEndpointNameHasBeenSet; } /** *

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

*/ inline void SetOriginEndpointName(const Aws::String& value) { m_originEndpointNameHasBeenSet = true; m_originEndpointName = value; } /** *

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

*/ inline void SetOriginEndpointName(Aws::String&& value) { m_originEndpointNameHasBeenSet = true; m_originEndpointName = std::move(value); } /** *

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

*/ inline void SetOriginEndpointName(const char* value) { m_originEndpointNameHasBeenSet = true; m_originEndpointName.assign(value); } /** *

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

*/ inline CreateOriginEndpointRequest& WithOriginEndpointName(const Aws::String& value) { SetOriginEndpointName(value); return *this;} /** *

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

*/ inline CreateOriginEndpointRequest& WithOriginEndpointName(Aws::String&& value) { SetOriginEndpointName(std::move(value)); return *this;} /** *

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

*/ inline CreateOriginEndpointRequest& WithOriginEndpointName(const char* value) { SetOriginEndpointName(value); return *this;} /** *

The type of container to attach to this origin endpoint. A container type is * a file format that encapsulates one or more media streams, such as audio and * video, into a single file. You can't change the container type after you create * the endpoint.

*/ inline const ContainerType& GetContainerType() const{ return m_containerType; } /** *

The type of container to attach to this origin endpoint. A container type is * a file format that encapsulates one or more media streams, such as audio and * video, into a single file. You can't change the container type after you create * the endpoint.

*/ inline bool ContainerTypeHasBeenSet() const { return m_containerTypeHasBeenSet; } /** *

The type of container to attach to this origin endpoint. A container type is * a file format that encapsulates one or more media streams, such as audio and * video, into a single file. You can't change the container type after you create * the endpoint.

*/ inline void SetContainerType(const ContainerType& value) { m_containerTypeHasBeenSet = true; m_containerType = value; } /** *

The type of container to attach to this origin endpoint. A container type is * a file format that encapsulates one or more media streams, such as audio and * video, into a single file. You can't change the container type after you create * the endpoint.

*/ inline void SetContainerType(ContainerType&& value) { m_containerTypeHasBeenSet = true; m_containerType = std::move(value); } /** *

The type of container to attach to this origin endpoint. A container type is * a file format that encapsulates one or more media streams, such as audio and * video, into a single file. You can't change the container type after you create * the endpoint.

*/ inline CreateOriginEndpointRequest& WithContainerType(const ContainerType& value) { SetContainerType(value); return *this;} /** *

The type of container to attach to this origin endpoint. A container type is * a file format that encapsulates one or more media streams, such as audio and * video, into a single file. You can't change the container type after you create * the endpoint.

*/ inline CreateOriginEndpointRequest& WithContainerType(ContainerType&& value) { SetContainerType(std::move(value)); return *this;} /** *

The segment configuration, including the segment name, duration, and other * configuration values.

*/ inline const Segment& GetSegment() const{ return m_segment; } /** *

The segment configuration, including the segment name, duration, and other * configuration values.

*/ inline bool SegmentHasBeenSet() const { return m_segmentHasBeenSet; } /** *

The segment configuration, including the segment name, duration, and other * configuration values.

*/ inline void SetSegment(const Segment& value) { m_segmentHasBeenSet = true; m_segment = value; } /** *

The segment configuration, including the segment name, duration, and other * configuration values.

*/ inline void SetSegment(Segment&& value) { m_segmentHasBeenSet = true; m_segment = std::move(value); } /** *

The segment configuration, including the segment name, duration, and other * configuration values.

*/ inline CreateOriginEndpointRequest& WithSegment(const Segment& value) { SetSegment(value); return *this;} /** *

The segment configuration, including the segment name, duration, and other * configuration values.

*/ inline CreateOriginEndpointRequest& WithSegment(Segment&& value) { SetSegment(std::move(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 CreateOriginEndpointRequest& 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 CreateOriginEndpointRequest& 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 CreateOriginEndpointRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

Enter any descriptive text that helps you to identify the origin * endpoint.

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

Enter any descriptive text that helps you to identify the origin * endpoint.

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

Enter any descriptive text that helps you to identify the origin * endpoint.

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

Enter any descriptive text that helps you to identify the origin * endpoint.

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

Enter any descriptive text that helps you to identify the origin * endpoint.

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

Enter any descriptive text that helps you to identify the origin * endpoint.

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

Enter any descriptive text that helps you to identify the origin * endpoint.

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

Enter any descriptive text that helps you to identify the origin * endpoint.

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

The size of the window (in seconds) to create a window of the live stream * that's available for on-demand viewing. Viewers can start-over or catch-up on * content that falls within the window. The maximum startover window is 1,209,600 * seconds (14 days).

*/ inline int GetStartoverWindowSeconds() const{ return m_startoverWindowSeconds; } /** *

The size of the window (in seconds) to create a window of the live stream * that's available for on-demand viewing. Viewers can start-over or catch-up on * content that falls within the window. The maximum startover window is 1,209,600 * seconds (14 days).

*/ inline bool StartoverWindowSecondsHasBeenSet() const { return m_startoverWindowSecondsHasBeenSet; } /** *

The size of the window (in seconds) to create a window of the live stream * that's available for on-demand viewing. Viewers can start-over or catch-up on * content that falls within the window. The maximum startover window is 1,209,600 * seconds (14 days).

*/ inline void SetStartoverWindowSeconds(int value) { m_startoverWindowSecondsHasBeenSet = true; m_startoverWindowSeconds = value; } /** *

The size of the window (in seconds) to create a window of the live stream * that's available for on-demand viewing. Viewers can start-over or catch-up on * content that falls within the window. The maximum startover window is 1,209,600 * seconds (14 days).

*/ inline CreateOriginEndpointRequest& WithStartoverWindowSeconds(int value) { SetStartoverWindowSeconds(value); return *this;} /** *

An HTTP live streaming (HLS) manifest configuration.

*/ inline const Aws::Vector& GetHlsManifests() const{ return m_hlsManifests; } /** *

An HTTP live streaming (HLS) manifest configuration.

*/ inline bool HlsManifestsHasBeenSet() const { return m_hlsManifestsHasBeenSet; } /** *

An HTTP live streaming (HLS) manifest configuration.

*/ inline void SetHlsManifests(const Aws::Vector& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests = value; } /** *

An HTTP live streaming (HLS) manifest configuration.

*/ inline void SetHlsManifests(Aws::Vector&& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests = std::move(value); } /** *

An HTTP live streaming (HLS) manifest configuration.

*/ inline CreateOriginEndpointRequest& WithHlsManifests(const Aws::Vector& value) { SetHlsManifests(value); return *this;} /** *

An HTTP live streaming (HLS) manifest configuration.

*/ inline CreateOriginEndpointRequest& WithHlsManifests(Aws::Vector&& value) { SetHlsManifests(std::move(value)); return *this;} /** *

An HTTP live streaming (HLS) manifest configuration.

*/ inline CreateOriginEndpointRequest& AddHlsManifests(const CreateHlsManifestConfiguration& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests.push_back(value); return *this; } /** *

An HTTP live streaming (HLS) manifest configuration.

*/ inline CreateOriginEndpointRequest& AddHlsManifests(CreateHlsManifestConfiguration&& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests.push_back(std::move(value)); return *this; } /** *

A low-latency HLS manifest configuration.

*/ inline const Aws::Vector& GetLowLatencyHlsManifests() const{ return m_lowLatencyHlsManifests; } /** *

A low-latency HLS manifest configuration.

*/ inline bool LowLatencyHlsManifestsHasBeenSet() const { return m_lowLatencyHlsManifestsHasBeenSet; } /** *

A low-latency HLS manifest configuration.

*/ inline void SetLowLatencyHlsManifests(const Aws::Vector& value) { m_lowLatencyHlsManifestsHasBeenSet = true; m_lowLatencyHlsManifests = value; } /** *

A low-latency HLS manifest configuration.

*/ inline void SetLowLatencyHlsManifests(Aws::Vector&& value) { m_lowLatencyHlsManifestsHasBeenSet = true; m_lowLatencyHlsManifests = std::move(value); } /** *

A low-latency HLS manifest configuration.

*/ inline CreateOriginEndpointRequest& WithLowLatencyHlsManifests(const Aws::Vector& value) { SetLowLatencyHlsManifests(value); return *this;} /** *

A low-latency HLS manifest configuration.

*/ inline CreateOriginEndpointRequest& WithLowLatencyHlsManifests(Aws::Vector&& value) { SetLowLatencyHlsManifests(std::move(value)); return *this;} /** *

A low-latency HLS manifest configuration.

*/ inline CreateOriginEndpointRequest& AddLowLatencyHlsManifests(const CreateLowLatencyHlsManifestConfiguration& value) { m_lowLatencyHlsManifestsHasBeenSet = true; m_lowLatencyHlsManifests.push_back(value); return *this; } /** *

A low-latency HLS manifest configuration.

*/ inline CreateOriginEndpointRequest& AddLowLatencyHlsManifests(CreateLowLatencyHlsManifestConfiguration&& value) { m_lowLatencyHlsManifestsHasBeenSet = true; m_lowLatencyHlsManifests.push_back(std::move(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 CreateOriginEndpointRequest& 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 CreateOriginEndpointRequest& 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 CreateOriginEndpointRequest& 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 CreateOriginEndpointRequest& 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 CreateOriginEndpointRequest& 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 CreateOriginEndpointRequest& 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 CreateOriginEndpointRequest& 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 CreateOriginEndpointRequest& 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 CreateOriginEndpointRequest& 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_channelName; bool m_channelNameHasBeenSet = false; Aws::String m_originEndpointName; bool m_originEndpointNameHasBeenSet = false; ContainerType m_containerType; bool m_containerTypeHasBeenSet = false; Segment m_segment; bool m_segmentHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; int m_startoverWindowSeconds; bool m_startoverWindowSecondsHasBeenSet = false; Aws::Vector m_hlsManifests; bool m_hlsManifestsHasBeenSet = false; Aws::Vector m_lowLatencyHlsManifests; bool m_lowLatencyHlsManifestsHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace mediapackagev2 } // namespace Aws