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 Details

  • Constructor Details

    • OfferSliceSegment

      public OfferSliceSegment()
  • Method Details

    • aircraft

      public OfferSliceSegment aircraft(OfferSliceSegmentAircraft aircraft)
    • getAircraft

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

      public void setAircraft(OfferSliceSegmentAircraft aircraft)
    • arrivingAt

      public OfferSliceSegment arrivingAt(LocalDateTime arrivingAt)
    • getArrivingAt

      @Nullable @Valid public LocalDateTime 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(LocalDateTime arrivingAt)
    • departingAt

      public OfferSliceSegment departingAt(LocalDateTime departingAt)
    • getDepartingAt

      @Nullable @Valid public LocalDateTime 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(LocalDateTime departingAt)
    • destination

      public OfferSliceSegment destination(OfferSliceSegmentDestination destination)
    • getDestination

      @Nullable @Valid public @Valid OfferSliceSegmentDestination getDestination()
      Get destination
      Returns:
      destination
    • setDestination

      public void setDestination(OfferSliceSegmentDestination destination)
    • destinationTerminal

      public OfferSliceSegment destinationTerminal(String destinationTerminal)
    • getDestinationTerminal

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

      public org.openapitools.jackson.nullable.JsonNullable<String> getDestinationTerminal_JsonNullable()
    • setDestinationTerminal_JsonNullable

      public void setDestinationTerminal_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> destinationTerminal)
    • setDestinationTerminal

      public void setDestinationTerminal(String destinationTerminal)
    • distance

      public OfferSliceSegment distance(String distance)
    • getDistance

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

      public org.openapitools.jackson.nullable.JsonNullable<String> getDistance_JsonNullable()
    • setDistance_JsonNullable

      public void setDistance_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> distance)
    • setDistance

      public void setDistance(String distance)
    • duration

      public OfferSliceSegment duration(String duration)
    • getDuration

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

      public org.openapitools.jackson.nullable.JsonNullable<String> getDuration_JsonNullable()
    • setDuration_JsonNullable

      public void setDuration_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> duration)
    • setDuration

      public void setDuration(String duration)
    • id

      public OfferSliceSegment id(String id)
    • getId

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

      public void setId(String id)
    • marketingCarrier

      public OfferSliceSegment marketingCarrier(OfferSliceSegmentMarketingCarrier marketingCarrier)
    • getMarketingCarrier

      @Nullable @Valid public @Valid OfferSliceSegmentMarketingCarrier getMarketingCarrier()
      Get marketingCarrier
      Returns:
      marketingCarrier
    • setMarketingCarrier

      public void setMarketingCarrier(OfferSliceSegmentMarketingCarrier marketingCarrier)
    • marketingCarrierFlightNumber

      public OfferSliceSegment marketingCarrierFlightNumber(String marketingCarrierFlightNumber)
    • getMarketingCarrierFlightNumber

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

      public void setMarketingCarrierFlightNumber(String marketingCarrierFlightNumber)
    • operatingCarrier

      public OfferSliceSegment operatingCarrier(OfferSliceSegmentOperatingCarrier operatingCarrier)
    • getOperatingCarrier

      @Nullable @Valid public @Valid OfferSliceSegmentOperatingCarrier getOperatingCarrier()
      Get operatingCarrier
      Returns:
      operatingCarrier
    • setOperatingCarrier

      public void setOperatingCarrier(OfferSliceSegmentOperatingCarrier operatingCarrier)
    • operatingCarrierFlightNumber

      public OfferSliceSegment operatingCarrierFlightNumber(String operatingCarrierFlightNumber)
    • getOperatingCarrierFlightNumber

      @Nullable public 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
    • 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

      public void setOperatingCarrierFlightNumber(String operatingCarrierFlightNumber)
    • origin

    • getOrigin

      @Nullable @Valid public @Valid OfferSliceSegmentOrigin getOrigin()
      Get origin
      Returns:
      origin
    • setOrigin

      public void setOrigin(OfferSliceSegmentOrigin origin)
    • originTerminal

      public OfferSliceSegment originTerminal(String originTerminal)
    • getOriginTerminal

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

      public org.openapitools.jackson.nullable.JsonNullable<String> getOriginTerminal_JsonNullable()
    • setOriginTerminal_JsonNullable

      public void setOriginTerminal_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> originTerminal)
    • setOriginTerminal

      public void setOriginTerminal(String originTerminal)
    • passengers

      public OfferSliceSegment passengers(List<OfferSliceSegmentPassenger> passengers)
    • addPassengersItem

      public OfferSliceSegment addPassengersItem(OfferSliceSegmentPassenger passengersItem)
    • getPassengers

      @Nullable @Valid public @Valid List<OfferSliceSegmentPassenger> 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<OfferSliceSegmentPassenger> 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