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

The summary of a stream.

See Also:

AWS * API Reference

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

The name of a stream.

*/ inline const Aws::String& GetStreamName() const{ return m_streamName; } /** *

The name of a stream.

*/ inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; } /** *

The name of a stream.

*/ inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; } /** *

The name of a stream.

*/ inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); } /** *

The name of a stream.

*/ inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); } /** *

The name of a stream.

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

The name of a stream.

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

The name of a stream.

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

The ARN of the stream.

*/ inline const Aws::String& GetStreamARN() const{ return m_streamARN; } /** *

The ARN of the stream.

*/ inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; } /** *

The ARN of the stream.

*/ inline void SetStreamARN(const Aws::String& value) { m_streamARNHasBeenSet = true; m_streamARN = value; } /** *

The ARN of the stream.

*/ inline void SetStreamARN(Aws::String&& value) { m_streamARNHasBeenSet = true; m_streamARN = std::move(value); } /** *

The ARN of the stream.

*/ inline void SetStreamARN(const char* value) { m_streamARNHasBeenSet = true; m_streamARN.assign(value); } /** *

The ARN of the stream.

*/ inline StreamSummary& WithStreamARN(const Aws::String& value) { SetStreamARN(value); return *this;} /** *

The ARN of the stream.

*/ inline StreamSummary& WithStreamARN(Aws::String&& value) { SetStreamARN(std::move(value)); return *this;} /** *

The ARN of the stream.

*/ inline StreamSummary& WithStreamARN(const char* value) { SetStreamARN(value); return *this;} /** *

The status of the stream.

*/ inline const StreamStatus& GetStreamStatus() const{ return m_streamStatus; } /** *

The status of the stream.

*/ inline bool StreamStatusHasBeenSet() const { return m_streamStatusHasBeenSet; } /** *

The status of the stream.

*/ inline void SetStreamStatus(const StreamStatus& value) { m_streamStatusHasBeenSet = true; m_streamStatus = value; } /** *

The status of the stream.

*/ inline void SetStreamStatus(StreamStatus&& value) { m_streamStatusHasBeenSet = true; m_streamStatus = std::move(value); } /** *

The status of the stream.

*/ inline StreamSummary& WithStreamStatus(const StreamStatus& value) { SetStreamStatus(value); return *this;} /** *

The status of the stream.

*/ inline StreamSummary& WithStreamStatus(StreamStatus&& value) { SetStreamStatus(std::move(value)); return *this;} inline const StreamModeDetails& GetStreamModeDetails() const{ return m_streamModeDetails; } inline bool StreamModeDetailsHasBeenSet() const { return m_streamModeDetailsHasBeenSet; } inline void SetStreamModeDetails(const StreamModeDetails& value) { m_streamModeDetailsHasBeenSet = true; m_streamModeDetails = value; } inline void SetStreamModeDetails(StreamModeDetails&& value) { m_streamModeDetailsHasBeenSet = true; m_streamModeDetails = std::move(value); } inline StreamSummary& WithStreamModeDetails(const StreamModeDetails& value) { SetStreamModeDetails(value); return *this;} inline StreamSummary& WithStreamModeDetails(StreamModeDetails&& value) { SetStreamModeDetails(std::move(value)); return *this;} /** *

The timestamp at which the stream was created.

*/ inline const Aws::Utils::DateTime& GetStreamCreationTimestamp() const{ return m_streamCreationTimestamp; } /** *

The timestamp at which the stream was created.

*/ inline bool StreamCreationTimestampHasBeenSet() const { return m_streamCreationTimestampHasBeenSet; } /** *

The timestamp at which the stream was created.

*/ inline void SetStreamCreationTimestamp(const Aws::Utils::DateTime& value) { m_streamCreationTimestampHasBeenSet = true; m_streamCreationTimestamp = value; } /** *

The timestamp at which the stream was created.

*/ inline void SetStreamCreationTimestamp(Aws::Utils::DateTime&& value) { m_streamCreationTimestampHasBeenSet = true; m_streamCreationTimestamp = std::move(value); } /** *

The timestamp at which the stream was created.

*/ inline StreamSummary& WithStreamCreationTimestamp(const Aws::Utils::DateTime& value) { SetStreamCreationTimestamp(value); return *this;} /** *

The timestamp at which the stream was created.

*/ inline StreamSummary& WithStreamCreationTimestamp(Aws::Utils::DateTime&& value) { SetStreamCreationTimestamp(std::move(value)); return *this;} private: Aws::String m_streamName; bool m_streamNameHasBeenSet = false; Aws::String m_streamARN; bool m_streamARNHasBeenSet = false; StreamStatus m_streamStatus; bool m_streamStatusHasBeenSet = false; StreamModeDetails m_streamModeDetails; bool m_streamModeDetailsHasBeenSet = false; Aws::Utils::DateTime m_streamCreationTimestamp; bool m_streamCreationTimestampHasBeenSet = false; }; } // namespace Model } // namespace Kinesis } // namespace Aws