
com.pulumi.azurenative.awsconnector.outputs.GeoLocationResponse Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.awsconnector.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GeoLocationResponse {
/**
* @return <p>The two-letter code for the continent.</p> <p>Amazon Route 53 supports the following continent codes:</p> <ul> <li> <p> <b>AF</b>: Africa</p> </li> <li> <p> <b>AN</b>: Antarctica</p> </li> <li> <p> <b>AS</b>: Asia</p> </li> <li> <p> <b>EU</b>: Europe</p> </li> <li> <p> <b>OC</b>: Oceania</p> </li> <li> <p> <b>NA</b>: North America</p> </li> <li> <p> <b>SA</b>: South America</p> </li> </ul> <p>Constraint: Specifying <code>ContinentCode</code> with either <code>CountryCode</code> or <code>SubdivisionCode</code> returns an <code>InvalidInput</code> error.</p>
*
*/
private @Nullable String continentCode;
/**
* @return <p>For geolocation resource record sets, the two-letter code for a country.</p> <p>Amazon Route 53 uses the two-letter country codes that are specified in <a href='https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2'>ISO standard 3166-1 alpha-2</a>.</p> <p>Route 53 also supports the country code <b>UA</b> for Ukraine.</p>
*
*/
private @Nullable String countryCode;
/**
* @return <p>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 <code>SubdivisionCode</code>. For a list of state abbreviations, see <a href='https://pe.usps.com/text/pub28/28apb.htm'>Appendix B: Two–Letter State and Possession Abbreviations</a> on the United States Postal Service website. </p> <p>If you specify <code>subdivisioncode</code>, you must also specify <code>US</code> for <code>CountryCode</code>. </p>
*
*/
private @Nullable String subdivisionCode;
private GeoLocationResponse() {}
/**
* @return <p>The two-letter code for the continent.</p> <p>Amazon Route 53 supports the following continent codes:</p> <ul> <li> <p> <b>AF</b>: Africa</p> </li> <li> <p> <b>AN</b>: Antarctica</p> </li> <li> <p> <b>AS</b>: Asia</p> </li> <li> <p> <b>EU</b>: Europe</p> </li> <li> <p> <b>OC</b>: Oceania</p> </li> <li> <p> <b>NA</b>: North America</p> </li> <li> <p> <b>SA</b>: South America</p> </li> </ul> <p>Constraint: Specifying <code>ContinentCode</code> with either <code>CountryCode</code> or <code>SubdivisionCode</code> returns an <code>InvalidInput</code> error.</p>
*
*/
public Optional continentCode() {
return Optional.ofNullable(this.continentCode);
}
/**
* @return <p>For geolocation resource record sets, the two-letter code for a country.</p> <p>Amazon Route 53 uses the two-letter country codes that are specified in <a href='https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2'>ISO standard 3166-1 alpha-2</a>.</p> <p>Route 53 also supports the country code <b>UA</b> for Ukraine.</p>
*
*/
public Optional countryCode() {
return Optional.ofNullable(this.countryCode);
}
/**
* @return <p>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 <code>SubdivisionCode</code>. For a list of state abbreviations, see <a href='https://pe.usps.com/text/pub28/28apb.htm'>Appendix B: Two–Letter State and Possession Abbreviations</a> on the United States Postal Service website. </p> <p>If you specify <code>subdivisioncode</code>, you must also specify <code>US</code> for <code>CountryCode</code>. </p>
*
*/
public Optional subdivisionCode() {
return Optional.ofNullable(this.subdivisionCode);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GeoLocationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String continentCode;
private @Nullable String countryCode;
private @Nullable String subdivisionCode;
public Builder() {}
public Builder(GeoLocationResponse defaults) {
Objects.requireNonNull(defaults);
this.continentCode = defaults.continentCode;
this.countryCode = defaults.countryCode;
this.subdivisionCode = defaults.subdivisionCode;
}
@CustomType.Setter
public Builder continentCode(@Nullable String continentCode) {
this.continentCode = continentCode;
return this;
}
@CustomType.Setter
public Builder countryCode(@Nullable String countryCode) {
this.countryCode = countryCode;
return this;
}
@CustomType.Setter
public Builder subdivisionCode(@Nullable String subdivisionCode) {
this.subdivisionCode = subdivisionCode;
return this;
}
public GeoLocationResponse build() {
final var _resultValue = new GeoLocationResponse();
_resultValue.continentCode = continentCode;
_resultValue.countryCode = countryCode;
_resultValue.subdivisionCode = subdivisionCode;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy