Class CfnSegment.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnSegment.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSegment>
- Enclosing class:
CfnSegment
@Stability(Stable)
public static final class CfnSegment.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSegment>
A fluent builder for
CfnSegment
.-
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) The unique identifier for the Amazon Pinpoint application that the segment is associated with.build()
static CfnSegment.Builder
dimensions
(IResolvable dimensions) An array that defines the dimensions for the segment.dimensions
(CfnSegment.SegmentDimensionsProperty dimensions) An array that defines the dimensions for the segment.The name of the segment.segmentGroups
(IResolvable segmentGroups) The segment group to use and the dimensions to apply to the group's base segments in order to build the segment.segmentGroups
(CfnSegment.SegmentGroupsProperty segmentGroups) The segment group to use and the dimensions to apply to the group's base segments in order to build the segment.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnSegment.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnSegment.Builder
.
-
applicationId
The unique identifier for the Amazon Pinpoint application that the segment is associated with.- Parameters:
applicationId
- The unique identifier for the Amazon Pinpoint application that the segment is associated with. This parameter is required.- Returns:
this
- See Also:
-
name
The name of the segment.A segment must have a name otherwise it will not appear in the Amazon Pinpoint console.
- Parameters:
name
- The name of the segment. This parameter is required.- Returns:
this
- See Also:
-
dimensions
An array that defines the dimensions for the segment.- Parameters:
dimensions
- An array that defines the dimensions for the segment. This parameter is required.- Returns:
this
- See Also:
-
dimensions
@Stability(Stable) public CfnSegment.Builder dimensions(CfnSegment.SegmentDimensionsProperty dimensions) An array that defines the dimensions for the segment.- Parameters:
dimensions
- An array that defines the dimensions for the segment. This parameter is required.- Returns:
this
- See Also:
-
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.
- Parameters:
segmentGroups
- The segment group to use and the dimensions to apply to the group's base segments in order to build the segment. This parameter is required.- Returns:
this
- See Also:
-
segmentGroups
@Stability(Stable) public CfnSegment.Builder segmentGroups(CfnSegment.SegmentGroupsProperty 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.
- Parameters:
segmentGroups
- The segment group to use and the dimensions to apply to the group's base segments in order to build the segment. This parameter is required.- Returns:
this
- See Also:
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag .
- Parameters:
tags
- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSegment>
- Returns:
- a newly built instance of
CfnSegment
.
-