/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudTrail { namespace Model { /** *

Contains information about a returned CloudTrail channel.

See * Also:

AWS * API Reference

*/ class Channel { public: AWS_CLOUDTRAIL_API Channel(); AWS_CLOUDTRAIL_API Channel(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDTRAIL_API Channel& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of a channel.

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

The Amazon Resource Name (ARN) of a channel.

*/ inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of a channel.

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

The Amazon Resource Name (ARN) of a channel.

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

The Amazon Resource Name (ARN) of a channel.

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

The Amazon Resource Name (ARN) of a channel.

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

The Amazon Resource Name (ARN) of a channel.

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

The Amazon Resource Name (ARN) of a channel.

*/ inline Channel& 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 * created 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 * created by the Amazon Web Services service.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

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 * created by the Amazon Web Services service.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; 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 * created by the Amazon Web Services service.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; 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 * created by the Amazon Web Services service.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; 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 * created by the Amazon Web Services service.

*/ inline Channel& 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 * created by the Amazon Web Services service.

*/ inline Channel& 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 * created by the Amazon Web Services service.

*/ inline Channel& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_channelArn; bool m_channelArnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws