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

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 CreateStreamRequest& 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 CreateStreamRequest& 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 CreateStreamRequest& WithDeviceName(const char* value) { SetDeviceName(value); return *this;} /** *

A name for the stream that you are creating.

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; } /** *

A name for the stream that you are creating.

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; } /** *

A name for the stream that you are creating.

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; } /** *

A name for the stream that you are creating.

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); } /** *

A name for the stream that you are creating.

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); } /** *

A name for the stream that you are creating.

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

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

A name for the stream that you are creating.

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

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

A name for the stream that you are creating.

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

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

The media type of the stream. Consumers of the stream can use this * information when processing the stream. For more information about media types, * see Media * Types. If you choose to specify the MediaType, see Naming Requirements * for guidelines.

Example valid values include "video/h264" and * "video/h264,audio/aac".

This parameter is optional; the default value is * null (or empty in JSON).

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

The media type of the stream. Consumers of the stream can use this * information when processing the stream. For more information about media types, * see Media * Types. If you choose to specify the MediaType, see Naming Requirements * for guidelines.

Example valid values include "video/h264" and * "video/h264,audio/aac".

This parameter is optional; the default value is * null (or empty in JSON).

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

The media type of the stream. Consumers of the stream can use this * information when processing the stream. For more information about media types, * see Media * Types. If you choose to specify the MediaType, see Naming Requirements * for guidelines.

Example valid values include "video/h264" and * "video/h264,audio/aac".

This parameter is optional; the default value is * null (or empty in JSON).

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

The media type of the stream. Consumers of the stream can use this * information when processing the stream. For more information about media types, * see Media * Types. If you choose to specify the MediaType, see Naming Requirements * for guidelines.

Example valid values include "video/h264" and * "video/h264,audio/aac".

This parameter is optional; the default value is * null (or empty in JSON).

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

The media type of the stream. Consumers of the stream can use this * information when processing the stream. For more information about media types, * see Media * Types. If you choose to specify the MediaType, see Naming Requirements * for guidelines.

Example valid values include "video/h264" and * "video/h264,audio/aac".

This parameter is optional; the default value is * null (or empty in JSON).

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

The media type of the stream. Consumers of the stream can use this * information when processing the stream. For more information about media types, * see Media * Types. If you choose to specify the MediaType, see Naming Requirements * for guidelines.

Example valid values include "video/h264" and * "video/h264,audio/aac".

This parameter is optional; the default value is * null (or empty in JSON).

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

The media type of the stream. Consumers of the stream can use this * information when processing the stream. For more information about media types, * see Media * Types. If you choose to specify the MediaType, see Naming Requirements * for guidelines.

Example valid values include "video/h264" and * "video/h264,audio/aac".

This parameter is optional; the default value is * null (or empty in JSON).

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

The media type of the stream. Consumers of the stream can use this * information when processing the stream. For more information about media types, * see Media * Types. If you choose to specify the MediaType, see Naming Requirements * for guidelines.

Example valid values include "video/h264" and * "video/h264,audio/aac".

This parameter is optional; the default value is * null (or empty in JSON).

*/ inline CreateStreamRequest& WithMediaType(const char* value) { SetMediaType(value); return *this;} /** *

The ID of the Key Management Service (KMS) key that you want Kinesis Video * Streams to use to encrypt stream data.

If no key ID is specified, the * default, Kinesis Video-managed key (Amazon Web * Services/kinesisvideo) is used.

For more information, see DescribeKey. *

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

The ID of the Key Management Service (KMS) key that you want Kinesis Video * Streams to use to encrypt stream data.

If no key ID is specified, the * default, Kinesis Video-managed key (Amazon Web * Services/kinesisvideo) is used.

For more information, see DescribeKey. *

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

The ID of the Key Management Service (KMS) key that you want Kinesis Video * Streams to use to encrypt stream data.

If no key ID is specified, the * default, Kinesis Video-managed key (Amazon Web * Services/kinesisvideo) is used.

For more information, see DescribeKey. *

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

The ID of the Key Management Service (KMS) key that you want Kinesis Video * Streams to use to encrypt stream data.

If no key ID is specified, the * default, Kinesis Video-managed key (Amazon Web * Services/kinesisvideo) is used.

For more information, see DescribeKey. *

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

The ID of the Key Management Service (KMS) key that you want Kinesis Video * Streams to use to encrypt stream data.

If no key ID is specified, the * default, Kinesis Video-managed key (Amazon Web * Services/kinesisvideo) is used.

For more information, see DescribeKey. *

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

The ID of the Key Management Service (KMS) key that you want Kinesis Video * Streams to use to encrypt stream data.

If no key ID is specified, the * default, Kinesis Video-managed key (Amazon Web * Services/kinesisvideo) is used.

For more information, see DescribeKey. *

*/ inline CreateStreamRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

The ID of the Key Management Service (KMS) key that you want Kinesis Video * Streams to use to encrypt stream data.

If no key ID is specified, the * default, Kinesis Video-managed key (Amazon Web * Services/kinesisvideo) is used.

For more information, see DescribeKey. *

*/ inline CreateStreamRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

The ID of the Key Management Service (KMS) key that you want Kinesis Video * Streams to use to encrypt stream data.

If no key ID is specified, the * default, Kinesis Video-managed key (Amazon Web * Services/kinesisvideo) is used.

For more information, see DescribeKey. *

*/ inline CreateStreamRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *

The number of hours that you want to retain the data in the stream. Kinesis * Video Streams retains the data in a data store that is associated with the * stream.

The default value is 0, indicating that the stream does not * persist data.

When the DataRetentionInHours value is 0, * consumers can still consume the fragments that remain in the service host * buffer, which has a retention time limit of 5 minutes and a retention memory * limit of 200 MB. Fragments are removed from the buffer when either limit is * reached.

*/ inline int GetDataRetentionInHours() const{ return m_dataRetentionInHours; } /** *

The number of hours that you want to retain the data in the stream. Kinesis * Video Streams retains the data in a data store that is associated with the * stream.

The default value is 0, indicating that the stream does not * persist data.

When the DataRetentionInHours value is 0, * consumers can still consume the fragments that remain in the service host * buffer, which has a retention time limit of 5 minutes and a retention memory * limit of 200 MB. Fragments are removed from the buffer when either limit is * reached.

*/ inline bool DataRetentionInHoursHasBeenSet() const { return m_dataRetentionInHoursHasBeenSet; } /** *

The number of hours that you want to retain the data in the stream. Kinesis * Video Streams retains the data in a data store that is associated with the * stream.

The default value is 0, indicating that the stream does not * persist data.

When the DataRetentionInHours value is 0, * consumers can still consume the fragments that remain in the service host * buffer, which has a retention time limit of 5 minutes and a retention memory * limit of 200 MB. Fragments are removed from the buffer when either limit is * reached.

*/ inline void SetDataRetentionInHours(int value) { m_dataRetentionInHoursHasBeenSet = true; m_dataRetentionInHours = value; } /** *

The number of hours that you want to retain the data in the stream. Kinesis * Video Streams retains the data in a data store that is associated with the * stream.

The default value is 0, indicating that the stream does not * persist data.

When the DataRetentionInHours value is 0, * consumers can still consume the fragments that remain in the service host * buffer, which has a retention time limit of 5 minutes and a retention memory * limit of 200 MB. Fragments are removed from the buffer when either limit is * reached.

*/ inline CreateStreamRequest& WithDataRetentionInHours(int value) { SetDataRetentionInHours(value); return *this;} /** *

A list of tags to associate with the specified stream. Each tag is a * key-value pair (the value is optional).

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

A list of tags to associate with the specified stream. Each tag is a * key-value pair (the value is optional).

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

A list of tags to associate with the specified stream. Each tag is a * key-value pair (the value is optional).

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

A list of tags to associate with the specified stream. Each tag is a * key-value pair (the value is optional).

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

A list of tags to associate with the specified stream. Each tag is a * key-value pair (the value is optional).

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

A list of tags to associate with the specified stream. Each tag is a * key-value pair (the value is optional).

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

A list of tags to associate with the specified stream. Each tag is a * key-value pair (the value is optional).

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

A list of tags to associate with the specified stream. Each tag is a * key-value pair (the value is optional).

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

A list of tags to associate with the specified stream. Each tag is a * key-value pair (the value is optional).

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

A list of tags to associate with the specified stream. Each tag is a * key-value pair (the value is optional).

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

A list of tags to associate with the specified stream. Each tag is a * key-value pair (the value is optional).

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

A list of tags to associate with the specified stream. Each tag is a * key-value pair (the value is optional).

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

A list of tags to associate with the specified stream. Each tag is a * key-value pair (the value is optional).

*/ inline CreateStreamRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_deviceName; bool m_deviceNameHasBeenSet = false; Aws::String m_streamName; bool m_streamNameHasBeenSet = false; Aws::String m_mediaType; bool m_mediaTypeHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; int m_dataRetentionInHours; bool m_dataRetentionInHoursHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace KinesisVideo } // namespace Aws