Package com.duffel.sdk.model
Class OrderChangeSlicesSliceSegmentsInner
java.lang.Object
com.duffel.sdk.model.OrderChangeSlicesSliceSegmentsInner
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:18:14.926970+07:00[Asia/Bangkok]")
public class OrderChangeSlicesSliceSegmentsInner
extends Object
OrderChangeSlicesSliceSegmentsInner
-
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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarrivingAt(String arrivingAt) departingAt(String departingAt) destinationTerminal(String destinationTerminal) boolean@Valid Aircraft2Get aircraftorg.openapitools.jackson.nullable.JsonNullable<Aircraft2>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`)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`)Get 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.@Valid Airline2Get marketingCarrierThe flight number assigned by the marketing carrier@Valid Airline3Get operatingCarrierThe flight number assigned by the operating carrier.org.openapitools.jackson.nullable.JsonNullable<String>@Valid Airport3Get originThe terminal at the `origin` airport from which the segment is scheduled to departorg.openapitools.jackson.nullable.JsonNullable<String>inthashCode()marketingCarrier(Airline2 marketingCarrier) marketingCarrierFlightNumber(String marketingCarrierFlightNumber) operatingCarrier(Airline3 operatingCarrier) operatingCarrierFlightNumber(String operatingCarrierFlightNumber) originTerminal(String originTerminal) voidsetAircraft(Aircraft2 aircraft) voidsetAircraft_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Aircraft2> aircraft) voidsetArrivingAt(String arrivingAt) voidsetDepartingAt(String departingAt) voidvoidsetDestinationTerminal(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(Airline2 marketingCarrier) voidsetMarketingCarrierFlightNumber(String marketingCarrierFlightNumber) voidsetOperatingCarrier(Airline3 operatingCarrier) voidsetOperatingCarrierFlightNumber(String operatingCarrierFlightNumber) voidsetOperatingCarrierFlightNumber_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> operatingCarrierFlightNumber) voidvoidsetOriginTerminal(String originTerminal) voidsetOriginTerminal_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> originTerminal) 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:
-
-
Constructor Details
-
OrderChangeSlicesSliceSegmentsInner
public OrderChangeSlicesSliceSegmentsInner()
-
-
Method Details
-
aircraft
-
getAircraft
Get aircraft- Returns:
- aircraft
-
getAircraft_JsonNullable
-
setAircraft_JsonNullable
public void setAircraft_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Aircraft2> 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
public OrderChangeSlicesSliceSegmentsInner destination(OrderChangeSlicesSliceSegmentsInnerDestination 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 order (i.e. the same segment across orders will have different `id`s.- Returns:
- id
-
setId
-
marketingCarrier
-
getMarketingCarrier
Get marketingCarrier- Returns:
- marketingCarrier
-
setMarketingCarrier
-
marketingCarrierFlightNumber
public OrderChangeSlicesSliceSegmentsInner marketingCarrierFlightNumber(String marketingCarrierFlightNumber) -
getMarketingCarrierFlightNumber
The flight number assigned by the marketing carrier- Returns:
- marketingCarrierFlightNumber
-
setMarketingCarrierFlightNumber
-
operatingCarrier
-
getOperatingCarrier
Get operatingCarrier- Returns:
- operatingCarrier
-
setOperatingCarrier
-
operatingCarrierFlightNumber
public OrderChangeSlicesSliceSegmentsInner operatingCarrierFlightNumber(String 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
-
equals
-
hashCode
public int hashCode() -
toString
-