/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace KinesisVideo { namespace Model { /** */ class UpdateStreamRequest : public KinesisVideoRequest { public: AWS_KINESISVIDEO_API UpdateStreamRequest(); // 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 "UpdateStream"; } AWS_KINESISVIDEO_API Aws::String SerializePayload() const override; /** *

The name of the stream whose metadata you want to update.

The stream * name is an identifier for the stream, and must be unique for each account and * region.

*/ inline const Aws::String& GetStreamName() const{ return m_streamName; } /** *

The name of the stream whose metadata you want to update.

The stream * name is an identifier for the stream, and must be unique for each account and * region.

*/ inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; } /** *

The name of the stream whose metadata you want to update.

The stream * name is an identifier for the stream, and must be unique for each account and * region.

*/ inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; } /** *

The name of the stream whose metadata you want to update.

The stream * name is an identifier for the stream, and must be unique for each account and * region.

*/ inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); } /** *

The name of the stream whose metadata you want to update.

The stream * name is an identifier for the stream, and must be unique for each account and * region.

*/ inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); } /** *

The name of the stream whose metadata you want to update.

The stream * name is an identifier for the stream, and must be unique for each account and * region.

*/ inline UpdateStreamRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;} /** *

The name of the stream whose metadata you want to update.

The stream * name is an identifier for the stream, and must be unique for each account and * region.

*/ inline UpdateStreamRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;} /** *

The name of the stream whose metadata you want to update.

The stream * name is an identifier for the stream, and must be unique for each account and * region.

*/ inline UpdateStreamRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;} /** *

The ARN of the stream whose metadata you want to update.

*/ inline const Aws::String& GetStreamARN() const{ return m_streamARN; } /** *

The ARN of the stream whose metadata you want to update.

*/ inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; } /** *

The ARN of the stream whose metadata you want to update.

*/ inline void SetStreamARN(const Aws::String& value) { m_streamARNHasBeenSet = true; m_streamARN = value; } /** *

The ARN of the stream whose metadata you want to update.

*/ inline void SetStreamARN(Aws::String&& value) { m_streamARNHasBeenSet = true; m_streamARN = std::move(value); } /** *

The ARN of the stream whose metadata you want to update.

*/ inline void SetStreamARN(const char* value) { m_streamARNHasBeenSet = true; m_streamARN.assign(value); } /** *

The ARN of the stream whose metadata you want to update.

*/ inline UpdateStreamRequest& WithStreamARN(const Aws::String& value) { SetStreamARN(value); return *this;} /** *

The ARN of the stream whose metadata you want to update.

*/ inline UpdateStreamRequest& WithStreamARN(Aws::String&& value) { SetStreamARN(std::move(value)); return *this;} /** *

The ARN of the stream whose metadata you want to update.

*/ inline UpdateStreamRequest& WithStreamARN(const char* value) { SetStreamARN(value); return *this;} /** *

The version of the stream whose metadata you want to update.

*/ inline const Aws::String& GetCurrentVersion() const{ return m_currentVersion; } /** *

The version of the stream whose metadata you want to update.

*/ inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; } /** *

The version of the stream whose metadata you want to update.

*/ inline void SetCurrentVersion(const Aws::String& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; } /** *

The version of the stream whose metadata you want to update.

*/ inline void SetCurrentVersion(Aws::String&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); } /** *

The version of the stream whose metadata you want to update.

*/ inline void SetCurrentVersion(const char* value) { m_currentVersionHasBeenSet = true; m_currentVersion.assign(value); } /** *

The version of the stream whose metadata you want to update.

*/ inline UpdateStreamRequest& WithCurrentVersion(const Aws::String& value) { SetCurrentVersion(value); return *this;} /** *

The version of the stream whose metadata you want to update.

*/ inline UpdateStreamRequest& WithCurrentVersion(Aws::String&& value) { SetCurrentVersion(std::move(value)); return *this;} /** *

The version of the stream whose metadata you want to update.

*/ inline UpdateStreamRequest& WithCurrentVersion(const char* value) { SetCurrentVersion(value); return *this;} /** *

The name of the device that is writing to the stream.

In the * current implementation, Kinesis Video Streams does not use this name.

* */ inline const Aws::String& GetDeviceName() const{ return m_deviceName; } /** *

The name of the device that is writing to the stream.

In the * current implementation, Kinesis Video Streams does not use this name.

* */ inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; } /** *

The name of the device that is writing to the stream.

In the * current implementation, Kinesis Video Streams does not use this name.

* */ inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; } /** *

The name of the device that is writing to the stream.

In the * current implementation, Kinesis Video Streams does not use this name.

* */ inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); } /** *

The name of the device that is writing to the stream.

In the * current implementation, Kinesis Video Streams does not use this name.

* */ inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); } /** *

The name of the device that is writing to the stream.

In the * current implementation, Kinesis Video Streams does not use this name.

* */ inline UpdateStreamRequest& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;} /** *

The name of the device that is writing to the stream.

In the * current implementation, Kinesis Video Streams does not use this name.

* */ inline UpdateStreamRequest& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;} /** *

The name of the device that is writing to the stream.

In the * current implementation, Kinesis Video Streams does not use this name.

* */ inline UpdateStreamRequest& WithDeviceName(const char* value) { SetDeviceName(value); return *this;} /** *

The stream's media type. Use MediaType to specify the type of * content that the stream contains to the consumers of the stream. For more * information about media types, see Media * Types. If you choose to specify the MediaType, see Naming * Requirements.

To play video on the console, you must specify the * correct video type. For example, if the video in the stream is H.264, specify * video/h264 as the MediaType.

*/ inline const Aws::String& GetMediaType() const{ return m_mediaType; } /** *

The stream's media type. Use MediaType to specify the type of * content that the stream contains to the consumers of the stream. For more * information about media types, see Media * Types. If you choose to specify the MediaType, see Naming * Requirements.

To play video on the console, you must specify the * correct video type. For example, if the video in the stream is H.264, specify * video/h264 as the MediaType.

*/ inline bool MediaTypeHasBeenSet() const { return m_mediaTypeHasBeenSet; } /** *

The stream's media type. Use MediaType to specify the type of * content that the stream contains to the consumers of the stream. For more * information about media types, see Media * Types. If you choose to specify the MediaType, see Naming * Requirements.

To play video on the console, you must specify the * correct video type. For example, if the video in the stream is H.264, specify * video/h264 as the MediaType.

*/ inline void SetMediaType(const Aws::String& value) { m_mediaTypeHasBeenSet = true; m_mediaType = value; } /** *

The stream's media type. Use MediaType to specify the type of * content that the stream contains to the consumers of the stream. For more * information about media types, see Media * Types. If you choose to specify the MediaType, see Naming * Requirements.

To play video on the console, you must specify the * correct video type. For example, if the video in the stream is H.264, specify * video/h264 as the MediaType.

*/ inline void SetMediaType(Aws::String&& value) { m_mediaTypeHasBeenSet = true; m_mediaType = std::move(value); } /** *

The stream's media type. Use MediaType to specify the type of * content that the stream contains to the consumers of the stream. For more * information about media types, see Media * Types. If you choose to specify the MediaType, see Naming * Requirements.

To play video on the console, you must specify the * correct video type. For example, if the video in the stream is H.264, specify * video/h264 as the MediaType.

*/ inline void SetMediaType(const char* value) { m_mediaTypeHasBeenSet = true; m_mediaType.assign(value); } /** *

The stream's media type. Use MediaType to specify the type of * content that the stream contains to the consumers of the stream. For more * information about media types, see Media * Types. If you choose to specify the MediaType, see Naming * Requirements.

To play video on the console, you must specify the * correct video type. For example, if the video in the stream is H.264, specify * video/h264 as the MediaType.

*/ inline UpdateStreamRequest& WithMediaType(const Aws::String& value) { SetMediaType(value); return *this;} /** *

The stream's media type. Use MediaType to specify the type of * content that the stream contains to the consumers of the stream. For more * information about media types, see Media * Types. If you choose to specify the MediaType, see Naming * Requirements.

To play video on the console, you must specify the * correct video type. For example, if the video in the stream is H.264, specify * video/h264 as the MediaType.

*/ inline UpdateStreamRequest& WithMediaType(Aws::String&& value) { SetMediaType(std::move(value)); return *this;} /** *

The stream's media type. Use MediaType to specify the type of * content that the stream contains to the consumers of the stream. For more * information about media types, see Media * Types. If you choose to specify the MediaType, see Naming * Requirements.

To play video on the console, you must specify the * correct video type. For example, if the video in the stream is H.264, specify * video/h264 as the MediaType.

*/ inline UpdateStreamRequest& WithMediaType(const char* value) { SetMediaType(value); return *this;} private: Aws::String m_streamName; bool m_streamNameHasBeenSet = false; Aws::String m_streamARN; bool m_streamARNHasBeenSet = false; Aws::String m_currentVersion; bool m_currentVersionHasBeenSet = false; Aws::String m_deviceName; bool m_deviceNameHasBeenSet = false; Aws::String m_mediaType; bool m_mediaTypeHasBeenSet = false; }; } // namespace Model } // namespace KinesisVideo } // namespace Aws