/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents the input for CreateStream
.See Also:
* AWS
* API Reference
A name to identify the stream. The stream name is scoped to the Amazon Web * Services account used by the application that creates the stream. It is also * scoped by Amazon Web Services Region. That is, two streams in two different * Amazon Web Services accounts can have the same name. Two streams in the same * Amazon Web Services account but in two different Regions can also have the same * name.
*/ inline const Aws::String& GetStreamName() const{ return m_streamName; } /** *A name to identify the stream. The stream name is scoped to the Amazon Web * Services account used by the application that creates the stream. It is also * scoped by Amazon Web Services Region. That is, two streams in two different * Amazon Web Services accounts can have the same name. Two streams in the same * Amazon Web Services account but in two different Regions can also have the same * name.
*/ inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; } /** *A name to identify the stream. The stream name is scoped to the Amazon Web * Services account used by the application that creates the stream. It is also * scoped by Amazon Web Services Region. That is, two streams in two different * Amazon Web Services accounts can have the same name. Two streams in the same * Amazon Web Services account but in two different Regions can also have the same * name.
*/ inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; } /** *A name to identify the stream. The stream name is scoped to the Amazon Web * Services account used by the application that creates the stream. It is also * scoped by Amazon Web Services Region. That is, two streams in two different * Amazon Web Services accounts can have the same name. Two streams in the same * Amazon Web Services account but in two different Regions can also have the same * name.
*/ inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); } /** *A name to identify the stream. The stream name is scoped to the Amazon Web * Services account used by the application that creates the stream. It is also * scoped by Amazon Web Services Region. That is, two streams in two different * Amazon Web Services accounts can have the same name. Two streams in the same * Amazon Web Services account but in two different Regions can also have the same * name.
*/ inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); } /** *A name to identify the stream. The stream name is scoped to the Amazon Web * Services account used by the application that creates the stream. It is also * scoped by Amazon Web Services Region. That is, two streams in two different * Amazon Web Services accounts can have the same name. Two streams in the same * Amazon Web Services account but in two different Regions can also have the same * name.
*/ inline CreateStreamRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;} /** *A name to identify the stream. The stream name is scoped to the Amazon Web * Services account used by the application that creates the stream. It is also * scoped by Amazon Web Services Region. That is, two streams in two different * Amazon Web Services accounts can have the same name. Two streams in the same * Amazon Web Services account but in two different Regions can also have the same * name.
*/ inline CreateStreamRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;} /** *A name to identify the stream. The stream name is scoped to the Amazon Web * Services account used by the application that creates the stream. It is also * scoped by Amazon Web Services Region. That is, two streams in two different * Amazon Web Services accounts can have the same name. Two streams in the same * Amazon Web Services account but in two different Regions can also have the same * name.
*/ inline CreateStreamRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;} /** *The number of shards that the stream will use. The throughput of the stream * is a function of the number of shards; more shards are required for greater * provisioned throughput.
*/ inline int GetShardCount() const{ return m_shardCount; } /** *The number of shards that the stream will use. The throughput of the stream * is a function of the number of shards; more shards are required for greater * provisioned throughput.
*/ inline bool ShardCountHasBeenSet() const { return m_shardCountHasBeenSet; } /** *The number of shards that the stream will use. The throughput of the stream * is a function of the number of shards; more shards are required for greater * provisioned throughput.
*/ inline void SetShardCount(int value) { m_shardCountHasBeenSet = true; m_shardCount = value; } /** *The number of shards that the stream will use. The throughput of the stream * is a function of the number of shards; more shards are required for greater * provisioned throughput.
*/ inline CreateStreamRequest& WithShardCount(int value) { SetShardCount(value); return *this;} /** *Indicates the capacity mode of the data stream. Currently, in Kinesis Data * Streams, you can choose between an on-demand capacity mode and a * provisioned capacity mode for your data streams.
*/ inline const StreamModeDetails& GetStreamModeDetails() const{ return m_streamModeDetails; } /** *Indicates the capacity mode of the data stream. Currently, in Kinesis Data * Streams, you can choose between an on-demand capacity mode and a * provisioned capacity mode for your data streams.
*/ inline bool StreamModeDetailsHasBeenSet() const { return m_streamModeDetailsHasBeenSet; } /** *Indicates the capacity mode of the data stream. Currently, in Kinesis Data * Streams, you can choose between an on-demand capacity mode and a * provisioned capacity mode for your data streams.
*/ inline void SetStreamModeDetails(const StreamModeDetails& value) { m_streamModeDetailsHasBeenSet = true; m_streamModeDetails = value; } /** *Indicates the capacity mode of the data stream. Currently, in Kinesis Data * Streams, you can choose between an on-demand capacity mode and a * provisioned capacity mode for your data streams.
*/ inline void SetStreamModeDetails(StreamModeDetails&& value) { m_streamModeDetailsHasBeenSet = true; m_streamModeDetails = std::move(value); } /** *Indicates the capacity mode of the data stream. Currently, in Kinesis Data * Streams, you can choose between an on-demand capacity mode and a * provisioned capacity mode for your data streams.
*/ inline CreateStreamRequest& WithStreamModeDetails(const StreamModeDetails& value) { SetStreamModeDetails(value); return *this;} /** *Indicates the capacity mode of the data stream. Currently, in Kinesis Data * Streams, you can choose between an on-demand capacity mode and a * provisioned capacity mode for your data streams.
*/ inline CreateStreamRequest& WithStreamModeDetails(StreamModeDetails&& value) { SetStreamModeDetails(std::move(value)); return *this;} private: Aws::String m_streamName; bool m_streamNameHasBeenSet = false; int m_shardCount; bool m_shardCountHasBeenSet = false; StreamModeDetails m_streamModeDetails; bool m_streamModeDetailsHasBeenSet = false; }; } // namespace Model } // namespace Kinesis } // namespace Aws