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

The ARN of an channel returned by a GetChannel request.

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

The ARN of an channel returned by a GetChannel request.

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

The ARN of an channel returned by a GetChannel request.

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

The ARN of an channel returned by a GetChannel request.

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

The ARN of an channel returned by a GetChannel request.

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

The ARN of an channel returned by a GetChannel request.

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

The ARN of an channel returned by a GetChannel request.

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

The name of the CloudTrail channel. For service-linked channels, the name is * aws-service-channel/service-name/custom-suffix where * service-name represents the name of the Amazon Web Services service * that created the channel and custom-suffix represents the suffix * generated by the Amazon Web Services service.

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

The name of the CloudTrail channel. For service-linked channels, the name is * aws-service-channel/service-name/custom-suffix where * service-name represents the name of the Amazon Web Services service * that created the channel and custom-suffix represents the suffix * generated by the Amazon Web Services service.

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

The name of the CloudTrail channel. For service-linked channels, the name is * aws-service-channel/service-name/custom-suffix where * service-name represents the name of the Amazon Web Services service * that created the channel and custom-suffix represents the suffix * generated by the Amazon Web Services service.

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

The name of the CloudTrail channel. For service-linked channels, the name is * aws-service-channel/service-name/custom-suffix where * service-name represents the name of the Amazon Web Services service * that created the channel and custom-suffix represents the suffix * generated by the Amazon Web Services service.

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

The name of the CloudTrail channel. For service-linked channels, the name is * aws-service-channel/service-name/custom-suffix where * service-name represents the name of the Amazon Web Services service * that created the channel and custom-suffix represents the suffix * generated by the Amazon Web Services service.

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

The name of the CloudTrail channel. For service-linked channels, the name is * aws-service-channel/service-name/custom-suffix where * service-name represents the name of the Amazon Web Services service * that created the channel and custom-suffix represents the suffix * generated by the Amazon Web Services service.

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

The name of the CloudTrail channel. For service-linked channels, the name is * aws-service-channel/service-name/custom-suffix where * service-name represents the name of the Amazon Web Services service * that created the channel and custom-suffix represents the suffix * generated by the Amazon Web Services service.

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

The source for the CloudTrail channel.

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

The source for the CloudTrail channel.

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

The source for the CloudTrail channel.

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

The source for the CloudTrail channel.

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

The source for the CloudTrail channel.

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

The source for the CloudTrail channel.

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

The source for the CloudTrail channel.

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

Provides information about the advanced event selectors configured for the * channel, and whether the channel applies to all Regions or a single Region.

*/ inline const SourceConfig& GetSourceConfig() const{ return m_sourceConfig; } /** *

Provides information about the advanced event selectors configured for the * channel, and whether the channel applies to all Regions or a single Region.

*/ inline void SetSourceConfig(const SourceConfig& value) { m_sourceConfig = value; } /** *

Provides information about the advanced event selectors configured for the * channel, and whether the channel applies to all Regions or a single Region.

*/ inline void SetSourceConfig(SourceConfig&& value) { m_sourceConfig = std::move(value); } /** *

Provides information about the advanced event selectors configured for the * channel, and whether the channel applies to all Regions or a single Region.

*/ inline GetChannelResult& WithSourceConfig(const SourceConfig& value) { SetSourceConfig(value); return *this;} /** *

Provides information about the advanced event selectors configured for the * channel, and whether the channel applies to all Regions or a single Region.

*/ inline GetChannelResult& WithSourceConfig(SourceConfig&& value) { SetSourceConfig(std::move(value)); return *this;} /** *

The destinations for the channel. For channels created for integrations, the * destinations are the event data stores that log events arriving through the * channel. For service-linked channels, the destination is the Amazon Web Services * service that created the service-linked channel to receive events.

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

The destinations for the channel. For channels created for integrations, the * destinations are the event data stores that log events arriving through the * channel. For service-linked channels, the destination is the Amazon Web Services * service that created the service-linked channel to receive events.

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

The destinations for the channel. For channels created for integrations, the * destinations are the event data stores that log events arriving through the * channel. For service-linked channels, the destination is the Amazon Web Services * service that created the service-linked channel to receive events.

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

The destinations for the channel. For channels created for integrations, the * destinations are the event data stores that log events arriving through the * channel. For service-linked channels, the destination is the Amazon Web Services * service that created the service-linked channel to receive events.

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

The destinations for the channel. For channels created for integrations, the * destinations are the event data stores that log events arriving through the * channel. For service-linked channels, the destination is the Amazon Web Services * service that created the service-linked channel to receive events.

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

The destinations for the channel. For channels created for integrations, the * destinations are the event data stores that log events arriving through the * channel. For service-linked channels, the destination is the Amazon Web Services * service that created the service-linked channel to receive events.

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

The destinations for the channel. For channels created for integrations, the * destinations are the event data stores that log events arriving through the * channel. For service-linked channels, the destination is the Amazon Web Services * service that created the service-linked channel to receive events.

*/ inline GetChannelResult& AddDestinations(Destination&& value) { m_destinations.push_back(std::move(value)); return *this; } /** *

A table showing information about the most recent successful and failed * attempts to ingest events.

*/ inline const IngestionStatus& GetIngestionStatus() const{ return m_ingestionStatus; } /** *

A table showing information about the most recent successful and failed * attempts to ingest events.

*/ inline void SetIngestionStatus(const IngestionStatus& value) { m_ingestionStatus = value; } /** *

A table showing information about the most recent successful and failed * attempts to ingest events.

*/ inline void SetIngestionStatus(IngestionStatus&& value) { m_ingestionStatus = std::move(value); } /** *

A table showing information about the most recent successful and failed * attempts to ingest events.

*/ inline GetChannelResult& WithIngestionStatus(const IngestionStatus& value) { SetIngestionStatus(value); return *this;} /** *

A table showing information about the most recent successful and failed * attempts to ingest events.

*/ inline GetChannelResult& WithIngestionStatus(IngestionStatus&& value) { SetIngestionStatus(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 GetChannelResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetChannelResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetChannelResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_channelArn; Aws::String m_name; Aws::String m_source; SourceConfig m_sourceConfig; Aws::Vector m_destinations; IngestionStatus m_ingestionStatus; Aws::String m_requestId; }; } // namespace Model } // namespace CloudTrail } // namespace Aws