Class City3

java.lang.Object
com.duffel.sdk.model.City3

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-08-28T15:18:14.926970+07:00[Asia/Bangkok]") public class City3 extends Object
The metropolitan area where the airport is located. Only present for airports which are registered with IATA as belonging to a [metropolitan area](https://portal.iata.org/faq/articles/en_US/FAQ/How-do-I-create-a-new-Metropolitan-Area).
  • Field Details

  • Constructor Details

    • City3

      public City3()
  • Method Details

    • iataCode

      public City3 iataCode(String iataCode)
    • getIataCode

      @Nullable public String getIataCode()
      The three-character IATA code for the city
      Returns:
      iataCode
    • setIataCode

      public void setIataCode(String iataCode)
    • iataCountryCode

      public City3 iataCountryCode(String iataCountryCode)
    • getIataCountryCode

      @Nullable public String getIataCountryCode()
      The [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for the country where the city is located
      Returns:
      iataCountryCode
    • setIataCountryCode

      public void setIataCountryCode(String iataCountryCode)
    • id

      public City3 id(String id)
    • getId

      @Nullable public String getId()
      Duffel's unique identifier for the city
      Returns:
      id
    • setId

      public void setId(String id)
    • name

      public City3 name(String name)
    • getName

      @Nullable public String getName()
      The name of the city
      Returns:
      name
    • setName

      public void setName(String name)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object