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

The name of the channel.

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

The name of the channel.

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

The name of the channel.

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

The name of the channel.

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

The name of the channel.

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

The name of the channel.

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

The name of the channel.

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

The name of the channel.

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

The name of the partner or external event source. You cannot change this name * after you create the channel. A maximum of one channel is allowed per * source.

A source can be either Custom for all valid * non-Amazon Web Services events, or the name of a partner event source. For * information about the source names for available partners, see Additional * information about integration partners in the CloudTrail User Guide.

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

The name of the partner or external event source. You cannot change this name * after you create the channel. A maximum of one channel is allowed per * source.

A source can be either Custom for all valid * non-Amazon Web Services events, or the name of a partner event source. For * information about the source names for available partners, see Additional * information about integration partners in the CloudTrail User Guide.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The name of the partner or external event source. You cannot change this name * after you create the channel. A maximum of one channel is allowed per * source.

A source can be either Custom for all valid * non-Amazon Web Services events, or the name of a partner event source. For * information about the source names for available partners, see Additional * information about integration partners in the CloudTrail User Guide.

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

The name of the partner or external event source. You cannot change this name * after you create the channel. A maximum of one channel is allowed per * source.

A source can be either Custom for all valid * non-Amazon Web Services events, or the name of a partner event source. For * information about the source names for available partners, see Additional * information about integration partners in the CloudTrail User Guide.

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

The name of the partner or external event source. You cannot change this name * after you create the channel. A maximum of one channel is allowed per * source.

A source can be either Custom for all valid * non-Amazon Web Services events, or the name of a partner event source. For * information about the source names for available partners, see Additional * information about integration partners in the CloudTrail User Guide.

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

The name of the partner or external event source. You cannot change this name * after you create the channel. A maximum of one channel is allowed per * source.

A source can be either Custom for all valid * non-Amazon Web Services events, or the name of a partner event source. For * information about the source names for available partners, see Additional * information about integration partners in the CloudTrail User Guide.

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

The name of the partner or external event source. You cannot change this name * after you create the channel. A maximum of one channel is allowed per * source.

A source can be either Custom for all valid * non-Amazon Web Services events, or the name of a partner event source. For * information about the source names for available partners, see Additional * information about integration partners in the CloudTrail User Guide.

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

The name of the partner or external event source. You cannot change this name * after you create the channel. A maximum of one channel is allowed per * source.

A source can be either Custom for all valid * non-Amazon Web Services events, or the name of a partner event source. For * information about the source names for available partners, see Additional * information about integration partners in the CloudTrail User Guide.

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

One or more event data stores to which events arriving through a channel will * be logged.

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

One or more event data stores to which events arriving through a channel will * be logged.

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

One or more event data stores to which events arriving through a channel will * be logged.

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

One or more event data stores to which events arriving through a channel will * be logged.

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

One or more event data stores to which events arriving through a channel will * be logged.

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

One or more event data stores to which events arriving through a channel will * be logged.

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

One or more event data stores to which events arriving through a channel will * be logged.

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

One or more event data stores to which events arriving through a channel will * be logged.

*/ inline CreateChannelRequest& AddDestinations(Destination&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; } inline const Aws::Vector& GetTags() const{ return m_tags; } inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } inline CreateChannelRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} inline CreateChannelRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} inline CreateChannelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } inline CreateChannelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_source; bool m_sourceHasBeenSet = false; Aws::Vector m_destinations; bool m_destinationsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws