/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace CloudTrail { namespace Model { /** */ class GetChannelRequest : public CloudTrailRequest { public: AWS_CLOUDTRAIL_API GetChannelRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetChannel"; } AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override; AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN or UUID of a channel.

*/ inline const Aws::String& GetChannel() const{ return m_channel; } /** *

The ARN or UUID of a channel.

*/ inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; } /** *

The ARN or UUID of a channel.

*/ inline void SetChannel(const Aws::String& value) { m_channelHasBeenSet = true; m_channel = value; } /** *

The ARN or UUID of a channel.

*/ inline void SetChannel(Aws::String&& value) { m_channelHasBeenSet = true; m_channel = std::move(value); } /** *

The ARN or UUID of a channel.

*/ inline void SetChannel(const char* value) { m_channelHasBeenSet = true; m_channel.assign(value); } /** *

The ARN or UUID of a channel.

*/ inline GetChannelRequest& WithChannel(const Aws::String& value) { SetChannel(value); return *this;} /** *

The ARN or UUID of a channel.

*/ inline GetChannelRequest& WithChannel(Aws::String&& value) { SetChannel(std::move(value)); return *this;} /** *

The ARN or UUID of a channel.

*/ inline GetChannelRequest& WithChannel(const char* value) { SetChannel(value); return *this;} private: Aws::String m_channel; bool m_channelHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws