Class SeatMapCabin

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]") public class SeatMapCabin extends Object
A cabin is a physical section of an aircraft that passengers travel in. The cabin that a passenger travels in will depend on the fare they paid (for example an economy cabin versus a business class cabin).
  • Field Details

  • Constructor Details

    • SeatMapCabin

      public SeatMapCabin()
  • Method Details

    • aisles

      public SeatMapCabin aisles(Integer aisles)
    • getAisles

      @Nonnull @NotNull @Min(1L) @Max(2L) public @NotNull @Min(1L) @Max(2L) Integer getAisles()
      The number of aisles in this cabin. If this is set to `1`, each row of the cabin is split into two sections. If this is set to `2`, each row of the cabin is split into three sections. minimum: 1 maximum: 2
      Returns:
      aisles
    • setAisles

      public void setAisles(Integer aisles)
    • cabinClass

      public SeatMapCabin cabinClass(SeatMapCabin.CabinClassEnum cabinClass)
    • getCabinClass

      @Nullable @NotNull public @NotNull SeatMapCabin.CabinClassEnum getCabinClass()
      The cabin class that the passenger will travel in on this segment
      Returns:
      cabinClass
    • setCabinClass

      public void setCabinClass(SeatMapCabin.CabinClassEnum cabinClass)
    • deck

      public SeatMapCabin deck(Integer deck)
    • getDeck

      @Nonnull @NotNull @Min(0L) @Max(1L) public @NotNull @Min(0L) @Max(1L) Integer getDeck()
      Level 0 is the main deck and level 1 is the upper deck above that, which is found on some large aircraft. minimum: 0 maximum: 1
      Returns:
      deck
    • setDeck

      public void setDeck(Integer deck)
    • rows

      public SeatMapCabin rows(List<SeatMapCabinRow> rows)
    • addRowsItem

      public SeatMapCabin addRowsItem(SeatMapCabinRow rowsItem)
    • getRows

      @Nonnull @NotNull @Valid public @NotNull @Valid List<SeatMapCabinRow> getRows()
      A list of rows in this cabin. Row sections are broken up by aisles. Rows are ordered from front to back of the aircraft.
      Returns:
      rows
    • setRows

      public void setRows(List<SeatMapCabinRow> rows)
    • wings

      public SeatMapCabin wings(WingPosition wings)
    • getWings

      @Nullable @Valid public @Valid WingPosition getWings()
      Get wings
      Returns:
      wings
    • getWings_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<WingPosition> getWings_JsonNullable()
    • setWings_JsonNullable

      public void setWings_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<WingPosition> wings)
    • setWings

      public void setWings(WingPosition wings)
    • 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