Class CfnSegment.DemographicProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnSegment.DemographicProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSegment.DemographicProperty>
- Enclosing interface:
CfnSegment.DemographicProperty
@Stability(Stable)
public static final class CfnSegment.DemographicProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSegment.DemographicProperty>
A builder for
CfnSegment.DemographicProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionappVersion
(IResolvable appVersion) Sets the value ofCfnSegment.DemographicProperty.getAppVersion()
appVersion
(CfnSegment.SetDimensionProperty appVersion) Sets the value ofCfnSegment.DemographicProperty.getAppVersion()
build()
Builds the configured instance.channel
(IResolvable channel) Sets the value ofCfnSegment.DemographicProperty.getChannel()
channel
(CfnSegment.SetDimensionProperty channel) Sets the value ofCfnSegment.DemographicProperty.getChannel()
deviceType
(IResolvable deviceType) Sets the value ofCfnSegment.DemographicProperty.getDeviceType()
deviceType
(CfnSegment.SetDimensionProperty deviceType) Sets the value ofCfnSegment.DemographicProperty.getDeviceType()
make
(IResolvable make) Sets the value ofCfnSegment.DemographicProperty.getMake()
Sets the value ofCfnSegment.DemographicProperty.getMake()
model
(IResolvable model) Sets the value ofCfnSegment.DemographicProperty.getModel()
Sets the value ofCfnSegment.DemographicProperty.getModel()
platform
(IResolvable platform) Sets the value ofCfnSegment.DemographicProperty.getPlatform()
platform
(CfnSegment.SetDimensionProperty platform) Sets the value ofCfnSegment.DemographicProperty.getPlatform()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appVersion
Sets the value ofCfnSegment.DemographicProperty.getAppVersion()
- Parameters:
appVersion
- The app version criteria for the segment.- Returns:
this
-
appVersion
@Stability(Stable) public CfnSegment.DemographicProperty.Builder appVersion(CfnSegment.SetDimensionProperty appVersion) Sets the value ofCfnSegment.DemographicProperty.getAppVersion()
- Parameters:
appVersion
- The app version criteria for the segment.- Returns:
this
-
channel
Sets the value ofCfnSegment.DemographicProperty.getChannel()
- Parameters:
channel
- The channel criteria for the segment.- Returns:
this
-
channel
@Stability(Stable) public CfnSegment.DemographicProperty.Builder channel(CfnSegment.SetDimensionProperty channel) Sets the value ofCfnSegment.DemographicProperty.getChannel()
- Parameters:
channel
- The channel criteria for the segment.- Returns:
this
-
deviceType
Sets the value ofCfnSegment.DemographicProperty.getDeviceType()
- Parameters:
deviceType
- The device type criteria for the segment.- Returns:
this
-
deviceType
@Stability(Stable) public CfnSegment.DemographicProperty.Builder deviceType(CfnSegment.SetDimensionProperty deviceType) Sets the value ofCfnSegment.DemographicProperty.getDeviceType()
- Parameters:
deviceType
- The device type criteria for the segment.- Returns:
this
-
make
Sets the value ofCfnSegment.DemographicProperty.getMake()
- Parameters:
make
- The device make criteria for the segment.- Returns:
this
-
make
@Stability(Stable) public CfnSegment.DemographicProperty.Builder make(CfnSegment.SetDimensionProperty make) Sets the value ofCfnSegment.DemographicProperty.getMake()
- Parameters:
make
- The device make criteria for the segment.- Returns:
this
-
model
Sets the value ofCfnSegment.DemographicProperty.getModel()
- Parameters:
model
- The device model criteria for the segment.- Returns:
this
-
model
@Stability(Stable) public CfnSegment.DemographicProperty.Builder model(CfnSegment.SetDimensionProperty model) Sets the value ofCfnSegment.DemographicProperty.getModel()
- Parameters:
model
- The device model criteria for the segment.- Returns:
this
-
platform
Sets the value ofCfnSegment.DemographicProperty.getPlatform()
- Parameters:
platform
- The device platform criteria for the segment.- Returns:
this
-
platform
@Stability(Stable) public CfnSegment.DemographicProperty.Builder platform(CfnSegment.SetDimensionProperty platform) Sets the value ofCfnSegment.DemographicProperty.getPlatform()
- Parameters:
platform
- The device platform criteria for the segment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSegment.DemographicProperty>
- Returns:
- a new instance of
CfnSegment.DemographicProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-