/** * 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 { namespace CloudTrail { namespace Model { /** */ class UpdateChannelRequest : public CloudTrailRequest { public: AWS_CLOUDTRAIL_API UpdateChannelRequest(); // 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 "UpdateChannel"; } AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override; AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN or ID (the ARN suffix) of the channel that you want to update.

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

The ARN or ID (the ARN suffix) of the channel that you want to update.

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

The ARN or ID (the ARN suffix) of the channel that you want to update.

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

The ARN or ID (the ARN suffix) of the channel that you want to update.

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

The ARN or ID (the ARN suffix) of the channel that you want to update.

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

The ARN or ID (the ARN suffix) of the channel that you want to update.

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

The ARN or ID (the ARN suffix) of the channel that you want to update.

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

The ARN or ID (the ARN suffix) of the channel that you want to update.

*/ inline UpdateChannelRequest& WithChannel(const char* value) { SetChannel(value); return *this;} /** *

The ARNs of event data stores that you want to log events arriving through * the channel.

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

The ARNs of event data stores that you want to log events arriving through * the channel.

*/ inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; } /** *

The ARNs of event data stores that you want to log events arriving through * the channel.

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

The ARNs of event data stores that you want to log events arriving through * the channel.

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

The ARNs of event data stores that you want to log events arriving through * the channel.

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

The ARNs of event data stores that you want to log events arriving through * the channel.

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

The ARNs of event data stores that you want to log events arriving through * the channel.

*/ inline UpdateChannelRequest& AddDestinations(const Destination& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; } /** *

The ARNs of event data stores that you want to log events arriving through * the channel.

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

Changes the name of the channel.

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

Changes the name of the channel.

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

Changes the name of the channel.

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

Changes the name of the channel.

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

Changes the name of the channel.

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

Changes the name of the channel.

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

Changes the name of the channel.

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

Changes the name of the channel.

*/ inline UpdateChannelRequest& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_channel; bool m_channelHasBeenSet = false; Aws::Vector m_destinations; bool m_destinationsHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws