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