public static final class CfnRecordSetGroup.GeoLocationProperty.Builder
extends java.lang.Object
CfnRecordSetGroup.GeoLocationProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnRecordSetGroup.GeoLocationProperty |
build()
Builds the configured instance.
|
CfnRecordSetGroup.GeoLocationProperty.Builder |
continentCode(java.lang.String continentCode)
Sets the value of
CfnRecordSetGroup.GeoLocationProperty.getContinentCode() |
CfnRecordSetGroup.GeoLocationProperty.Builder |
countryCode(java.lang.String countryCode)
Sets the value of
CfnRecordSetGroup.GeoLocationProperty.getCountryCode() |
CfnRecordSetGroup.GeoLocationProperty.Builder |
subdivisionCode(java.lang.String subdivisionCode)
Sets the value of
CfnRecordSetGroup.GeoLocationProperty.getSubdivisionCode() |
public CfnRecordSetGroup.GeoLocationProperty.Builder continentCode(java.lang.String continentCode)
CfnRecordSetGroup.GeoLocationProperty.getContinentCode()
continentCode
- For geolocation resource record sets, a two-letter abbreviation that identifies a continent. Route 53 supports the following continent codes:.
Constraint: Specifying ContinentCode
with either CountryCode
or SubdivisionCode
returns an InvalidInput
error.
this
public CfnRecordSetGroup.GeoLocationProperty.Builder countryCode(java.lang.String countryCode)
CfnRecordSetGroup.GeoLocationProperty.getCountryCode()
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 .this
public CfnRecordSetGroup.GeoLocationProperty.Builder subdivisionCode(java.lang.String subdivisionCode)
CfnRecordSetGroup.GeoLocationProperty.getSubdivisionCode()
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 for SubdivisionCode
. 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 specify US
for CountryCode
.
this
public CfnRecordSetGroup.GeoLocationProperty build()
CfnRecordSetGroup.GeoLocationProperty
java.lang.NullPointerException
- if any required attribute was not provided