@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.248Z") @Stability(value=Stable) public interface CfnSegmentProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pinpoint.*;
Object attributes;
Object metrics;
Object tags;
Object userAttributes;
CfnSegmentProps cfnSegmentProps = CfnSegmentProps.builder()
.applicationId("applicationId")
.name("name")
// the properties below are optional
.dimensions(SegmentDimensionsProperty.builder()
.attributes(attributes)
.behavior(BehaviorProperty.builder()
.recency(RecencyProperty.builder()
.duration("duration")
.recencyType("recencyType")
.build())
.build())
.demographic(DemographicProperty.builder()
.appVersion(SetDimensionProperty.builder()
.dimensionType("dimensionType")
.values(List.of("values"))
.build())
.channel(SetDimensionProperty.builder()
.dimensionType("dimensionType")
.values(List.of("values"))
.build())
.deviceType(SetDimensionProperty.builder()
.dimensionType("dimensionType")
.values(List.of("values"))
.build())
.make(SetDimensionProperty.builder()
.dimensionType("dimensionType")
.values(List.of("values"))
.build())
.model(SetDimensionProperty.builder()
.dimensionType("dimensionType")
.values(List.of("values"))
.build())
.platform(SetDimensionProperty.builder()
.dimensionType("dimensionType")
.values(List.of("values"))
.build())
.build())
.location(LocationProperty.builder()
.country(SetDimensionProperty.builder()
.dimensionType("dimensionType")
.values(List.of("values"))
.build())
.gpsPoint(GPSPointProperty.builder()
.coordinates(CoordinatesProperty.builder()
.latitude(123)
.longitude(123)
.build())
.rangeInKilometers(123)
.build())
.build())
.metrics(metrics)
.userAttributes(userAttributes)
.build())
.segmentGroups(SegmentGroupsProperty.builder()
.groups(List.of(GroupsProperty.builder()
.dimensions(List.of(SegmentDimensionsProperty.builder()
.attributes(attributes)
.behavior(BehaviorProperty.builder()
.recency(RecencyProperty.builder()
.duration("duration")
.recencyType("recencyType")
.build())
.build())
.demographic(DemographicProperty.builder()
.appVersion(SetDimensionProperty.builder()
.dimensionType("dimensionType")
.values(List.of("values"))
.build())
.channel(SetDimensionProperty.builder()
.dimensionType("dimensionType")
.values(List.of("values"))
.build())
.deviceType(SetDimensionProperty.builder()
.dimensionType("dimensionType")
.values(List.of("values"))
.build())
.make(SetDimensionProperty.builder()
.dimensionType("dimensionType")
.values(List.of("values"))
.build())
.model(SetDimensionProperty.builder()
.dimensionType("dimensionType")
.values(List.of("values"))
.build())
.platform(SetDimensionProperty.builder()
.dimensionType("dimensionType")
.values(List.of("values"))
.build())
.build())
.location(LocationProperty.builder()
.country(SetDimensionProperty.builder()
.dimensionType("dimensionType")
.values(List.of("values"))
.build())
.gpsPoint(GPSPointProperty.builder()
.coordinates(CoordinatesProperty.builder()
.latitude(123)
.longitude(123)
.build())
.rangeInKilometers(123)
.build())
.build())
.metrics(metrics)
.userAttributes(userAttributes)
.build()))
.sourceSegments(List.of(SourceSegmentsProperty.builder()
.id("id")
// the properties below are optional
.version(123)
.build()))
.sourceType("sourceType")
.type("type")
.build()))
.include("include")
.build())
.tags(tags)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnSegmentProps.Builder
A builder for
CfnSegmentProps |
static class |
CfnSegmentProps.Jsii$Proxy
An implementation for
CfnSegmentProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnSegmentProps.Builder |
builder() |
String |
getApplicationId()
The unique identifier for the Amazon Pinpoint application that the segment is associated with.
|
default Object |
getDimensions()
The criteria that define the dimensions for the segment.
|
String |
getName()
The name of the segment.
|
default Object |
getSegmentGroups()
The segment group to use and the dimensions to apply to the group's base segments in order to build the segment.
|
default Object |
getTags()
An array of key-value pairs to apply to this resource.
|
@Stability(value=Stable) @NotNull String getApplicationId()
@Stability(value=Stable) @NotNull String getName()
@Stability(value=Stable) @Nullable default Object getDimensions()
@Stability(value=Stable) @Nullable default Object getSegmentGroups()
A segment group can consist of zero or more base segments. Your request can include only one segment group.
@Stability(value=Stable) @Nullable default Object getTags()
For more information, see Tag .
@Stability(value=Stable) static CfnSegmentProps.Builder builder()
CfnSegmentProps.Builder of CfnSegmentPropsCopyright © 2022. All rights reserved.