Class Place


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class Place
    extends Object
    Place
    • Constructor Detail

      • Place

        public Place()
    • Method Detail

      • containedWithin

        public Place containedWithin​(List<String> containedWithin)
      • addContainedWithinItem

        public Place addContainedWithinItem​(String containedWithinItem)
      • getContainedWithin

        @Nullable
        public List<String> getContainedWithin()
        Get containedWithin
        Returns:
        containedWithin
      • setContainedWithin

        public void setContainedWithin​(List<String> containedWithin)
      • getCountry

        @Nullable
        public String getCountry()
        The full name of the county in which this place exists.
        Returns:
        country
      • setCountry

        public void setCountry​(String country)
      • countryCode

        public Place countryCode​(String countryCode)
      • getCountryCode

        @Nullable
        public String getCountryCode()
        A two-letter ISO 3166-1 alpha-2 country code.
        Returns:
        countryCode
      • setCountryCode

        public void setCountryCode​(String countryCode)
      • fullName

        public Place fullName​(String fullName)
      • getFullName

        @Nonnull
        public String getFullName()
        The full name of this place.
        Returns:
        fullName
      • setFullName

        public void setFullName​(String fullName)
      • getGeo

        @Nullable
        public Geo getGeo()
        Get geo
        Returns:
        geo
      • setGeo

        public void setGeo​(Geo geo)
      • getId

        @Nonnull
        public String getId()
        The identifier for this place.
        Returns:
        id
      • setId

        public void setId​(String id)
      • getName

        @Nullable
        public String getName()
        The human readable name of this place.
        Returns:
        name
      • setName

        public void setName​(String name)
      • getPlaceType

        @Nullable
        public PlaceType getPlaceType()
        Get placeType
        Returns:
        placeType
      • setPlaceType

        public void setPlaceType​(PlaceType placeType)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to Place
      • fromJson

        public static Place fromJson​(String jsonString)
                              throws IOException
        Create an instance of Place given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Place
        Throws:
        IOException - if the JSON string is invalid with respect to Place
      • toJson

        public String toJson()
        Convert an instance of Place to an JSON string
        Returns:
        JSON string