Package com.duffel.sdk.model
Class OrderSliceSegmentPassenger
java.lang.Object
com.duffel.sdk.model.OrderSliceSegmentPassenger
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:18:14.926970+07:00[Asia/Bangkok]")
public class OrderSliceSegmentPassenger
extends Object
OrderSliceSegmentPassenger
-
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 TypeMethodDescriptionaddBaggagesItem(SliceSegmentPassengerBaggage baggagesItem) baggages(List<SliceSegmentPassengerBaggage> baggages) cabinClass(OrderSliceSegmentPassenger.CabinClassEnum cabinClass) cabinClassMarketingName(String cabinClassMarketingName) boolean@Valid List<SliceSegmentPassengerBaggage>The baggage allowances for the passenger on this segment that were included in the original offer.The cabin class that the passenger will travel in on this segmentorg.openapitools.jackson.nullable.JsonNullable<OrderSliceSegmentPassenger.CabinClassEnum>The name that the marketing carrier uses to market this cabin classorg.openapitools.jackson.nullable.JsonNullable<String>The identifier for the passenger.@Valid ServiceMetadataForASeat1getSeat()Get seatorg.openapitools.jackson.nullable.JsonNullable<ServiceMetadataForASeat1>inthashCode()passengerId(String passengerId) seat(ServiceMetadataForASeat1 seat) voidsetBaggages(List<SliceSegmentPassengerBaggage> baggages) voidvoidsetCabinClass_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<OrderSliceSegmentPassenger.CabinClassEnum> cabinClass) voidsetCabinClassMarketingName(String cabinClassMarketingName) voidsetCabinClassMarketingName_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> cabinClassMarketingName) voidsetPassengerId(String passengerId) voidvoidsetSeat_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<ServiceMetadataForASeat1> seat) toString()
-
Field Details
-
JSON_PROPERTY_BAGGAGES
- See Also:
-
JSON_PROPERTY_CABIN_CLASS
- See Also:
-
JSON_PROPERTY_CABIN_CLASS_MARKETING_NAME
- See Also:
-
JSON_PROPERTY_PASSENGER_ID
- See Also:
-
JSON_PROPERTY_SEAT
- See Also:
-
-
Constructor Details
-
OrderSliceSegmentPassenger
public OrderSliceSegmentPassenger()
-
-
Method Details
-
baggages
-
addBaggagesItem
-
getBaggages
The baggage allowances for the passenger on this segment that were included in the original offer. Any extra baggage items which were booked as services will be listed in the `services` field instead of here.- Returns:
- baggages
-
setBaggages
-
cabinClass
-
getCabinClass
The cabin class that the passenger will travel in on this segment- Returns:
- cabinClass
-
getCabinClass_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<OrderSliceSegmentPassenger.CabinClassEnum> getCabinClass_JsonNullable() -
setCabinClass_JsonNullable
public void setCabinClass_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<OrderSliceSegmentPassenger.CabinClassEnum> cabinClass) -
setCabinClass
-
cabinClassMarketingName
-
getCabinClassMarketingName
The name that the marketing carrier uses to market this cabin class- Returns:
- cabinClassMarketingName
-
getCabinClassMarketingName_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<String> getCabinClassMarketingName_JsonNullable() -
setCabinClassMarketingName_JsonNullable
public void setCabinClassMarketingName_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> cabinClassMarketingName) -
setCabinClassMarketingName
-
passengerId
-
getPassengerId
The identifier for the passenger. You may have specified this ID yourself when creating the offer request, or otherwise, Duffel will have generated its own random ID.- Returns:
- passengerId
-
setPassengerId
-
seat
-
getSeat
Get seat- Returns:
- seat
-
getSeat_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<ServiceMetadataForASeat1> getSeat_JsonNullable() -
setSeat_JsonNullable
public void setSeat_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<ServiceMetadataForASeat1> seat) -
setSeat
-
equals
-
hashCode
public int hashCode() -
toString
-