Class CfnSegment.SegmentDimensionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnSegment.SegmentDimensionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSegment.SegmentDimensionsProperty>
- Enclosing interface:
CfnSegment.SegmentDimensionsProperty
@Stability(Stable)
public static final class CfnSegment.SegmentDimensionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSegment.SegmentDimensionsProperty>
A builder for
CfnSegment.SegmentDimensionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributes
(Object attributes) Sets the value ofCfnSegment.SegmentDimensionsProperty.getAttributes()
behavior
(IResolvable behavior) Sets the value ofCfnSegment.SegmentDimensionsProperty.getBehavior()
behavior
(CfnSegment.BehaviorProperty behavior) Sets the value ofCfnSegment.SegmentDimensionsProperty.getBehavior()
build()
Builds the configured instance.demographic
(IResolvable demographic) Sets the value ofCfnSegment.SegmentDimensionsProperty.getDemographic()
demographic
(CfnSegment.DemographicProperty demographic) Sets the value ofCfnSegment.SegmentDimensionsProperty.getDemographic()
location
(IResolvable location) Sets the value ofCfnSegment.SegmentDimensionsProperty.getLocation()
location
(CfnSegment.LocationProperty location) Sets the value ofCfnSegment.SegmentDimensionsProperty.getLocation()
Sets the value ofCfnSegment.SegmentDimensionsProperty.getMetrics()
userAttributes
(Object userAttributes) Sets the value ofCfnSegment.SegmentDimensionsProperty.getUserAttributes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributes
@Stability(Stable) public CfnSegment.SegmentDimensionsProperty.Builder attributes(Object attributes) Sets the value ofCfnSegment.SegmentDimensionsProperty.getAttributes()
- Parameters:
attributes
- One or more custom attributes to use as criteria for the segment.- Returns:
this
-
behavior
@Stability(Stable) public CfnSegment.SegmentDimensionsProperty.Builder behavior(IResolvable behavior) Sets the value ofCfnSegment.SegmentDimensionsProperty.getBehavior()
- Parameters:
behavior
- The behavior-based criteria, such as how recently users have used your app, for the segment.- Returns:
this
-
behavior
@Stability(Stable) public CfnSegment.SegmentDimensionsProperty.Builder behavior(CfnSegment.BehaviorProperty behavior) Sets the value ofCfnSegment.SegmentDimensionsProperty.getBehavior()
- Parameters:
behavior
- The behavior-based criteria, such as how recently users have used your app, for the segment.- Returns:
this
-
demographic
@Stability(Stable) public CfnSegment.SegmentDimensionsProperty.Builder demographic(IResolvable demographic) Sets the value ofCfnSegment.SegmentDimensionsProperty.getDemographic()
- Parameters:
demographic
- The demographic-based criteria, such as device platform, for the segment.- Returns:
this
-
demographic
@Stability(Stable) public CfnSegment.SegmentDimensionsProperty.Builder demographic(CfnSegment.DemographicProperty demographic) Sets the value ofCfnSegment.SegmentDimensionsProperty.getDemographic()
- Parameters:
demographic
- The demographic-based criteria, such as device platform, for the segment.- Returns:
this
-
location
@Stability(Stable) public CfnSegment.SegmentDimensionsProperty.Builder location(IResolvable location) Sets the value ofCfnSegment.SegmentDimensionsProperty.getLocation()
- Parameters:
location
- The location-based criteria, such as region or GPS coordinates, for the segment.- Returns:
this
-
location
@Stability(Stable) public CfnSegment.SegmentDimensionsProperty.Builder location(CfnSegment.LocationProperty location) Sets the value ofCfnSegment.SegmentDimensionsProperty.getLocation()
- Parameters:
location
- The location-based criteria, such as region or GPS coordinates, for the segment.- Returns:
this
-
metrics
Sets the value ofCfnSegment.SegmentDimensionsProperty.getMetrics()
- Parameters:
metrics
- One or more custom metrics to use as criteria for the segment.- Returns:
this
-
userAttributes
@Stability(Stable) public CfnSegment.SegmentDimensionsProperty.Builder userAttributes(Object userAttributes) Sets the value ofCfnSegment.SegmentDimensionsProperty.getUserAttributes()
- Parameters:
userAttributes
- One or more custom user attributes to use as criteria for the segment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSegment.SegmentDimensionsProperty>
- Returns:
- a new instance of
CfnSegment.SegmentDimensionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-