/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudTrail { namespace Model { /** *

Contains information about the destination receiving events.

See * Also:

AWS * API Reference

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

The type of destination for events arriving from a channel. For channels used * for a CloudTrail Lake integration, the value is EventDataStore. For * service-linked channels, the value is AWS_SERVICE.

*/ inline const DestinationType& GetType() const{ return m_type; } /** *

The type of destination for events arriving from a channel. For channels used * for a CloudTrail Lake integration, the value is EventDataStore. For * service-linked channels, the value is AWS_SERVICE.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of destination for events arriving from a channel. For channels used * for a CloudTrail Lake integration, the value is EventDataStore. For * service-linked channels, the value is AWS_SERVICE.

*/ inline void SetType(const DestinationType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of destination for events arriving from a channel. For channels used * for a CloudTrail Lake integration, the value is EventDataStore. For * service-linked channels, the value is AWS_SERVICE.

*/ inline void SetType(DestinationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of destination for events arriving from a channel. For channels used * for a CloudTrail Lake integration, the value is EventDataStore. For * service-linked channels, the value is AWS_SERVICE.

*/ inline Destination& WithType(const DestinationType& value) { SetType(value); return *this;} /** *

The type of destination for events arriving from a channel. For channels used * for a CloudTrail Lake integration, the value is EventDataStore. For * service-linked channels, the value is AWS_SERVICE.

*/ inline Destination& WithType(DestinationType&& value) { SetType(std::move(value)); return *this;} /** *

For channels used for a CloudTrail Lake integration, the location is the ARN * of an event data store that receives events from a channel. For service-linked * channels, the location is the name of the Amazon Web Services service.

*/ inline const Aws::String& GetLocation() const{ return m_location; } /** *

For channels used for a CloudTrail Lake integration, the location is the ARN * of an event data store that receives events from a channel. For service-linked * channels, the location is the name of the Amazon Web Services service.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

For channels used for a CloudTrail Lake integration, the location is the ARN * of an event data store that receives events from a channel. For service-linked * channels, the location is the name of the Amazon Web Services service.

*/ inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; } /** *

For channels used for a CloudTrail Lake integration, the location is the ARN * of an event data store that receives events from a channel. For service-linked * channels, the location is the name of the Amazon Web Services service.

*/ inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

For channels used for a CloudTrail Lake integration, the location is the ARN * of an event data store that receives events from a channel. For service-linked * channels, the location is the name of the Amazon Web Services service.

*/ inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); } /** *

For channels used for a CloudTrail Lake integration, the location is the ARN * of an event data store that receives events from a channel. For service-linked * channels, the location is the name of the Amazon Web Services service.

*/ inline Destination& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} /** *

For channels used for a CloudTrail Lake integration, the location is the ARN * of an event data store that receives events from a channel. For service-linked * channels, the location is the name of the Amazon Web Services service.

*/ inline Destination& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} /** *

For channels used for a CloudTrail Lake integration, the location is the ARN * of an event data store that receives events from a channel. For service-linked * channels, the location is the name of the Amazon Web Services service.

*/ inline Destination& WithLocation(const char* value) { SetLocation(value); return *this;} private: DestinationType m_type; bool m_typeHasBeenSet = false; Aws::String m_location; bool m_locationHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws