/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudTrail { namespace Model { class CreateChannelResult { public: AWS_CLOUDTRAIL_API CreateChannelResult(); AWS_CLOUDTRAIL_API CreateChannelResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDTRAIL_API CreateChannelResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the new channel.

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

The Amazon Resource Name (ARN) of the new channel.

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

The Amazon Resource Name (ARN) of the new channel.

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

The Amazon Resource Name (ARN) of the new channel.

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

The Amazon Resource Name (ARN) of the new channel.

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

The Amazon Resource Name (ARN) of the new channel.

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

The Amazon Resource Name (ARN) of the new channel.

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

The name of the new channel.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the new channel.

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

The name of the new channel.

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

The name of the new channel.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the new channel.

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

The name of the new channel.

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

The name of the new channel.

*/ inline CreateChannelResult& WithName(const char* value) { SetName(value); return *this;} /** *

The partner or external event source name.

*/ inline const Aws::String& GetSource() const{ return m_source; } /** *

The partner or external event source name.

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

The partner or external event source name.

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

The partner or external event source name.

*/ inline void SetSource(const char* value) { m_source.assign(value); } /** *

The partner or external event source name.

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

The partner or external event source name.

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

The partner or external event source name.

*/ inline CreateChannelResult& WithSource(const char* value) { SetSource(value); return *this;} /** *

The event data stores that log the events arriving through the channel.

*/ inline const Aws::Vector& GetDestinations() const{ return m_destinations; } /** *

The event data stores that log the events arriving through the channel.

*/ inline void SetDestinations(const Aws::Vector& value) { m_destinations = value; } /** *

The event data stores that log the events arriving through the channel.

*/ inline void SetDestinations(Aws::Vector&& value) { m_destinations = std::move(value); } /** *

The event data stores that log the events arriving through the channel.

*/ inline CreateChannelResult& WithDestinations(const Aws::Vector& value) { SetDestinations(value); return *this;} /** *

The event data stores that log the events arriving through the channel.

*/ inline CreateChannelResult& WithDestinations(Aws::Vector&& value) { SetDestinations(std::move(value)); return *this;} /** *

The event data stores that log the events arriving through the channel.

*/ inline CreateChannelResult& AddDestinations(const Destination& value) { m_destinations.push_back(value); return *this; } /** *

The event data stores that log the events arriving through the channel.

*/ inline CreateChannelResult& AddDestinations(Destination&& value) { m_destinations.push_back(std::move(value)); return *this; } inline const Aws::Vector& GetTags() const{ return m_tags; } inline void SetTags(const Aws::Vector& value) { m_tags = value; } inline void SetTags(Aws::Vector&& value) { m_tags = std::move(value); } inline CreateChannelResult& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} inline CreateChannelResult& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} inline CreateChannelResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; } inline CreateChannelResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateChannelResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateChannelResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateChannelResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_channelArn; Aws::String m_name; Aws::String m_source; Aws::Vector m_destinations; Aws::Vector m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace CloudTrail } // namespace Aws