Interface SegmentDimensions.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SegmentDimensions.Builder,,SegmentDimensions> SdkBuilder<SegmentDimensions.Builder,,SegmentDimensions> SdkPojo
- Enclosing class:
SegmentDimensions
-
Method Summary
Modifier and TypeMethodDescriptionattributes(Map<String, AttributeDimension> attributes) One or more custom attributes to use as criteria for the segment.default SegmentDimensions.Builderbehavior(Consumer<SegmentBehaviors.Builder> behavior) The behavior-based criteria, such as how recently users have used your app, for the segment.behavior(SegmentBehaviors behavior) The behavior-based criteria, such as how recently users have used your app, for the segment.default SegmentDimensions.Builderdemographic(Consumer<SegmentDemographics.Builder> demographic) The demographic-based criteria, such as device platform, for the segment.demographic(SegmentDemographics demographic) The demographic-based criteria, such as device platform, for the segment.default SegmentDimensions.Builderlocation(Consumer<SegmentLocation.Builder> location) The location-based criteria, such as region or GPS coordinates, for the segment.location(SegmentLocation location) The location-based criteria, such as region or GPS coordinates, for the segment.metrics(Map<String, MetricDimension> metrics) One or more custom metrics to use as criteria for the segment.userAttributes(Map<String, AttributeDimension> userAttributes) One or more custom user attributes to use as criteria for the segment.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
attributes
One or more custom attributes to use as criteria for the segment.
- Parameters:
attributes- One or more custom attributes to use as criteria for the segment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
behavior
The behavior-based criteria, such as how recently users have used your app, for the segment.
- Parameters:
behavior- The behavior-based criteria, such as how recently users have used your app, for the segment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
behavior
The behavior-based criteria, such as how recently users have used your app, for the segment.
This is a convenience method that creates an instance of theSegmentBehaviors.Builderavoiding the need to create one manually viaSegmentBehaviors.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobehavior(SegmentBehaviors).- Parameters:
behavior- a consumer that will call methods onSegmentBehaviors.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
demographic
The demographic-based criteria, such as device platform, for the segment.
- Parameters:
demographic- The demographic-based criteria, such as device platform, for the segment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
demographic
The demographic-based criteria, such as device platform, for the segment.
This is a convenience method that creates an instance of theSegmentDemographics.Builderavoiding the need to create one manually viaSegmentDemographics.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todemographic(SegmentDemographics).- Parameters:
demographic- a consumer that will call methods onSegmentDemographics.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
location
The location-based criteria, such as region or GPS coordinates, for the segment.
- Parameters:
location- The location-based criteria, such as region or GPS coordinates, for the segment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
The location-based criteria, such as region or GPS coordinates, for the segment.
This is a convenience method that creates an instance of theSegmentLocation.Builderavoiding the need to create one manually viaSegmentLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolocation(SegmentLocation).- Parameters:
location- a consumer that will call methods onSegmentLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metrics
One or more custom metrics to use as criteria for the segment.
- Parameters:
metrics- One or more custom metrics to use as criteria for the segment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userAttributes
One or more custom user attributes to use as criteria for the segment.
- Parameters:
userAttributes- One or more custom user attributes to use as criteria for the segment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-