Class OfferRequestSliceOrigin

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]") public class OfferRequestSliceOrigin extends Object
OfferRequestSliceOrigin
  • Field Details

  • Constructor Details

    • OfferRequestSliceOrigin

      public OfferRequestSliceOrigin()
  • Method Details

    • airports

      public OfferRequestSliceOrigin airports(List<Airport2> airports)
    • addAirportsItem

      public OfferRequestSliceOrigin addAirportsItem(Airport2 airportsItem)
    • getAirports

      @Nullable @Valid public @Valid List<Airport2> getAirports()
      The airports associated to a city. This will only be provided where the `type` is `city`.
      Returns:
      airports
    • getAirports_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<List<Airport2>> getAirports_JsonNullable()
    • setAirports_JsonNullable

      public void setAirports_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<Airport2>> airports)
    • setAirports

      public void setAirports(List<Airport2> airports)
    • city

      public OfferRequestSliceOrigin city(City3 city)
    • getCity

      @Nullable @NotNull @Valid public @NotNull @Valid City3 getCity()
      Get city
      Returns:
      city
    • setCity

      public void setCity(City3 city)
    • cityName

      public OfferRequestSliceOrigin cityName(String cityName)
    • getCityName

      @Nullable @NotNull public @NotNull String getCityName()
      The name of the city (or cities separated by a `/`) where the airport is located
      Returns:
      cityName
    • setCityName

      public void setCityName(String cityName)
    • iataCityCode

      public OfferRequestSliceOrigin iataCityCode(String iataCityCode)
    • getIataCityCode

      @Nullable @NotNull public @NotNull String getIataCityCode()
      The 3-letter IATA code for the city where the place 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).
      Returns:
      iataCityCode
    • setIataCityCode

      public void setIataCityCode(String iataCityCode)
    • iataCode

      public OfferRequestSliceOrigin iataCode(String iataCode)
    • getIataCode

      @Nonnull @NotNull public @NotNull String getIataCode()
      The 3-letter IATA code for the place
      Returns:
      iataCode
    • setIataCode

      public void setIataCode(String iataCode)
    • iataCountryCode

      public OfferRequestSliceOrigin iataCountryCode(String iataCountryCode)
    • getIataCountryCode

      @Nonnull @NotNull public @NotNull 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)
    • icaoCode

      public OfferRequestSliceOrigin icaoCode(String icaoCode)
    • getIcaoCode

      @Nullable @NotNull public @NotNull String getIcaoCode()
      The four-character ICAO code for the airport
      Returns:
      icaoCode
    • setIcaoCode

      public void setIcaoCode(String icaoCode)
    • id

    • getId

      @Nonnull @NotNull public @NotNull String getId()
      Duffel's unique identifier for the place
      Returns:
      id
    • setId

      public void setId(String id)
    • latitude

      public OfferRequestSliceOrigin latitude(Float latitude)
    • getLatitude

      @Nullable @NotNull public @NotNull Float getLatitude()
      The latitude position of the airport represented in [Decimal degrees](https://en.wikipedia.org/wiki/Decimal_degrees) with 6 decimal points with a range between -90° and 90°
      Returns:
      latitude
    • setLatitude

      public void setLatitude(Float latitude)
    • longitude

      public OfferRequestSliceOrigin longitude(Float longitude)
    • getLongitude

      @Nullable @NotNull public @NotNull Float getLongitude()
      The longitude position of the airport represented in [Decimal degrees](https://en.wikipedia.org/wiki/Decimal_degrees) with 6 decimal points with a range between -180° and 180°
      Returns:
      longitude
    • setLongitude

      public void setLongitude(Float longitude)
    • name

      public OfferRequestSliceOrigin name(String name)
    • getName

      @Nonnull @NotNull public @NotNull String getName()
      The name of the place
      Returns:
      name
    • setName

      public void setName(String name)
    • timeZone

      public OfferRequestSliceOrigin timeZone(String timeZone)
    • getTimeZone

      @Nullable @NotNull public @NotNull String getTimeZone()
      The time zone of the airport, specified by name from the [tz database](https://en.wikipedia.org/wiki/Tz_database)
      Returns:
      timeZone
    • setTimeZone

      public void setTimeZone(String timeZone)
    • type

    • getType

      @Nonnull @NotNull public @NotNull OfferRequestSliceOrigin.TypeEnum getType()
      The type of the place
      Returns:
      type
    • setType

      public void setType(OfferRequestSliceOrigin.TypeEnum type)
    • 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