Interface SegmentDimensions.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SegmentDimensions.Builder,SegmentDimensions>,SdkBuilder<SegmentDimensions.Builder,SegmentDimensions>,SdkPojo
- Enclosing class:
- SegmentDimensions
public static interface SegmentDimensions.Builder extends SdkPojo, CopyableBuilder<SegmentDimensions.Builder,SegmentDimensions>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SegmentDimensions.Builderattributes(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.SegmentDimensions.Builderbehavior(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.SegmentDimensions.Builderdemographic(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.SegmentDimensions.Builderlocation(SegmentLocation location)The location-based criteria, such as region or GPS coordinates, for the segment.SegmentDimensions.Buildermetrics(Map<String,MetricDimension> metrics)One or more custom metrics to use as criteria for the segment.SegmentDimensions.BuilderuserAttributes(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
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
attributes
SegmentDimensions.Builder attributes(Map<String,AttributeDimension> 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
SegmentDimensions.Builder behavior(SegmentBehaviors 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
default SegmentDimensions.Builder behavior(Consumer<SegmentBehaviors.Builder> 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:
behavior(SegmentBehaviors)
-
demographic
SegmentDimensions.Builder demographic(SegmentDemographics 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
default SegmentDimensions.Builder demographic(Consumer<SegmentDemographics.Builder> 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:
demographic(SegmentDemographics)
-
location
SegmentDimensions.Builder location(SegmentLocation 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
default SegmentDimensions.Builder location(Consumer<SegmentLocation.Builder> 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:
location(SegmentLocation)
-
metrics
SegmentDimensions.Builder metrics(Map<String,MetricDimension> 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
SegmentDimensions.Builder userAttributes(Map<String,AttributeDimension> 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.
-
-