Class OrderSliceSegment

java.lang.Object
com.duffel.sdk.model.OrderSliceSegment

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-08-28T15:18:14.926970+07:00[Asia/Bangkok]") public class OrderSliceSegment extends Object
OrderSliceSegment
  • Field Details

  • Constructor Details

    • OrderSliceSegment

      public OrderSliceSegment()
  • Method Details

    • aircraft

      public OrderSliceSegment aircraft(Aircraft2 aircraft)
    • getAircraft

      @Nullable @NotNull @Valid public @NotNull @Valid Aircraft2 getAircraft()
      Get aircraft
      Returns:
      aircraft
    • setAircraft

      public void setAircraft(Aircraft2 aircraft)
    • arrivalDatetime

      public OrderSliceSegment arrivalDatetime(String arrivalDatetime)
    • getArrivalDatetime

      @Nonnull @NotNull public @NotNull String 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

      public void setArrivalDatetime(String arrivalDatetime)
    • arrivalTerminal

      public OrderSliceSegment arrivalTerminal(String arrivalTerminal)
    • getArrivalTerminal

      @Nullable @NotNull public @NotNull String 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

      public void setArrivalTerminal(String arrivalTerminal)
    • arrivingAt

      public OrderSliceSegment arrivingAt(String arrivingAt)
    • getArrivingAt

      @Nonnull @NotNull public @NotNull String 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

      public void setArrivingAt(String arrivingAt)
    • departingAt

      public OrderSliceSegment departingAt(String departingAt)
    • getDepartingAt

      @Nonnull @NotNull public @NotNull String 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

      public void setDepartingAt(String departingAt)
    • departureDatetime

      public OrderSliceSegment departureDatetime(String departureDatetime)
    • getDepartureDatetime

      @Nonnull @NotNull public @NotNull String 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

      public void setDepartureDatetime(String departureDatetime)
    • departureTerminal

      public OrderSliceSegment departureTerminal(String departureTerminal)
    • getDepartureTerminal

      @Nullable @NotNull public @NotNull String 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

      public void setDepartureTerminal(String departureTerminal)
    • destination

    • getDestination

      @Nonnull @NotNull @Valid public @NotNull @Valid OrderChangeSlicesSliceSegmentsInnerDestination getDestination()
      Get destination
      Returns:
      destination
    • setDestination

      public void setDestination(OrderChangeSlicesSliceSegmentsInnerDestination destination)
    • destinationTerminal

      public OrderSliceSegment destinationTerminal(String destinationTerminal)
    • getDestinationTerminal

      @Nullable @NotNull public @NotNull String getDestinationTerminal()
      The terminal at the `destination` airport where the segment is scheduled to arrive
      Returns:
      destinationTerminal
    • setDestinationTerminal

      public void setDestinationTerminal(String destinationTerminal)
    • distance

      public OrderSliceSegment distance(String distance)
    • getDistance

      @Nullable @NotNull public @NotNull String getDistance()
      The distance of the segment in kilometres
      Returns:
      distance
    • setDistance

      public void setDistance(String distance)
    • duration

      public OrderSliceSegment duration(String duration)
    • getDuration

      @Nullable @NotNull public @NotNull String getDuration()
      The duration of the segment, represented as a [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) duration
      Returns:
      duration
    • setDuration

      public void setDuration(String duration)
    • id

      public OrderSliceSegment id(String id)
    • getId

      @Nonnull @NotNull public @NotNull String 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

      public void setId(String id)
    • marketingCarrier

      public OrderSliceSegment marketingCarrier(Airline2 marketingCarrier)
    • getMarketingCarrier

      @Nonnull @NotNull @Valid public @NotNull @Valid Airline2 getMarketingCarrier()
      Get marketingCarrier
      Returns:
      marketingCarrier
    • setMarketingCarrier

      public void setMarketingCarrier(Airline2 marketingCarrier)
    • marketingCarrierFlightNumber

      public OrderSliceSegment marketingCarrierFlightNumber(String marketingCarrierFlightNumber)
    • getMarketingCarrierFlightNumber

      @Nonnull @NotNull public @NotNull String getMarketingCarrierFlightNumber()
      The flight number assigned by the marketing carrier
      Returns:
      marketingCarrierFlightNumber
    • setMarketingCarrierFlightNumber

      public void setMarketingCarrierFlightNumber(String marketingCarrierFlightNumber)
    • operatingCarrier

      public OrderSliceSegment operatingCarrier(Airline3 operatingCarrier)
    • getOperatingCarrier

      @Nonnull @NotNull @Valid public @NotNull @Valid Airline3 getOperatingCarrier()
      Get operatingCarrier
      Returns:
      operatingCarrier
    • setOperatingCarrier

      public void setOperatingCarrier(Airline3 operatingCarrier)
    • operatingCarrierFlightNumber

      public OrderSliceSegment operatingCarrierFlightNumber(String operatingCarrierFlightNumber)
    • getOperatingCarrierFlightNumber

      @Nullable @NotNull public @NotNull String 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

      public void setOperatingCarrierFlightNumber(String operatingCarrierFlightNumber)
    • origin

      public OrderSliceSegment origin(Airport3 origin)
    • getOrigin

      @Nonnull @NotNull @Valid public @NotNull @Valid Airport3 getOrigin()
      Get origin
      Returns:
      origin
    • setOrigin

      public void setOrigin(Airport3 origin)
    • originTerminal

      public OrderSliceSegment originTerminal(String originTerminal)
    • getOriginTerminal

      @Nullable @NotNull public @NotNull String getOriginTerminal()
      The terminal at the `origin` airport from which the segment is scheduled to depart
      Returns:
      originTerminal
    • setOriginTerminal

      public void setOriginTerminal(String originTerminal)
    • passengers

      public OrderSliceSegment passengers(List<OrderSliceSegmentPassenger> passengers)
    • addPassengersItem

      public OrderSliceSegment addPassengersItem(OrderSliceSegmentPassenger passengersItem)
    • getPassengers

      @Nonnull @NotNull @Valid public @NotNull @Valid List<OrderSliceSegmentPassenger> 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

      public void setPassengers(List<OrderSliceSegmentPassenger> passengers)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object