/** * 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 #include namespace Aws { namespace IoTAnalytics { namespace Model { /** */ class CreateChannelRequest : public IoTAnalyticsRequest { public: AWS_IOTANALYTICS_API CreateChannelRequest(); // 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 "CreateChannel"; } AWS_IOTANALYTICS_API Aws::String SerializePayload() const override; /** *

The name of the channel.

*/ inline const Aws::String& GetChannelName() const{ return m_channelName; } /** *

The name of the channel.

*/ inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; } /** *

The name of the channel.

*/ inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; } /** *

The name of the channel.

*/ inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); } /** *

The name of the channel.

*/ inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); } /** *

The name of the channel.

*/ inline CreateChannelRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;} /** *

The name of the channel.

*/ inline CreateChannelRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;} /** *

The name of the channel.

*/ inline CreateChannelRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;} /** *

Where channel data is stored. You can choose one of * serviceManagedS3 or customerManagedS3 storage. If not * specified, the default is serviceManagedS3. You can't change this * storage option after the channel is created.

*/ inline const ChannelStorage& GetChannelStorage() const{ return m_channelStorage; } /** *

Where channel data is stored. You can choose one of * serviceManagedS3 or customerManagedS3 storage. If not * specified, the default is serviceManagedS3. You can't change this * storage option after the channel is created.

*/ inline bool ChannelStorageHasBeenSet() const { return m_channelStorageHasBeenSet; } /** *

Where channel data is stored. You can choose one of * serviceManagedS3 or customerManagedS3 storage. If not * specified, the default is serviceManagedS3. You can't change this * storage option after the channel is created.

*/ inline void SetChannelStorage(const ChannelStorage& value) { m_channelStorageHasBeenSet = true; m_channelStorage = value; } /** *

Where channel data is stored. You can choose one of * serviceManagedS3 or customerManagedS3 storage. If not * specified, the default is serviceManagedS3. You can't change this * storage option after the channel is created.

*/ inline void SetChannelStorage(ChannelStorage&& value) { m_channelStorageHasBeenSet = true; m_channelStorage = std::move(value); } /** *

Where channel data is stored. You can choose one of * serviceManagedS3 or customerManagedS3 storage. If not * specified, the default is serviceManagedS3. You can't change this * storage option after the channel is created.

*/ inline CreateChannelRequest& WithChannelStorage(const ChannelStorage& value) { SetChannelStorage(value); return *this;} /** *

Where channel data is stored. You can choose one of * serviceManagedS3 or customerManagedS3 storage. If not * specified, the default is serviceManagedS3. You can't change this * storage option after the channel is created.

*/ inline CreateChannelRequest& WithChannelStorage(ChannelStorage&& value) { SetChannelStorage(std::move(value)); return *this;} /** *

How long, in days, message data is kept for the channel. When * customerManagedS3 storage is selected, this parameter is * ignored.

*/ inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; } /** *

How long, in days, message data is kept for the channel. When * customerManagedS3 storage is selected, this parameter is * ignored.

*/ inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; } /** *

How long, in days, message data is kept for the channel. When * customerManagedS3 storage is selected, this parameter is * ignored.

*/ inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; } /** *

How long, in days, message data is kept for the channel. When * customerManagedS3 storage is selected, this parameter is * ignored.

*/ inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::move(value); } /** *

How long, in days, message data is kept for the channel. When * customerManagedS3 storage is selected, this parameter is * ignored.

*/ inline CreateChannelRequest& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;} /** *

How long, in days, message data is kept for the channel. When * customerManagedS3 storage is selected, this parameter is * ignored.

*/ inline CreateChannelRequest& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;} /** *

Metadata which can be used to manage the channel.

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

Metadata which can be used to manage the channel.

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

Metadata which can be used to manage the channel.

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

Metadata which can be used to manage the channel.

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

Metadata which can be used to manage the channel.

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

Metadata which can be used to manage the channel.

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

Metadata which can be used to manage the channel.

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

Metadata which can be used to manage the channel.

*/ inline CreateChannelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_channelName; bool m_channelNameHasBeenSet = false; ChannelStorage m_channelStorage; bool m_channelStorageHasBeenSet = false; RetentionPeriod m_retentionPeriod; bool m_retentionPeriodHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws