Class CfnEventStreamProps.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnEventStreamProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventStreamProps>
- Enclosing interface:
CfnEventStreamProps
@Stability(Stable)
public static final class CfnEventStreamProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventStreamProps>
A builder for
CfnEventStreamProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) Sets the value ofCfnEventStreamProps.getApplicationId()
build()
Builds the configured instance.destinationStreamArn
(String destinationStreamArn) Sets the value ofCfnEventStreamProps.getDestinationStreamArn()
Sets the value ofCfnEventStreamProps.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationId
Sets the value ofCfnEventStreamProps.getApplicationId()
- Parameters:
applicationId
- The unique identifier for the Amazon Pinpoint application that you want to export data from. This parameter is required.- Returns:
this
-
destinationStreamArn
@Stability(Stable) public CfnEventStreamProps.Builder destinationStreamArn(String destinationStreamArn) Sets the value ofCfnEventStreamProps.getDestinationStreamArn()
- Parameters:
destinationStreamArn
- The Amazon Resource Name (ARN) of the Amazon Kinesis data stream or Amazon Kinesis Data Firehose delivery stream that you want to publish event data to. This parameter is required. For a Kinesis data stream, the ARN format is:arn:aws:kinesis: region : account-id :stream/ stream_name
For a Kinesis Data Firehose delivery stream, the ARN format is:
arn:aws:firehose: region : account-id :deliverystream/ stream_name
- Returns:
this
-
roleArn
Sets the value ofCfnEventStreamProps.getRoleArn()
- Parameters:
roleArn
- The AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to publish event data to the stream in your AWS account. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEventStreamProps>
- Returns:
- a new instance of
CfnEventStreamProps
- Throws:
NullPointerException
- if any required attribute was not provided
-