Class GeoLocation

    • Method Detail

      • continentCode

        public final String continentCode()

        The two-letter code for the continent.

        Amazon 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 ContinentCode with either CountryCode or SubdivisionCode returns an InvalidInput error.

        Returns:
        The two-letter code for the continent.

        Amazon 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 ContinentCode with either CountryCode or SubdivisionCode returns an InvalidInput error.

      • countryCode

        public final String countryCode()

        For geolocation resource record sets, the two-letter code for a country.

        Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2.

        Route 53 also supports the contry code UA forr Ukraine.

        Returns:
        For geolocation resource record sets, the two-letter code for a country.

        Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2.

        Route 53 also supports the contry code UA forr Ukraine.

      • subdivisionCode

        public final String 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.

        Returns:
        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.

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)