Class FlightLegDetails.FlightLegDetailsBuilder

  • Enclosing class:
    FlightLegDetails

    public static class FlightLegDetails.FlightLegDetailsBuilder
    extends java.lang.Object
    • Method Detail

      • carrierCode

        public FlightLegDetails.FlightLegDetailsBuilder carrierCode​(java.lang.String carrierCode)
        The IATA 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details.
        Returns:
        this.
      • classOfTravelling

        public FlightLegDetails.FlightLegDetailsBuilder classOfTravelling​(java.lang.String classOfTravelling)
        A one-letter travel class identifier. The following are common: F = First class, J = Business class, Y = Economy class, W = Premium economy.
        Returns:
        this.
      • departureAirport

        public FlightLegDetails.FlightLegDetailsBuilder departureAirport​(java.lang.String departureAirport)
        The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details.
        Returns:
        this.
      • arrivalAirport

        public FlightLegDetails.FlightLegDetailsBuilder arrivalAirport​(java.lang.String arrivalAirport)
        The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details.
        Returns:
        this.
      • stopOverCode

        public FlightLegDetails.FlightLegDetailsBuilder stopOverCode​(java.lang.String stopOverCode)
        A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not.
        Returns:
        this.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object