Class CfnSegmentPropsMixin.LocationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pinpoint.CfnSegmentPropsMixin.LocationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSegmentPropsMixin.LocationProperty>
- Enclosing interface:
CfnSegmentPropsMixin.LocationProperty
@Stability(Stable)
public static final class CfnSegmentPropsMixin.LocationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSegmentPropsMixin.LocationProperty>
A builder for
CfnSegmentPropsMixin.LocationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSegmentPropsMixin.LocationProperty.getCountry()country(IResolvable country) Sets the value ofCfnSegmentPropsMixin.LocationProperty.getCountry()Sets the value ofCfnSegmentPropsMixin.LocationProperty.getGpsPoint()gpsPoint(IResolvable gpsPoint) Sets the value ofCfnSegmentPropsMixin.LocationProperty.getGpsPoint()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
country
@Stability(Stable) public CfnSegmentPropsMixin.LocationProperty.Builder country(IResolvable country) Sets the value ofCfnSegmentPropsMixin.LocationProperty.getCountry()- Parameters:
country- The country or region code, in ISO 3166-1 alpha-2 format, for the segment.- Returns:
this
-
country
@Stability(Stable) public CfnSegmentPropsMixin.LocationProperty.Builder country(CfnSegmentPropsMixin.SetDimensionProperty country) Sets the value ofCfnSegmentPropsMixin.LocationProperty.getCountry()- Parameters:
country- The country or region code, in ISO 3166-1 alpha-2 format, for the segment.- Returns:
this
-
gpsPoint
@Stability(Stable) public CfnSegmentPropsMixin.LocationProperty.Builder gpsPoint(IResolvable gpsPoint) Sets the value ofCfnSegmentPropsMixin.LocationProperty.getGpsPoint()- Parameters:
gpsPoint- The GPS point dimension for the segment.- Returns:
this
-
gpsPoint
@Stability(Stable) public CfnSegmentPropsMixin.LocationProperty.Builder gpsPoint(CfnSegmentPropsMixin.GPSPointProperty gpsPoint) Sets the value ofCfnSegmentPropsMixin.LocationProperty.getGpsPoint()- Parameters:
gpsPoint- The GPS point dimension for the segment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSegmentPropsMixin.LocationProperty>- Returns:
- a new instance of
CfnSegmentPropsMixin.LocationProperty - Throws:
NullPointerException- if any required attribute was not provided
-