Class CfnRecordSetGroup.GeoProximityLocationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.route53.CfnRecordSetGroup.GeoProximityLocationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRecordSetGroup.GeoProximityLocationProperty>
- Enclosing interface:
CfnRecordSetGroup.GeoProximityLocationProperty
@Stability(Stable)
public static final class CfnRecordSetGroup.GeoProximityLocationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRecordSetGroup.GeoProximityLocationProperty>
A builder for
CfnRecordSetGroup.GeoProximityLocationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnRecordSetGroup.GeoProximityLocationProperty.getAwsRegion()
Sets the value ofCfnRecordSetGroup.GeoProximityLocationProperty.getBias()
build()
Builds the configured instance.coordinates
(IResolvable coordinates) Sets the value ofCfnRecordSetGroup.GeoProximityLocationProperty.getCoordinates()
coordinates
(CfnRecordSetGroup.CoordinatesProperty coordinates) Sets the value ofCfnRecordSetGroup.GeoProximityLocationProperty.getCoordinates()
localZoneGroup
(String localZoneGroup) Sets the value ofCfnRecordSetGroup.GeoProximityLocationProperty.getLocalZoneGroup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
awsRegion
@Stability(Stable) public CfnRecordSetGroup.GeoProximityLocationProperty.Builder awsRegion(String awsRegion) Sets the value ofCfnRecordSetGroup.GeoProximityLocationProperty.getAwsRegion()
- Parameters:
awsRegion
- The AWS Region the resource you are directing DNS traffic to, is in.- Returns:
this
-
bias
Sets the value ofCfnRecordSetGroup.GeoProximityLocationProperty.getBias()
- Parameters:
bias
- The bias increases or decreases the size of the geographic region from which Route 53 routes traffic to a resource. To useBias
to change the size of the geographic region, specify the applicable value for the bias:- To expand the size of the geographic region from which Route 53 routes traffic to a resource, specify a positive integer from 1 to 99 for the bias. Route 53 shrinks the size of adjacent regions.
- To shrink the size of the geographic region from which Route 53 routes traffic to a resource, specify a negative bias of -1 to -99. Route 53 expands the size of adjacent regions.
- Returns:
this
-
coordinates
@Stability(Stable) public CfnRecordSetGroup.GeoProximityLocationProperty.Builder coordinates(IResolvable coordinates) Sets the value ofCfnRecordSetGroup.GeoProximityLocationProperty.getCoordinates()
- Parameters:
coordinates
- Contains the longitude and latitude for a geographic region.- Returns:
this
-
coordinates
@Stability(Stable) public CfnRecordSetGroup.GeoProximityLocationProperty.Builder coordinates(CfnRecordSetGroup.CoordinatesProperty coordinates) Sets the value ofCfnRecordSetGroup.GeoProximityLocationProperty.getCoordinates()
- Parameters:
coordinates
- Contains the longitude and latitude for a geographic region.- Returns:
this
-
localZoneGroup
@Stability(Stable) public CfnRecordSetGroup.GeoProximityLocationProperty.Builder localZoneGroup(String localZoneGroup) Sets the value ofCfnRecordSetGroup.GeoProximityLocationProperty.getLocalZoneGroup()
- Parameters:
localZoneGroup
- Specifies an AWS Local Zone Group. A local Zone Group is usually the Local Zone code without the ending character. For example, if the Local Zone isus-east-1-bue-1a
the Local Zone Group isus-east-1-bue-1
.You can identify the Local Zones Group for a specific Local Zone by using the describe-availability-zones CLI command:
This command returns:
"GroupName": "us-west-2-den-1"
, specifying that the Local Zoneus-west-2-den-1a
belongs to the Local Zone Groupus-west-2-den-1
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRecordSetGroup.GeoProximityLocationProperty>
- Returns:
- a new instance of
CfnRecordSetGroup.GeoProximityLocationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-