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

Information about a stream.

See Also:

AWS API * Reference

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

The stream ID.

*/ inline const Aws::String& GetStreamId() const{ return m_streamId; } /** *

The stream ID.

*/ inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; } /** *

The stream ID.

*/ inline void SetStreamId(const Aws::String& value) { m_streamIdHasBeenSet = true; m_streamId = value; } /** *

The stream ID.

*/ inline void SetStreamId(Aws::String&& value) { m_streamIdHasBeenSet = true; m_streamId = std::move(value); } /** *

The stream ID.

*/ inline void SetStreamId(const char* value) { m_streamIdHasBeenSet = true; m_streamId.assign(value); } /** *

The stream ID.

*/ inline StreamInfo& WithStreamId(const Aws::String& value) { SetStreamId(value); return *this;} /** *

The stream ID.

*/ inline StreamInfo& WithStreamId(Aws::String&& value) { SetStreamId(std::move(value)); return *this;} /** *

The stream ID.

*/ inline StreamInfo& WithStreamId(const char* value) { SetStreamId(value); return *this;} /** *

The stream ARN.

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

The stream ARN.

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

The stream ARN.

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

The stream ARN.

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

The stream ARN.

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

The stream ARN.

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

The stream ARN.

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

The stream ARN.

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

The stream version.

*/ inline int GetStreamVersion() const{ return m_streamVersion; } /** *

The stream version.

*/ inline bool StreamVersionHasBeenSet() const { return m_streamVersionHasBeenSet; } /** *

The stream version.

*/ inline void SetStreamVersion(int value) { m_streamVersionHasBeenSet = true; m_streamVersion = value; } /** *

The stream version.

*/ inline StreamInfo& WithStreamVersion(int value) { SetStreamVersion(value); return *this;} /** *

The description of the stream.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the stream.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the stream.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the stream.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the stream.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the stream.

*/ inline StreamInfo& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the stream.

*/ inline StreamInfo& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the stream.

*/ inline StreamInfo& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The files to stream.

*/ inline const Aws::Vector& GetFiles() const{ return m_files; } /** *

The files to stream.

*/ inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; } /** *

The files to stream.

*/ inline void SetFiles(const Aws::Vector& value) { m_filesHasBeenSet = true; m_files = value; } /** *

The files to stream.

*/ inline void SetFiles(Aws::Vector&& value) { m_filesHasBeenSet = true; m_files = std::move(value); } /** *

The files to stream.

*/ inline StreamInfo& WithFiles(const Aws::Vector& value) { SetFiles(value); return *this;} /** *

The files to stream.

*/ inline StreamInfo& WithFiles(Aws::Vector&& value) { SetFiles(std::move(value)); return *this;} /** *

The files to stream.

*/ inline StreamInfo& AddFiles(const StreamFile& value) { m_filesHasBeenSet = true; m_files.push_back(value); return *this; } /** *

The files to stream.

*/ inline StreamInfo& AddFiles(StreamFile&& value) { m_filesHasBeenSet = true; m_files.push_back(std::move(value)); return *this; } /** *

The date when the stream was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The date when the stream was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The date when the stream was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The date when the stream was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The date when the stream was created.

*/ inline StreamInfo& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The date when the stream was created.

*/ inline StreamInfo& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The date when the stream was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *

The date when the stream was last updated.

*/ inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *

The date when the stream was last updated.

*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } /** *

The date when the stream was last updated.

*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *

The date when the stream was last updated.

*/ inline StreamInfo& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *

The date when the stream was last updated.

*/ inline StreamInfo& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} /** *

An IAM role IoT assumes to access your S3 files.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

An IAM role IoT assumes to access your S3 files.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

An IAM role IoT assumes to access your S3 files.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

An IAM role IoT assumes to access your S3 files.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

An IAM role IoT assumes to access your S3 files.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

An IAM role IoT assumes to access your S3 files.

*/ inline StreamInfo& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

An IAM role IoT assumes to access your S3 files.

*/ inline StreamInfo& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

An IAM role IoT assumes to access your S3 files.

*/ inline StreamInfo& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: Aws::String m_streamId; bool m_streamIdHasBeenSet = false; Aws::String m_streamArn; bool m_streamArnHasBeenSet = false; int m_streamVersion; bool m_streamVersionHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_files; bool m_filesHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws