Package com.duffel.sdk.model
Class OrderSliceSegment
java.lang.Object
com.duffel.sdk.model.OrderSliceSegment
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]")
public class OrderSliceSegment
extends Object
OrderSliceSegment
-
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 Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPassengersItem(OrderSliceSegmentPassenger passengersItem) arrivalDatetime(String arrivalDatetime) arrivalTerminal(String arrivalTerminal) arrivingAt(String arrivingAt) departingAt(String departingAt) departureDatetime(String departureDatetime) departureTerminal(String departureTerminal) destinationTerminal(String destinationTerminal) boolean@NotNull @Valid Aircraft1Get aircraft@NotNull StringThe [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the segment is scheduled to arrive.@NotNull StringThe terminal at the `destination` airport where the segment is scheduled to arrive.@NotNull StringThe [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`)@NotNull StringThe [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`)@NotNull StringThe [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the segment is scheduled to depart.@NotNull StringThe terminal at the `origin` airport from which the segment is scheduled to depart.@NotNull @Valid OrderChangeSlicesSliceSegmentsInnerDestinationGet destination@NotNull StringThe terminal at the `destination` airport where the segment is scheduled to arrive@NotNull StringThe distance of the segment in kilometres@NotNull StringThe duration of the segment, represented as a [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) duration@NotNull StringgetId()Duffel's unique identifier for the segment.@NotNull @Valid Airline2Get marketingCarrier@NotNull StringThe flight number assigned by the marketing carrier@NotNull @Valid Airline3Get operatingCarrier@NotNull StringThe flight number assigned by the operating carrier.@NotNull @Valid Airport3Get origin@NotNull StringThe terminal at the `origin` airport from which the segment is scheduled to depart@NotNull @Valid List<OrderSliceSegmentPassenger> Additional segment-specific information about the passengers included in the offer (e.g.inthashCode()marketingCarrier(Airline2 marketingCarrier) marketingCarrierFlightNumber(String marketingCarrierFlightNumber) operatingCarrier(Airline3 operatingCarrier) operatingCarrierFlightNumber(String operatingCarrierFlightNumber) originTerminal(String originTerminal) passengers(List<OrderSliceSegmentPassenger> passengers) voidsetAircraft(Aircraft1 aircraft) voidsetArrivalDatetime(String arrivalDatetime) voidsetArrivalTerminal(String arrivalTerminal) voidsetArrivingAt(String arrivingAt) voidsetDepartingAt(String departingAt) voidsetDepartureDatetime(String departureDatetime) voidsetDepartureTerminal(String departureTerminal) voidvoidsetDestinationTerminal(String destinationTerminal) voidsetDistance(String distance) voidsetDuration(String duration) voidvoidsetMarketingCarrier(Airline2 marketingCarrier) voidsetMarketingCarrierFlightNumber(String marketingCarrierFlightNumber) voidsetOperatingCarrier(Airline3 operatingCarrier) voidsetOperatingCarrierFlightNumber(String operatingCarrierFlightNumber) voidvoidsetOriginTerminal(String originTerminal) voidsetPassengers(List<OrderSliceSegmentPassenger> passengers) toString()
-
Field Details
-
JSON_PROPERTY_AIRCRAFT
- See Also:
-
JSON_PROPERTY_ARRIVAL_DATETIME
- See Also:
-
JSON_PROPERTY_ARRIVAL_TERMINAL
- See Also:
-
JSON_PROPERTY_ARRIVING_AT
- See Also:
-
JSON_PROPERTY_DEPARTING_AT
- See Also:
-
JSON_PROPERTY_DEPARTURE_DATETIME
- See Also:
-
JSON_PROPERTY_DEPARTURE_TERMINAL
- 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
-
OrderSliceSegment
public OrderSliceSegment()
-
-
Method Details
-
aircraft
-
getAircraft
Get aircraft- Returns:
- aircraft
-
setAircraft
-
arrivalDatetime
-
getArrivalDatetime
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the segment is scheduled to arrive. You should use the `arriving_at` attribute instead of this attribute, as this will be removed in the next API version.- Returns:
- arrivalDatetime
-
setArrivalDatetime
-
arrivalTerminal
-
getArrivalTerminal
The terminal at the `destination` airport where the segment is scheduled to arrive. You should use the `destination_terminal` attribute instead of this attribute, as this will be removed in the next API version.- Returns:
- arrivalTerminal
-
setArrivalTerminal
-
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
-
departureDatetime
-
getDepartureDatetime
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the segment is scheduled to depart. You should use the `departing_at` attribute instead of this attribute, as this will be removed in the next API version.- Returns:
- departureDatetime
-
setDepartureDatetime
-
departureTerminal
-
getDepartureTerminal
The terminal at the `origin` airport from which the segment is scheduled to depart. You should use the `origin_terminal` attribute instead of this attribute, as this will be removed in the next API version.- Returns:
- departureTerminal
-
setDepartureTerminal
-
destination
-
getDestination
@Nonnull @NotNull @Valid public @NotNull @Valid OrderChangeSlicesSliceSegmentsInnerDestination getDestination()Get destination- Returns:
- destination
-
setDestination
-
destinationTerminal
-
getDestinationTerminal
The terminal at the `destination` airport where the segment is scheduled to arrive- Returns:
- destinationTerminal
-
setDestinationTerminal
-
distance
-
getDistance
The distance of the segment in kilometres- Returns:
- 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
-
setDuration
-
id
-
getId
Duffel's unique identifier for the segment. It identifies the segment of an order (i.e. the same segment across orders 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
-
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
-
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
-