Package com.duffel.sdk.model
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).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe cabin class that the passenger will travel in on this segment -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRowsItem(SeatMapCabinRow rowsItem) cabinClass(SeatMapCabin.CabinClassEnum cabinClass) boolean@NotNull @Min(1L) @Max(2L) IntegerThe number of aisles in this cabin.@NotNull SeatMapCabin.CabinClassEnumThe cabin class that the passenger will travel in on this segment@NotNull @Min(0L) @Max(1L) IntegergetDeck()Level 0 is the main deck and level 1 is the upper deck above that, which is found on some large aircraft.@NotNull @Valid List<SeatMapCabinRow> getRows()A list of rows in this cabin.@Valid WingPositiongetWings()Get wingsorg.openapitools.jackson.nullable.JsonNullable<WingPosition> inthashCode()rows(List<SeatMapCabinRow> rows) voidvoidsetCabinClass(SeatMapCabin.CabinClassEnum cabinClass) voidvoidsetRows(List<SeatMapCabinRow> rows) voidsetWings(WingPosition wings) voidsetWings_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<WingPosition> wings) toString()wings(WingPosition wings)
-
Field Details
-
JSON_PROPERTY_AISLES
- See Also:
-
JSON_PROPERTY_CABIN_CLASS
- See Also:
-
JSON_PROPERTY_DECK
- See Also:
-
JSON_PROPERTY_ROWS
- See Also:
-
JSON_PROPERTY_WINGS
- See Also:
-
-
Constructor Details
-
SeatMapCabin
public SeatMapCabin()
-
-
Method Details
-
aisles
-
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
-
cabinClass
-
getCabinClass
The cabin class that the passenger will travel in on this segment- Returns:
- cabinClass
-
setCabinClass
-
deck
-
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
-
rows
-
addRowsItem
-
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
-
wings
-
getWings
Get wings- Returns:
- wings
-
getWings_JsonNullable
-
setWings_JsonNullable
public void setWings_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<WingPosition> wings) -
setWings
-
equals
-
hashCode
public int hashCode() -
toString
-