Class CfnRecordSet.GeoProximityLocationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.route53.CfnRecordSet.GeoProximityLocationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRecordSet.GeoProximityLocationProperty>
- Enclosing interface:
CfnRecordSet.GeoProximityLocationProperty
@Stability(Stable)
public static final class CfnRecordSet.GeoProximityLocationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRecordSet.GeoProximityLocationProperty>
A builder for
CfnRecordSet.GeoProximityLocationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnRecordSet.GeoProximityLocationProperty.getAwsRegion()Sets the value ofCfnRecordSet.GeoProximityLocationProperty.getBias()build()Builds the configured instance.coordinates(IResolvable coordinates) Sets the value ofCfnRecordSet.GeoProximityLocationProperty.getCoordinates()coordinates(CfnRecordSet.CoordinatesProperty coordinates) Sets the value ofCfnRecordSet.GeoProximityLocationProperty.getCoordinates()localZoneGroup(String localZoneGroup) Sets the value ofCfnRecordSet.GeoProximityLocationProperty.getLocalZoneGroup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
awsRegion
@Stability(Stable) public CfnRecordSet.GeoProximityLocationProperty.Builder awsRegion(String awsRegion) Sets the value ofCfnRecordSet.GeoProximityLocationProperty.getAwsRegion()- Parameters:
awsRegion- The AWS Region the resource you are directing DNS traffic to, is in.- Returns:
this
-
bias
Sets the value ofCfnRecordSet.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 useBiasto 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 CfnRecordSet.GeoProximityLocationProperty.Builder coordinates(IResolvable coordinates) Sets the value ofCfnRecordSet.GeoProximityLocationProperty.getCoordinates()- Parameters:
coordinates- Contains the longitude and latitude for a geographic region.- Returns:
this
-
coordinates
@Stability(Stable) public CfnRecordSet.GeoProximityLocationProperty.Builder coordinates(CfnRecordSet.CoordinatesProperty coordinates) Sets the value ofCfnRecordSet.GeoProximityLocationProperty.getCoordinates()- Parameters:
coordinates- Contains the longitude and latitude for a geographic region.- Returns:
this
-
localZoneGroup
@Stability(Stable) public CfnRecordSet.GeoProximityLocationProperty.Builder localZoneGroup(String localZoneGroup) Sets the value ofCfnRecordSet.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-1athe 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-1abelongs to the Local Zone Groupus-west-2-den-1.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRecordSet.GeoProximityLocationProperty>- Returns:
- a new instance of
CfnRecordSet.GeoProximityLocationProperty - Throws:
NullPointerException- if any required attribute was not provided
-