Class CfnConfigurationSetEventDestination.EventDestinationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpointemail.CfnConfigurationSetEventDestination.EventDestinationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConfigurationSetEventDestination.EventDestinationProperty>
- Enclosing interface:
CfnConfigurationSetEventDestination.EventDestinationProperty
@Stability(Stable)
public static final class CfnConfigurationSetEventDestination.EventDestinationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConfigurationSetEventDestination.EventDestinationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cloudWatchDestination
(IResolvable cloudWatchDestination) cloudWatchDestination
(CfnConfigurationSetEventDestination.CloudWatchDestinationProperty cloudWatchDestination) enabled
(IResolvable enabled) kinesisFirehoseDestination
(IResolvable kinesisFirehoseDestination) kinesisFirehoseDestination
(CfnConfigurationSetEventDestination.KinesisFirehoseDestinationProperty kinesisFirehoseDestination) matchingEventTypes
(List<String> matchingEventTypes) pinpointDestination
(IResolvable pinpointDestination) pinpointDestination
(CfnConfigurationSetEventDestination.PinpointDestinationProperty pinpointDestination) snsDestination
(IResolvable snsDestination)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
matchingEventTypes
@Stability(Stable) public CfnConfigurationSetEventDestination.EventDestinationProperty.Builder matchingEventTypes(List<String> matchingEventTypes) Sets the value ofCfnConfigurationSetEventDestination.EventDestinationProperty.getMatchingEventTypes()
- Parameters:
matchingEventTypes
- The types of events that Amazon Pinpoint sends to the specified event destinations. This parameter is required. Acceptable values:SEND
,REJECT
,BOUNCE
,COMPLAINT
,DELIVERY
,OPEN
,CLICK
, andRENDERING_FAILURE
.- Returns:
this
-
cloudWatchDestination
@Stability(Stable) public CfnConfigurationSetEventDestination.EventDestinationProperty.Builder cloudWatchDestination(IResolvable cloudWatchDestination) Sets the value ofCfnConfigurationSetEventDestination.EventDestinationProperty.getCloudWatchDestination()
- Parameters:
cloudWatchDestination
- An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics.- Returns:
this
-
cloudWatchDestination
@Stability(Stable) public CfnConfigurationSetEventDestination.EventDestinationProperty.Builder cloudWatchDestination(CfnConfigurationSetEventDestination.CloudWatchDestinationProperty cloudWatchDestination) Sets the value ofCfnConfigurationSetEventDestination.EventDestinationProperty.getCloudWatchDestination()
- Parameters:
cloudWatchDestination
- An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics.- Returns:
this
-
enabled
@Stability(Stable) public CfnConfigurationSetEventDestination.EventDestinationProperty.Builder enabled(Boolean enabled) - Parameters:
enabled
- Iftrue
, the event destination is enabled. When the event destination is enabled, the specified event types are sent to the destinations in thisEventDestinationDefinition
.If
false
, the event destination is disabled. When the event destination is disabled, events aren't sent to the specified destinations.- Returns:
this
-
enabled
@Stability(Stable) public CfnConfigurationSetEventDestination.EventDestinationProperty.Builder enabled(IResolvable enabled) - Parameters:
enabled
- Iftrue
, the event destination is enabled. When the event destination is enabled, the specified event types are sent to the destinations in thisEventDestinationDefinition
.If
false
, the event destination is disabled. When the event destination is disabled, events aren't sent to the specified destinations.- Returns:
this
-
kinesisFirehoseDestination
@Stability(Stable) public CfnConfigurationSetEventDestination.EventDestinationProperty.Builder kinesisFirehoseDestination(IResolvable kinesisFirehoseDestination) Sets the value ofCfnConfigurationSetEventDestination.EventDestinationProperty.getKinesisFirehoseDestination()
- Parameters:
kinesisFirehoseDestination
- An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift.- Returns:
this
-
kinesisFirehoseDestination
@Stability(Stable) public CfnConfigurationSetEventDestination.EventDestinationProperty.Builder kinesisFirehoseDestination(CfnConfigurationSetEventDestination.KinesisFirehoseDestinationProperty kinesisFirehoseDestination) Sets the value ofCfnConfigurationSetEventDestination.EventDestinationProperty.getKinesisFirehoseDestination()
- Parameters:
kinesisFirehoseDestination
- An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift.- Returns:
this
-
pinpointDestination
@Stability(Stable) public CfnConfigurationSetEventDestination.EventDestinationProperty.Builder pinpointDestination(IResolvable pinpointDestination) Sets the value ofCfnConfigurationSetEventDestination.EventDestinationProperty.getPinpointDestination()
- Parameters:
pinpointDestination
- An object that defines a Amazon Pinpoint destination for email events. You can use Amazon Pinpoint events to create attributes in Amazon Pinpoint projects. You can use these attributes to create segments for your campaigns.- Returns:
this
-
pinpointDestination
@Stability(Stable) public CfnConfigurationSetEventDestination.EventDestinationProperty.Builder pinpointDestination(CfnConfigurationSetEventDestination.PinpointDestinationProperty pinpointDestination) Sets the value ofCfnConfigurationSetEventDestination.EventDestinationProperty.getPinpointDestination()
- Parameters:
pinpointDestination
- An object that defines a Amazon Pinpoint destination for email events. You can use Amazon Pinpoint events to create attributes in Amazon Pinpoint projects. You can use these attributes to create segments for your campaigns.- Returns:
this
-
snsDestination
@Stability(Stable) public CfnConfigurationSetEventDestination.EventDestinationProperty.Builder snsDestination(IResolvable snsDestination) - Parameters:
snsDestination
- An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send notification when certain email events occur.- Returns:
this
-
snsDestination
@Stability(Stable) public CfnConfigurationSetEventDestination.EventDestinationProperty.Builder snsDestination(CfnConfigurationSetEventDestination.SnsDestinationProperty snsDestination) - Parameters:
snsDestination
- An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send notification when certain email events occur.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConfigurationSetEventDestination.EventDestinationProperty>
- Returns:
- a new instance of
CfnConfigurationSetEventDestination.EventDestinationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-