/** * 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 namespace Aws { namespace mediapackagev2 { namespace Model { /** */ class UpdateOriginEndpointRequest : public Mediapackagev2Request { public: AWS_MEDIAPACKAGEV2_API UpdateOriginEndpointRequest(); // 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 "UpdateOriginEndpoint"; } AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() 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 UpdateOriginEndpointRequest& 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 UpdateOriginEndpointRequest& 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 UpdateOriginEndpointRequest& 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 UpdateOriginEndpointRequest& 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 UpdateOriginEndpointRequest& 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 UpdateOriginEndpointRequest& 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 and must be unique for your account in * the AWS Region and channel.

*/ 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 and must be unique for your account in * the AWS Region and channel.

*/ 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 and must be unique for your account in * the AWS Region and channel.

*/ 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 and must be unique for your account in * the AWS Region and channel.

*/ 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 and must be unique for your account in * the AWS Region and channel.

*/ 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 and must be unique for your account in * the AWS Region and channel.

*/ inline UpdateOriginEndpointRequest& 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 and must be unique for your account in * the AWS Region and channel.

*/ inline UpdateOriginEndpointRequest& 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 and must be unique for your account in * the AWS Region and channel.

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

The type of container attached 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.

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

The type of container attached 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.

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

The type of container attached 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.

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

The type of container attached 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.

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

The type of container attached 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.

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

The type of container attached 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.

*/ inline UpdateOriginEndpointRequest& 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 UpdateOriginEndpointRequest& WithSegment(const Segment& value) { SetSegment(value); return *this;} /** *

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

*/ inline UpdateOriginEndpointRequest& WithSegment(Segment&& value) { SetSegment(std::move(value)); return *this;} /** *

Any descriptive information that you want to add to the origin endpoint for * future identification purposes.

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

Any descriptive information that you want to add to the origin endpoint for * future identification purposes.

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

Any descriptive information that you want to add to the origin endpoint for * future identification purposes.

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

Any descriptive information that you want to add to the origin endpoint for * future identification purposes.

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

Any descriptive information that you want to add to the origin endpoint for * future identification purposes.

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

Any descriptive information that you want to add to the origin endpoint for * future identification purposes.

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

Any descriptive information that you want to add to the origin endpoint for * future identification purposes.

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

Any descriptive information that you want to add to the origin endpoint for * future identification purposes.

*/ inline UpdateOriginEndpointRequest& 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 UpdateOriginEndpointRequest& 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 UpdateOriginEndpointRequest& WithHlsManifests(const Aws::Vector& value) { SetHlsManifests(value); return *this;} /** *

An HTTP live streaming (HLS) manifest configuration.

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

An HTTP live streaming (HLS) manifest configuration.

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

An HTTP live streaming (HLS) manifest configuration.

*/ inline UpdateOriginEndpointRequest& 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 UpdateOriginEndpointRequest& WithLowLatencyHlsManifests(const Aws::Vector& value) { SetLowLatencyHlsManifests(value); return *this;} /** *

A low-latency HLS manifest configuration.

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

A low-latency HLS manifest configuration.

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

A low-latency HLS manifest configuration.

*/ inline UpdateOriginEndpointRequest& AddLowLatencyHlsManifests(CreateLowLatencyHlsManifestConfiguration&& value) { m_lowLatencyHlsManifestsHasBeenSet = true; m_lowLatencyHlsManifests.push_back(std::move(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_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; }; } // namespace Model } // namespace mediapackagev2 } // namespace Aws