Class CfnChannel.DestinationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudtrail.CfnChannel.DestinationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.DestinationProperty>
- Enclosing interface:
- CfnChannel.DestinationProperty
@Stability(Stable)
public static final class CfnChannel.DestinationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.DestinationProperty>
A builder for
CfnChannel.DestinationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnChannel.DestinationProperty.getLocation()Sets the value ofCfnChannel.DestinationProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
location
Sets the value ofCfnChannel.DestinationProperty.getLocation()- Parameters:
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. This parameter is required. For service-linked channels, the location is the name of the AWS service.- Returns:
this
-
type
Sets the value ofCfnChannel.DestinationProperty.getType()- Parameters:
type- The type of destination for events arriving from a channel. This parameter is required. For channels used for a CloudTrail Lake integration, the value isEventDataStore. For service-linked channels, the value isAWS_SERVICE.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannel.DestinationProperty>- Returns:
- a new instance of
CfnChannel.DestinationProperty - Throws:
NullPointerException- if any required attribute was not provided
-