/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 UpdateChannelResult { public: AWS_CLOUDTRAIL_API UpdateChannelResult(); AWS_CLOUDTRAIL_API UpdateChannelResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDTRAIL_API UpdateChannelResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ARN of the channel that was updated.

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

The ARN of the channel that was updated.

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

The ARN of the channel that was updated.

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

The ARN of the channel that was updated.

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

The ARN of the channel that was updated.

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

The ARN of the channel that was updated.

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

The ARN of the channel that was updated.

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

The name of the channel that was updated.

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

The name of the channel that was updated.

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

The name of the channel that was updated.

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

The name of the channel that was updated.

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

The name of the channel that was updated.

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

The name of the channel that was updated.

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

The name of the channel that was updated.

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

The event source of the channel that was updated.

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

The event source of the channel that was updated.

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

The event source of the channel that was updated.

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

The event source of the channel that was updated.

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

The event source of the channel that was updated.

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

The event source of the channel that was updated.

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

The event source of the channel that was updated.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline UpdateChannelResult& AddDestinations(Destination&& value) { m_destinations.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 UpdateChannelResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateChannelResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateChannelResult& 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::String m_requestId; }; } // namespace Model } // namespace CloudTrail } // namespace Aws