Class EndpointLocation

    • Method Detail

      • city

        public final String city()

        The name of the city where the endpoint is located.

        Returns:
        The name of the city where the endpoint is located.
      • country

        public final String country()

        The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the endpoint is located. For example, US for the United States.

        Returns:
        The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the endpoint is located. For example, US for the United States.
      • latitude

        public final Double latitude()

        The latitude coordinate of the endpoint location, rounded to one decimal place.

        Returns:
        The latitude coordinate of the endpoint location, rounded to one decimal place.
      • longitude

        public final Double longitude()

        The longitude coordinate of the endpoint location, rounded to one decimal place.

        Returns:
        The longitude coordinate of the endpoint location, rounded to one decimal place.
      • postalCode

        public final String postalCode()

        The postal or ZIP code for the area where the endpoint is located.

        Returns:
        The postal or ZIP code for the area where the endpoint is located.
      • region

        public final String region()

        The name of the region where the endpoint is located. For locations in the United States, this value is the name of a state.

        Returns:
        The name of the region where the endpoint is located. For locations in the United States, this value is the name of a state.
      • 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)