Class CfnSegment.GroupsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnSegment.GroupsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSegment.GroupsProperty>
- Enclosing interface:
CfnSegment.GroupsProperty
@Stability(Stable)
public static final class CfnSegment.GroupsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSegment.GroupsProperty>
A builder for
CfnSegment.GroupsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.dimensions
(List<? extends Object> dimensions) Sets the value ofCfnSegment.GroupsProperty.getDimensions()
dimensions
(IResolvable dimensions) Sets the value ofCfnSegment.GroupsProperty.getDimensions()
sourceSegments
(List<? extends Object> sourceSegments) Sets the value ofCfnSegment.GroupsProperty.getSourceSegments()
sourceSegments
(IResolvable sourceSegments) Sets the value ofCfnSegment.GroupsProperty.getSourceSegments()
sourceType
(String sourceType) Sets the value ofCfnSegment.GroupsProperty.getSourceType()
Sets the value ofCfnSegment.GroupsProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dimensions
Sets the value ofCfnSegment.GroupsProperty.getDimensions()
- Parameters:
dimensions
- An array that defines the dimensions to include or exclude from the segment.- Returns:
this
-
dimensions
@Stability(Stable) public CfnSegment.GroupsProperty.Builder dimensions(List<? extends Object> dimensions) Sets the value ofCfnSegment.GroupsProperty.getDimensions()
- Parameters:
dimensions
- An array that defines the dimensions to include or exclude from the segment.- Returns:
this
-
sourceSegments
@Stability(Stable) public CfnSegment.GroupsProperty.Builder sourceSegments(IResolvable sourceSegments) Sets the value ofCfnSegment.GroupsProperty.getSourceSegments()
- Parameters:
sourceSegments
- The base segment to build the segment on. A base segment, also called a source segment , defines the initial population of endpoints for a segment. When you add dimensions to the segment, Amazon Pinpoint filters the base segment by using the dimensions that you specify.You can specify more than one dimensional segment or only one imported segment. If you specify an imported segment, the segment size estimate that displays on the Amazon Pinpoint console indicates the size of the imported segment without any filters applied to it.
- Returns:
this
-
sourceSegments
@Stability(Stable) public CfnSegment.GroupsProperty.Builder sourceSegments(List<? extends Object> sourceSegments) Sets the value ofCfnSegment.GroupsProperty.getSourceSegments()
- Parameters:
sourceSegments
- The base segment to build the segment on. A base segment, also called a source segment , defines the initial population of endpoints for a segment. When you add dimensions to the segment, Amazon Pinpoint filters the base segment by using the dimensions that you specify.You can specify more than one dimensional segment or only one imported segment. If you specify an imported segment, the segment size estimate that displays on the Amazon Pinpoint console indicates the size of the imported segment without any filters applied to it.
- Returns:
this
-
sourceType
Sets the value ofCfnSegment.GroupsProperty.getSourceType()
- Parameters:
sourceType
- Specifies how to handle multiple base segments for the segment. For example, if you specify three base segments for the segment, whether the resulting segment is based on all, any, or none of the base segments.- Returns:
this
-
type
Sets the value ofCfnSegment.GroupsProperty.getType()
- Parameters:
type
- Specifies how to handle multiple dimensions for the segment. For example, if you specify three dimensions for the segment, whether the resulting segment includes endpoints that match all, any, or none of the dimensions.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSegment.GroupsProperty>
- Returns:
- a new instance of
CfnSegment.GroupsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-