@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:07.482Z") @Stability(value=Stable) public class CfnSegment extends CfnResource implements IInspectable
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;
CfnSegment cfnSegment = CfnSegment.Builder.create(this, "MyCfnSegment")
.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 | Class and Description |
|---|---|
static interface |
CfnSegment.AttributeDimensionProperty
Example:
|
static interface |
CfnSegment.BehaviorProperty
Example:
|
static class |
CfnSegment.Builder
A fluent builder for
CfnSegment. |
static interface |
CfnSegment.CoordinatesProperty
Example:
|
static interface |
CfnSegment.DemographicProperty
Example:
|
static interface |
CfnSegment.GPSPointProperty
Example:
|
static interface |
CfnSegment.GroupsProperty
Example:
|
static interface |
CfnSegment.LocationProperty
Example:
|
static interface |
CfnSegment.RecencyProperty
Example:
|
static interface |
CfnSegment.SegmentDimensionsProperty
Example:
|
static interface |
CfnSegment.SegmentGroupsProperty
Example:
|
static interface |
CfnSegment.SetDimensionProperty
Example:
|
static interface |
CfnSegment.SourceSegmentsProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnSegment(software.constructs.Construct scope,
String id,
CfnSegmentProps props)
Create a new `AWS::Pinpoint::Segment`.
|
protected |
CfnSegment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnSegment(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationId()
`AWS::Pinpoint::Segment.ApplicationId`.
|
String |
getAttrArn() |
String |
getAttrSegmentId() |
protected Map<String,Object> |
getCfnProperties() |
Object |
getDimensions()
`AWS::Pinpoint::Segment.Dimensions`.
|
String |
getName()
`AWS::Pinpoint::Segment.Name`.
|
Object |
getSegmentGroups()
`AWS::Pinpoint::Segment.SegmentGroups`.
|
TagManager |
getTags()
`AWS::Pinpoint::Segment.Tags`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setApplicationId(String value)
`AWS::Pinpoint::Segment.ApplicationId`.
|
void |
setDimensions(CfnSegment.SegmentDimensionsProperty value)
`AWS::Pinpoint::Segment.Dimensions`.
|
void |
setDimensions(IResolvable value)
`AWS::Pinpoint::Segment.Dimensions`.
|
void |
setName(String value)
`AWS::Pinpoint::Segment.Name`.
|
void |
setSegmentGroups(CfnSegment.SegmentGroupsProperty value)
`AWS::Pinpoint::Segment.SegmentGroups`.
|
void |
setSegmentGroups(IResolvable value)
`AWS::Pinpoint::Segment.SegmentGroups`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnSegment(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnSegment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnSegment(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnSegmentProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getApplicationId()
@Stability(value=Stable)
public void setApplicationId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrSegmentId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public Object getDimensions()
@Stability(value=Stable)
public void setDimensions(@Nullable
CfnSegment.SegmentDimensionsProperty value)
@Stability(value=Stable)
public void setDimensions(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getSegmentGroups()
@Stability(value=Stable)
public void setSegmentGroups(@Nullable
CfnSegment.SegmentGroupsProperty value)
@Stability(value=Stable)
public void setSegmentGroups(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull public TagManager getTags()
Copyright © 2021. All rights reserved.