Class CfnSegmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnSegmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSegmentProps>
- Enclosing interface:
- CfnSegmentProps
@Stability(Stable)
public static final class CfnSegmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSegmentProps>
A builder for
CfnSegmentProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationId(String applicationId) Sets the value ofCfnSegmentProps.getApplicationId()build()Builds the configured instance.dimensions(IResolvable dimensions) Sets the value ofCfnSegmentProps.getDimensions()dimensions(CfnSegment.SegmentDimensionsProperty dimensions) Sets the value ofCfnSegmentProps.getDimensions()Sets the value ofCfnSegmentProps.getName()segmentGroups(IResolvable segmentGroups) Sets the value ofCfnSegmentProps.getSegmentGroups()segmentGroups(CfnSegment.SegmentGroupsProperty segmentGroups) Sets the value ofCfnSegmentProps.getSegmentGroups()Sets the value ofCfnSegmentProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationId
Sets the value ofCfnSegmentProps.getApplicationId()- Parameters:
applicationId- The unique identifier for the Amazon Pinpoint application that the segment is associated with. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnSegmentProps.getName()- Parameters:
name- The name of the segment. This parameter is required.A segment must have a name otherwise it will not appear in the Amazon Pinpoint console.
- Returns:
this
-
dimensions
Sets the value ofCfnSegmentProps.getDimensions()- Parameters:
dimensions- The criteria that define the dimensions for the segment.- Returns:
this
-
dimensions
@Stability(Stable) public CfnSegmentProps.Builder dimensions(CfnSegment.SegmentDimensionsProperty dimensions) Sets the value ofCfnSegmentProps.getDimensions()- Parameters:
dimensions- The criteria that define the dimensions for the segment.- Returns:
this
-
segmentGroups
Sets the value ofCfnSegmentProps.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 CfnSegmentProps.Builder segmentGroups(CfnSegment.SegmentGroupsProperty segmentGroups) Sets the value ofCfnSegmentProps.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 ofCfnSegmentProps.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<CfnSegmentProps>- Returns:
- a new instance of
CfnSegmentProps - Throws:
NullPointerException- if any required attribute was not provided
-