/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoTAnalytics { namespace Model { class AWS_IOTANALYTICS_API CreateChannelResult { public: CreateChannelResult(); CreateChannelResult(const Aws::AmazonWebServiceResult& result); CreateChannelResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the channel.

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

The name of the channel.

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

The name of the channel.

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

The name of the channel.

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

The name of the channel.

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

The name of the channel.

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

The name of the channel.

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

The ARN of the channel.

*/ inline const Aws::String& GetChannelArn() const{ return m_channelArn; } /** *

The ARN of the channel.

*/ inline void SetChannelArn(const Aws::String& value) { m_channelArn = value; } /** *

The ARN of the channel.

*/ inline void SetChannelArn(Aws::String&& value) { m_channelArn = std::move(value); } /** *

The ARN of the channel.

*/ inline void SetChannelArn(const char* value) { m_channelArn.assign(value); } /** *

The ARN of the channel.

*/ inline CreateChannelResult& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;} /** *

The ARN of the channel.

*/ inline CreateChannelResult& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;} /** *

The ARN of the channel.

*/ inline CreateChannelResult& WithChannelArn(const char* value) { SetChannelArn(value); return *this;} /** *

How long, in days, message data is kept for the channel.

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

How long, in days, message data is kept for the channel.

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

How long, in days, message data is kept for the channel.

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

How long, in days, message data is kept for the channel.

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

How long, in days, message data is kept for the channel.

*/ inline CreateChannelResult& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;} private: Aws::String m_channelName; Aws::String m_channelArn; RetentionPeriod m_retentionPeriod; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws