Class CfnSegmentMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pinpoint.CfnSegmentMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSegmentMixinProps>
- Enclosing interface:
CfnSegmentMixinProps
@Stability(Stable)
public static final class CfnSegmentMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSegmentMixinProps>
A builder for
CfnSegmentMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationId(String applicationId) Sets the value ofCfnSegmentMixinProps.getApplicationId()build()Builds the configured instance.Sets the value ofCfnSegmentMixinProps.getDimensions()dimensions(IResolvable dimensions) Sets the value ofCfnSegmentMixinProps.getDimensions()Sets the value ofCfnSegmentMixinProps.getName()segmentGroups(CfnSegmentPropsMixin.SegmentGroupsProperty segmentGroups) Sets the value ofCfnSegmentMixinProps.getSegmentGroups()segmentGroups(IResolvable segmentGroups) Sets the value ofCfnSegmentMixinProps.getSegmentGroups()Sets the value ofCfnSegmentMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationId
Sets the value ofCfnSegmentMixinProps.getApplicationId()- Parameters:
applicationId- The unique identifier for the Amazon Pinpoint application that the segment is associated with.- Returns:
this
-
dimensions
Sets the value ofCfnSegmentMixinProps.getDimensions()- Parameters:
dimensions- An array that defines the dimensions for the segment.- Returns:
this
-
dimensions
@Stability(Stable) public CfnSegmentMixinProps.Builder dimensions(CfnSegmentPropsMixin.SegmentDimensionsProperty dimensions) Sets the value ofCfnSegmentMixinProps.getDimensions()- Parameters:
dimensions- An array that defines the dimensions for the segment.- Returns:
this
-
name
Sets the value ofCfnSegmentMixinProps.getName()- Parameters:
name- The name of the segment.A segment must have a name otherwise it will not appear in the Amazon Pinpoint console.
- Returns:
this
-
segmentGroups
Sets the value ofCfnSegmentMixinProps.getSegmentGroups()- Parameters:
segmentGroups- The segment group to use and the dimensions to apply to the group's base segments in order to build the segment. A segment group can consist of zero or more base segments. Your request can include only one segment group.- Returns:
this
-
segmentGroups
@Stability(Stable) public CfnSegmentMixinProps.Builder segmentGroups(CfnSegmentPropsMixin.SegmentGroupsProperty segmentGroups) Sets the value ofCfnSegmentMixinProps.getSegmentGroups()- Parameters:
segmentGroups- The segment group to use and the dimensions to apply to the group's base segments in order to build the segment. A segment group can consist of zero or more base segments. Your request can include only one segment group.- Returns:
this
-
tags
Sets the value ofCfnSegmentMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSegmentMixinProps>- Returns:
- a new instance of
CfnSegmentMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-