/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace IoT { namespace Model { /** */ class CreateStreamRequest : public IoTRequest { public: AWS_IOT_API 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_IOT_API Aws::String SerializePayload() const override; /** *

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 CreateStreamRequest& WithStreamId(const Aws::String& value) { SetStreamId(value); return *this;} /** *

The stream ID.

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

The stream ID.

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

A description of the stream.

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

A description of the stream.

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

A description of the stream.

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

A description of the stream.

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

A description of the stream.

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

A description of the stream.

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

A description of the stream.

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

A description of the stream.

*/ inline CreateStreamRequest& 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 CreateStreamRequest& WithFiles(const Aws::Vector& value) { SetFiles(value); return *this;} /** *

The files to stream.

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

The files to stream.

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

The files to stream.

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

An IAM role that allows the IoT service principal to access your S3 * files.

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

An IAM role that allows the IoT service principal to access your S3 * files.

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

An IAM role that allows the IoT service principal to access your S3 * files.

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

An IAM role that allows the IoT service principal to access your S3 * files.

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

An IAM role that allows the IoT service principal to access your S3 * files.

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

An IAM role that allows the IoT service principal to access your S3 * files.

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

An IAM role that allows the IoT service principal to access your S3 * files.

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

An IAM role that allows the IoT service principal to access your S3 * files.

*/ inline CreateStreamRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

Metadata which can be used to manage streams.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Metadata which can be used to manage streams.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Metadata which can be used to manage streams.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Metadata which can be used to manage streams.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Metadata which can be used to manage streams.

*/ inline CreateStreamRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Metadata which can be used to manage streams.

*/ inline CreateStreamRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Metadata which can be used to manage streams.

*/ inline CreateStreamRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Metadata which can be used to manage streams.

*/ inline CreateStreamRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_streamId; bool m_streamIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_files; bool m_filesHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws