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

Represents the input of a DescribeStream operation.

*/ class AWS_DYNAMODBSTREAMS_API DescribeStreamRequest : public DynamoDBStreamsRequest { public: DescribeStreamRequest(); // 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 "DescribeStream"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) for the stream.

*/ inline const Aws::String& GetStreamArn() const{ return m_streamArn; } /** *

The Amazon Resource Name (ARN) for the stream.

*/ inline bool StreamArnHasBeenSet() const { return m_streamArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) for the stream.

*/ inline void SetStreamArn(const Aws::String& value) { m_streamArnHasBeenSet = true; m_streamArn = value; } /** *

The Amazon Resource Name (ARN) for the stream.

*/ inline void SetStreamArn(Aws::String&& value) { m_streamArnHasBeenSet = true; m_streamArn = std::move(value); } /** *

The Amazon Resource Name (ARN) for the stream.

*/ inline void SetStreamArn(const char* value) { m_streamArnHasBeenSet = true; m_streamArn.assign(value); } /** *

The Amazon Resource Name (ARN) for the stream.

*/ inline DescribeStreamRequest& WithStreamArn(const Aws::String& value) { SetStreamArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the stream.

*/ inline DescribeStreamRequest& WithStreamArn(Aws::String&& value) { SetStreamArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the stream.

*/ inline DescribeStreamRequest& WithStreamArn(const char* value) { SetStreamArn(value); return *this;} /** *

The maximum number of shard objects to return. The upper limit is 100.

*/ inline int GetLimit() const{ return m_limit; } /** *

The maximum number of shard objects to return. The upper limit is 100.

*/ inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; } /** *

The maximum number of shard objects to return. The upper limit is 100.

*/ inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; } /** *

The maximum number of shard objects to return. The upper limit is 100.

*/ inline DescribeStreamRequest& WithLimit(int value) { SetLimit(value); return *this;} /** *

The shard ID of the first item that this operation will evaluate. Use the * value that was returned for LastEvaluatedShardId in the previous * operation.

*/ inline const Aws::String& GetExclusiveStartShardId() const{ return m_exclusiveStartShardId; } /** *

The shard ID of the first item that this operation will evaluate. Use the * value that was returned for LastEvaluatedShardId in the previous * operation.

*/ inline bool ExclusiveStartShardIdHasBeenSet() const { return m_exclusiveStartShardIdHasBeenSet; } /** *

The shard ID of the first item that this operation will evaluate. Use the * value that was returned for LastEvaluatedShardId in the previous * operation.

*/ inline void SetExclusiveStartShardId(const Aws::String& value) { m_exclusiveStartShardIdHasBeenSet = true; m_exclusiveStartShardId = value; } /** *

The shard ID of the first item that this operation will evaluate. Use the * value that was returned for LastEvaluatedShardId in the previous * operation.

*/ inline void SetExclusiveStartShardId(Aws::String&& value) { m_exclusiveStartShardIdHasBeenSet = true; m_exclusiveStartShardId = std::move(value); } /** *

The shard ID of the first item that this operation will evaluate. Use the * value that was returned for LastEvaluatedShardId in the previous * operation.

*/ inline void SetExclusiveStartShardId(const char* value) { m_exclusiveStartShardIdHasBeenSet = true; m_exclusiveStartShardId.assign(value); } /** *

The shard ID of the first item that this operation will evaluate. Use the * value that was returned for LastEvaluatedShardId in the previous * operation.

*/ inline DescribeStreamRequest& WithExclusiveStartShardId(const Aws::String& value) { SetExclusiveStartShardId(value); return *this;} /** *

The shard ID of the first item that this operation will evaluate. Use the * value that was returned for LastEvaluatedShardId in the previous * operation.

*/ inline DescribeStreamRequest& WithExclusiveStartShardId(Aws::String&& value) { SetExclusiveStartShardId(std::move(value)); return *this;} /** *

The shard ID of the first item that this operation will evaluate. Use the * value that was returned for LastEvaluatedShardId in the previous * operation.

*/ inline DescribeStreamRequest& WithExclusiveStartShardId(const char* value) { SetExclusiveStartShardId(value); return *this;} private: Aws::String m_streamArn; bool m_streamArnHasBeenSet; int m_limit; bool m_limitHasBeenSet; Aws::String m_exclusiveStartShardId; bool m_exclusiveStartShardIdHasBeenSet; }; } // namespace Model } // namespace DynamoDBStreams } // namespace Aws