Class CabinRowSectionSeatElement

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-08-28T15:18:14.926970+07:00[Asia/Bangkok]") public class CabinRowSectionSeatElement extends Object
A seat for a passenger. If the `available_services` list is empty (which will be represented as an empty list : `[]`), the seat is unavailable. For display, all seats should be displayed with the same static width.
  • Field Details

  • Constructor Details

    • CabinRowSectionSeatElement

      public CabinRowSectionSeatElement()
  • Method Details

    • availableServices

      public CabinRowSectionSeatElement availableServices(List<SeatService> availableServices)
    • addAvailableServicesItem

      public CabinRowSectionSeatElement addAvailableServicesItem(SeatService availableServicesItem)
    • getAvailableServices

      @Nonnull @NotNull @Valid public @NotNull @Valid List<SeatService> getAvailableServices()
      Seats are considered a special kind of service. There will be at most one service per seat per passenger. A seat can only be booked for one passenger. If a seat has no available services (which will be represented as an empty list : `[]`) then it's unavailable.
      Returns:
      availableServices
    • setAvailableServices

      public void setAvailableServices(List<SeatService> availableServices)
    • designator

      public CabinRowSectionSeatElement designator(String designator)
    • getDesignator

      @Nonnull @NotNull public @NotNull String getDesignator()
      The designator used to uniquely identify the seat, usually made up of a row number and a column letter
      Returns:
      designator
    • setDesignator

      public void setDesignator(String designator)
    • disclosures

      public CabinRowSectionSeatElement disclosures(List<String> disclosures)
    • addDisclosuresItem

      public CabinRowSectionSeatElement addDisclosuresItem(String disclosuresItem)
    • getDisclosures

      @Nonnull @NotNull public @NotNull List<String> getDisclosures()
      Each disclosure is text, in English, provided by the airline that describes the terms and conditions of this seat. We recommend showing this in your user interface to make sure that customers understand any restrictions and limitations.
      Returns:
      disclosures
    • setDisclosures

      public void setDisclosures(List<String> disclosures)
    • name

      public CabinRowSectionSeatElement name(String name)
    • getName

      @Nullable public String getName()
      A name which describes the type of seat, which you can display in your user interface to help customers to understand its features
      Returns:
      name
    • getName_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getName_JsonNullable()
    • setName_JsonNullable

      public void setName_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> name)
    • setName

      public void setName(String name)
    • type

    • getType

      @Nonnull @NotNull public @NotNull CabinRowSectionSeatElement.TypeEnum getType()
      The type of this element
      Returns:
      type
    • setType

      public void setType(CabinRowSectionSeatElement.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