/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DynamoDBStreams { namespace Model { /** *

The beginning and ending sequence numbers for the stream records contained * within a shard.

See Also:

AWS * API Reference

*/ class SequenceNumberRange { public: AWS_DYNAMODBSTREAMS_API SequenceNumberRange(); AWS_DYNAMODBSTREAMS_API SequenceNumberRange(Aws::Utils::Json::JsonView jsonValue); AWS_DYNAMODBSTREAMS_API SequenceNumberRange& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The first sequence number for the stream records contained within a shard. * String contains numeric characters only.

*/ inline const Aws::String& GetStartingSequenceNumber() const{ return m_startingSequenceNumber; } /** *

The first sequence number for the stream records contained within a shard. * String contains numeric characters only.

*/ inline bool StartingSequenceNumberHasBeenSet() const { return m_startingSequenceNumberHasBeenSet; } /** *

The first sequence number for the stream records contained within a shard. * String contains numeric characters only.

*/ inline void SetStartingSequenceNumber(const Aws::String& value) { m_startingSequenceNumberHasBeenSet = true; m_startingSequenceNumber = value; } /** *

The first sequence number for the stream records contained within a shard. * String contains numeric characters only.

*/ inline void SetStartingSequenceNumber(Aws::String&& value) { m_startingSequenceNumberHasBeenSet = true; m_startingSequenceNumber = std::move(value); } /** *

The first sequence number for the stream records contained within a shard. * String contains numeric characters only.

*/ inline void SetStartingSequenceNumber(const char* value) { m_startingSequenceNumberHasBeenSet = true; m_startingSequenceNumber.assign(value); } /** *

The first sequence number for the stream records contained within a shard. * String contains numeric characters only.

*/ inline SequenceNumberRange& WithStartingSequenceNumber(const Aws::String& value) { SetStartingSequenceNumber(value); return *this;} /** *

The first sequence number for the stream records contained within a shard. * String contains numeric characters only.

*/ inline SequenceNumberRange& WithStartingSequenceNumber(Aws::String&& value) { SetStartingSequenceNumber(std::move(value)); return *this;} /** *

The first sequence number for the stream records contained within a shard. * String contains numeric characters only.

*/ inline SequenceNumberRange& WithStartingSequenceNumber(const char* value) { SetStartingSequenceNumber(value); return *this;} /** *

The last sequence number for the stream records contained within a shard. * String contains numeric characters only.

*/ inline const Aws::String& GetEndingSequenceNumber() const{ return m_endingSequenceNumber; } /** *

The last sequence number for the stream records contained within a shard. * String contains numeric characters only.

*/ inline bool EndingSequenceNumberHasBeenSet() const { return m_endingSequenceNumberHasBeenSet; } /** *

The last sequence number for the stream records contained within a shard. * String contains numeric characters only.

*/ inline void SetEndingSequenceNumber(const Aws::String& value) { m_endingSequenceNumberHasBeenSet = true; m_endingSequenceNumber = value; } /** *

The last sequence number for the stream records contained within a shard. * String contains numeric characters only.

*/ inline void SetEndingSequenceNumber(Aws::String&& value) { m_endingSequenceNumberHasBeenSet = true; m_endingSequenceNumber = std::move(value); } /** *

The last sequence number for the stream records contained within a shard. * String contains numeric characters only.

*/ inline void SetEndingSequenceNumber(const char* value) { m_endingSequenceNumberHasBeenSet = true; m_endingSequenceNumber.assign(value); } /** *

The last sequence number for the stream records contained within a shard. * String contains numeric characters only.

*/ inline SequenceNumberRange& WithEndingSequenceNumber(const Aws::String& value) { SetEndingSequenceNumber(value); return *this;} /** *

The last sequence number for the stream records contained within a shard. * String contains numeric characters only.

*/ inline SequenceNumberRange& WithEndingSequenceNumber(Aws::String&& value) { SetEndingSequenceNumber(std::move(value)); return *this;} /** *

The last sequence number for the stream records contained within a shard. * String contains numeric characters only.

*/ inline SequenceNumberRange& WithEndingSequenceNumber(const char* value) { SetEndingSequenceNumber(value); return *this;} private: Aws::String m_startingSequenceNumber; bool m_startingSequenceNumberHasBeenSet = false; Aws::String m_endingSequenceNumber; bool m_endingSequenceNumberHasBeenSet = false; }; } // namespace Model } // namespace DynamoDBStreams } // namespace Aws