Package com.duffel.sdk.model
Class OfferSliceSegment
java.lang.Object
com.duffel.sdk.model.OfferSliceSegment
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]")
public class OfferSliceSegment
extends Object
OfferSliceSegment
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPassengersItem(OfferSliceSegmentPassenger passengersItem) aircraft(OfferSliceSegmentAircraft aircraft) arrivingAt(LocalDateTime arrivingAt) departingAt(LocalDateTime departingAt) destination(OfferSliceSegmentDestination destination) destinationTerminal(String destinationTerminal) boolean@Valid OfferSliceSegmentAircraftGet aircraftThe [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the segment is scheduled to arrive, in the destination airport timezone (see `destination.timezone`)The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the segment is scheduled to depart, in the origin airport timezone (see `origin.timezone`)@Valid OfferSliceSegmentDestinationGet destinationThe terminal at the `destination` airport where the segment is scheduled to arriveorg.openapitools.jackson.nullable.JsonNullable<String> The distance of the segment in kilometresorg.openapitools.jackson.nullable.JsonNullable<String> The duration of the segment, represented as a [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) durationorg.openapitools.jackson.nullable.JsonNullable<String> getId()Duffel's unique identifier for the segment.Get marketingCarrierThe flight number assigned by the marketing carrierGet operatingCarrierThe flight number assigned by the operating carrier.org.openapitools.jackson.nullable.JsonNullable<String> @Valid OfferSliceSegmentOriginGet originThe terminal at the `origin` airport from which the segment is scheduled to departorg.openapitools.jackson.nullable.JsonNullable<String> @Valid List<OfferSliceSegmentPassenger> Additional segment-specific information about the passengers included in the offer (e.g.inthashCode()marketingCarrier(OfferSliceSegmentMarketingCarrier marketingCarrier) marketingCarrierFlightNumber(String marketingCarrierFlightNumber) operatingCarrier(OfferSliceSegmentOperatingCarrier operatingCarrier) operatingCarrierFlightNumber(String operatingCarrierFlightNumber) origin(OfferSliceSegmentOrigin origin) originTerminal(String originTerminal) passengers(List<OfferSliceSegmentPassenger> passengers) voidsetAircraft(OfferSliceSegmentAircraft aircraft) voidsetArrivingAt(LocalDateTime arrivingAt) voidsetDepartingAt(LocalDateTime departingAt) voidsetDestination(OfferSliceSegmentDestination destination) voidsetDestinationTerminal(String destinationTerminal) voidsetDestinationTerminal_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> destinationTerminal) voidsetDistance(String distance) voidsetDistance_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> distance) voidsetDuration(String duration) voidsetDuration_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> duration) voidvoidsetMarketingCarrier(OfferSliceSegmentMarketingCarrier marketingCarrier) voidsetMarketingCarrierFlightNumber(String marketingCarrierFlightNumber) voidsetOperatingCarrier(OfferSliceSegmentOperatingCarrier operatingCarrier) voidsetOperatingCarrierFlightNumber(String operatingCarrierFlightNumber) voidsetOperatingCarrierFlightNumber_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> operatingCarrierFlightNumber) voidsetOrigin(OfferSliceSegmentOrigin origin) voidsetOriginTerminal(String originTerminal) voidsetOriginTerminal_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> originTerminal) voidsetPassengers(List<OfferSliceSegmentPassenger> passengers) toString()
-
Field Details
-
JSON_PROPERTY_AIRCRAFT
- See Also:
-
JSON_PROPERTY_ARRIVING_AT
- See Also:
-
JSON_PROPERTY_DEPARTING_AT
- See Also:
-
JSON_PROPERTY_DESTINATION
- See Also:
-
JSON_PROPERTY_DESTINATION_TERMINAL
- See Also:
-
JSON_PROPERTY_DISTANCE
- See Also:
-
JSON_PROPERTY_DURATION
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_MARKETING_CARRIER
- See Also:
-
JSON_PROPERTY_MARKETING_CARRIER_FLIGHT_NUMBER
- See Also:
-
JSON_PROPERTY_OPERATING_CARRIER
- See Also:
-
JSON_PROPERTY_OPERATING_CARRIER_FLIGHT_NUMBER
- See Also:
-
JSON_PROPERTY_ORIGIN
- See Also:
-
JSON_PROPERTY_ORIGIN_TERMINAL
- See Also:
-
JSON_PROPERTY_PASSENGERS
- See Also:
-
-
Constructor Details
-
OfferSliceSegment
public OfferSliceSegment()
-
-
Method Details
-
aircraft
-
getAircraft
Get aircraft- Returns:
- aircraft
-
setAircraft
-
arrivingAt
-
getArrivingAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the segment is scheduled to arrive, in the destination airport timezone (see `destination.timezone`)- Returns:
- arrivingAt
-
setArrivingAt
-
departingAt
-
getDepartingAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the segment is scheduled to depart, in the origin airport timezone (see `origin.timezone`)- Returns:
- departingAt
-
setDepartingAt
-
destination
-
getDestination
Get destination- Returns:
- destination
-
setDestination
-
destinationTerminal
-
getDestinationTerminal
The terminal at the `destination` airport where the segment is scheduled to arrive- Returns:
- destinationTerminal
-
getDestinationTerminal_JsonNullable
-
setDestinationTerminal_JsonNullable
public void setDestinationTerminal_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> destinationTerminal) -
setDestinationTerminal
-
distance
-
getDistance
The distance of the segment in kilometres- Returns:
- distance
-
getDistance_JsonNullable
-
setDistance_JsonNullable
public void setDistance_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> distance) -
setDistance
-
duration
-
getDuration
The duration of the segment, represented as a [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) duration- Returns:
- duration
-
getDuration_JsonNullable
-
setDuration_JsonNullable
public void setDuration_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> duration) -
setDuration
-
id
-
getId
Duffel's unique identifier for the segment. It identifies the segment of an offer (i.e. the same segment across offers will have different `id`s).- Returns:
- id
-
setId
-
marketingCarrier
-
getMarketingCarrier
Get marketingCarrier- Returns:
- marketingCarrier
-
setMarketingCarrier
-
marketingCarrierFlightNumber
-
getMarketingCarrierFlightNumber
The flight number assigned by the marketing carrier- Returns:
- marketingCarrierFlightNumber
-
setMarketingCarrierFlightNumber
-
operatingCarrier
-
getOperatingCarrier
Get operatingCarrier- Returns:
- operatingCarrier
-
setOperatingCarrier
-
operatingCarrierFlightNumber
-
getOperatingCarrierFlightNumber
The flight number assigned by the operating carrier. This may not be present, in which case you should display the `marketing_carrier`'s information and the `marketing_carrier_flight_number`, and simply state the name of the `operating_carrier`.- Returns:
- operatingCarrierFlightNumber
-
getOperatingCarrierFlightNumber_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<String> getOperatingCarrierFlightNumber_JsonNullable() -
setOperatingCarrierFlightNumber_JsonNullable
public void setOperatingCarrierFlightNumber_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> operatingCarrierFlightNumber) -
setOperatingCarrierFlightNumber
-
origin
-
getOrigin
Get origin- Returns:
- origin
-
setOrigin
-
originTerminal
-
getOriginTerminal
The terminal at the `origin` airport from which the segment is scheduled to depart- Returns:
- originTerminal
-
getOriginTerminal_JsonNullable
-
setOriginTerminal_JsonNullable
public void setOriginTerminal_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> originTerminal) -
setOriginTerminal
-
passengers
-
addPassengersItem
-
getPassengers
Additional segment-specific information about the passengers included in the offer (e.g. their baggage allowance and the cabin class they will be travelling in)- Returns:
- passengers
-
setPassengers
-
equals
-
hashCode
public int hashCode() -
toString
-