Class CfnRecordSetGroup.GeoLocationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.route53.CfnRecordSetGroup.GeoLocationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRecordSetGroup.GeoLocationProperty>
- Enclosing interface:
CfnRecordSetGroup.GeoLocationProperty
@Stability(Stable)
public static final class CfnRecordSetGroup.GeoLocationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRecordSetGroup.GeoLocationProperty>
A builder for
CfnRecordSetGroup.GeoLocationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.continentCode(String continentCode) Sets the value ofCfnRecordSetGroup.GeoLocationProperty.getContinentCode()countryCode(String countryCode) Sets the value ofCfnRecordSetGroup.GeoLocationProperty.getCountryCode()subdivisionCode(String subdivisionCode) Sets the value ofCfnRecordSetGroup.GeoLocationProperty.getSubdivisionCode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
continentCode
@Stability(Stable) public CfnRecordSetGroup.GeoLocationProperty.Builder continentCode(String continentCode) Sets the value ofCfnRecordSetGroup.GeoLocationProperty.getContinentCode()- Parameters:
continentCode- For geolocation resource record sets, a two-letter abbreviation that identifies a continent. Route 53 supports the following continent codes:.- AF : Africa
- AN : Antarctica
- AS : Asia
- EU : Europe
- OC : Oceania
- NA : North America
- SA : South America
Constraint: Specifying
ContinentCodewith eitherCountryCodeorSubdivisionCodereturns anInvalidInputerror.- Returns:
this
-
countryCode
@Stability(Stable) public CfnRecordSetGroup.GeoLocationProperty.Builder countryCode(String countryCode) Sets the value ofCfnRecordSetGroup.GeoLocationProperty.getCountryCode()- Parameters:
countryCode- For geolocation resource record sets, the two-letter code for a country. Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2 .- Returns:
this
-
subdivisionCode
@Stability(Stable) public CfnRecordSetGroup.GeoLocationProperty.Builder subdivisionCode(String subdivisionCode) Sets the value ofCfnRecordSetGroup.GeoLocationProperty.getSubdivisionCode()- Parameters:
subdivisionCode- For geolocation resource record sets, the two-letter code for a state of the United States. Route 53 doesn't support any other values forSubdivisionCode. For a list of state abbreviations, see Appendix B: Two–Letter State and Possession Abbreviations on the United States Postal Service website.If you specify
subdivisioncode, you must also specifyUSforCountryCode.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRecordSetGroup.GeoLocationProperty>- Returns:
- a new instance of
CfnRecordSetGroup.GeoLocationProperty - Throws:
NullPointerException- if any required attribute was not provided
-