145 lines
4.0 KiB
C
145 lines
4.0 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/iotanalytics/IoTAnalytics_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/iotanalytics/model/RetentionPeriod.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
template<typename RESULT_TYPE>
|
|||
|
|
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<Aws::Utils::Json::JsonValue>& result);
|
|||
|
|
CreateChannelResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the channel.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetChannelName() const{ return m_channelName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the channel.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetChannelName(const Aws::String& value) { m_channelName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the channel.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetChannelName(Aws::String&& value) { m_channelName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the channel.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetChannelName(const char* value) { m_channelName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the channel.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateChannelResult& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the channel.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateChannelResult& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the channel.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateChannelResult& WithChannelName(const char* value) { SetChannelName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the channel.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetChannelArn() const{ return m_channelArn; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the channel.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetChannelArn(const Aws::String& value) { m_channelArn = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the channel.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetChannelArn(Aws::String&& value) { m_channelArn = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the channel.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetChannelArn(const char* value) { m_channelArn.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the channel.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateChannelResult& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the channel.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateChannelResult& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the channel.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateChannelResult& WithChannelArn(const char* value) { SetChannelArn(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>How long, in days, message data is kept for the channel.</p>
|
|||
|
|
*/
|
|||
|
|
inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>How long, in days, message data is kept for the channel.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriod = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>How long, in days, message data is kept for the channel.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriod = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>How long, in days, message data is kept for the channel.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateChannelResult& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>How long, in days, message data is kept for the channel.</p>
|
|||
|
|
*/
|
|||
|
|
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
|