/** * 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 Kinesis { namespace Model { /** *

Represents the input for CreateStream.

See Also:

* AWS * API Reference

*/ class AWS_KINESIS_API CreateStreamRequest : public KinesisRequest { public: 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::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A name to identify the stream. The stream name is scoped to the AWS account * used by the application that creates the stream. It is also scoped by AWS * Region. That is, two streams in two different AWS accounts can have the same * name. Two streams in the same AWS 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 AWS account * used by the application that creates the stream. It is also scoped by AWS * Region. That is, two streams in two different AWS accounts can have the same * name. Two streams in the same AWS 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 AWS account * used by the application that creates the stream. It is also scoped by AWS * Region. That is, two streams in two different AWS accounts can have the same * name. Two streams in the same AWS 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 AWS account * used by the application that creates the stream. It is also scoped by AWS * Region. That is, two streams in two different AWS accounts can have the same * name. Two streams in the same AWS 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 AWS account * used by the application that creates the stream. It is also scoped by AWS * Region. That is, two streams in two different AWS accounts can have the same * name. Two streams in the same AWS 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 AWS account * used by the application that creates the stream. It is also scoped by AWS * Region. That is, two streams in two different AWS accounts can have the same * name. Two streams in the same AWS 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 AWS account * used by the application that creates the stream. It is also scoped by AWS * Region. That is, two streams in two different AWS accounts can have the same * name. Two streams in the same AWS 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 AWS account * used by the application that creates the stream. It is also scoped by AWS * Region. That is, two streams in two different AWS accounts can have the same * name. Two streams in the same AWS 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;} private: Aws::String m_streamName; bool m_streamNameHasBeenSet; int m_shardCount; bool m_shardCountHasBeenSet; }; } // namespace Model } // namespace Kinesis } // namespace Aws