Class CfnCampaign.EventDimensionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnCampaign.EventDimensionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaign.EventDimensionsProperty>
- Enclosing interface:
CfnCampaign.EventDimensionsProperty
@Stability(Stable)
public static final class CfnCampaign.EventDimensionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaign.EventDimensionsProperty>
A builder for
CfnCampaign.EventDimensionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributes
(Object attributes) Sets the value ofCfnCampaign.EventDimensionsProperty.getAttributes()
build()
Builds the configured instance.eventType
(IResolvable eventType) Sets the value ofCfnCampaign.EventDimensionsProperty.getEventType()
eventType
(CfnCampaign.SetDimensionProperty eventType) Sets the value ofCfnCampaign.EventDimensionsProperty.getEventType()
Sets the value ofCfnCampaign.EventDimensionsProperty.getMetrics()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributes
Sets the value ofCfnCampaign.EventDimensionsProperty.getAttributes()
- Parameters:
attributes
- One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.- Returns:
this
-
eventType
@Stability(Stable) public CfnCampaign.EventDimensionsProperty.Builder eventType(IResolvable eventType) Sets the value ofCfnCampaign.EventDimensionsProperty.getEventType()
- Parameters:
eventType
- The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard event that Amazon Pinpoint generates, such as_email.delivered
or_custom.delivered
. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .- Returns:
this
-
eventType
@Stability(Stable) public CfnCampaign.EventDimensionsProperty.Builder eventType(CfnCampaign.SetDimensionProperty eventType) Sets the value ofCfnCampaign.EventDimensionsProperty.getEventType()
- Parameters:
eventType
- The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard event that Amazon Pinpoint generates, such as_email.delivered
or_custom.delivered
. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .- Returns:
this
-
metrics
Sets the value ofCfnCampaign.EventDimensionsProperty.getMetrics()
- Parameters:
metrics
- One or more custom metrics that your application reports to Amazon Pinpoint . You can use these metrics as selection criteria when you create an event filter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCampaign.EventDimensionsProperty>
- Returns:
- a new instance of
CfnCampaign.EventDimensionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-