Class FlightLegDetails


  • public final class FlightLegDetails
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      FlightLegDetails()  
      FlightLegDetails​(java.lang.String flightNumber, java.lang.String carrierCode, java.lang.String classOfTravelling, java.lang.String departureAirport, java.time.Instant departureDate, java.lang.String departureTime, java.lang.String arrivalAirport, java.lang.String stopOverCode, java.lang.String fareBasisCode)
      Creates a new FlightLegDetails instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static FlightLegDetails.FlightLegDetailsBuilder builder()  
      boolean equals​(java.lang.Object o)  
      java.lang.String getArrivalAirport()
      The IATA 3-letter airport code of the destination airport.
      java.lang.String getCarrierCode()
      The IATA 2-letter accounting code (PAX) that identifies the carrier.
      java.lang.String getClassOfTravelling()
      A one-letter travel class identifier.
      java.lang.String getDepartureAirport()
      The IATA three-letter airport code of the departure airport.
      java.time.Instant getDepartureDate()
      The date of the scheduled take off.
      java.lang.String getDepartureTime()
      The time of the scheduled take off.
      java.lang.String getFareBasisCode()
      The fare basis code, alphanumeric.
      java.lang.String getFlightNumber()
      The flight identifier.
      java.lang.String getStopOverCode()
      A one-letter code that indicates whether the passenger is entitled to make a stopover.
      int hashCode()  
      void setArrivalAirport​(java.lang.String arrivalAirport)
      The IATA 3-letter airport code of the destination airport.
      void setCarrierCode​(java.lang.String carrierCode)
      The IATA 2-letter accounting code (PAX) that identifies the carrier.
      void setClassOfTravelling​(java.lang.String classOfTravelling)
      A one-letter travel class identifier.
      void setDepartureAirport​(java.lang.String departureAirport)
      The IATA three-letter airport code of the departure airport.
      void setDepartureDate​(java.time.Instant departureDate)
      The date of the scheduled take off.
      void setDepartureTime​(java.lang.String departureTime)
      The time of the scheduled take off.
      void setFareBasisCode​(java.lang.String fareBasisCode)
      The fare basis code, alphanumeric.
      void setFlightNumber​(java.lang.String flightNumber)
      The flight identifier.
      void setStopOverCode​(java.lang.String stopOverCode)
      A one-letter code that indicates whether the passenger is entitled to make a stopover.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FlightLegDetails

        public FlightLegDetails()
      • FlightLegDetails

        public FlightLegDetails​(java.lang.String flightNumber,
                                java.lang.String carrierCode,
                                java.lang.String classOfTravelling,
                                java.lang.String departureAirport,
                                java.time.Instant departureDate,
                                java.lang.String departureTime,
                                java.lang.String arrivalAirport,
                                java.lang.String stopOverCode,
                                java.lang.String fareBasisCode)
        Creates a new FlightLegDetails instance.
        Parameters:
        flightNumber - The flight identifier.
        carrierCode - The IATA 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details.
        classOfTravelling - A one-letter travel class identifier. The following are common: F = First class, J = Business class, Y = Economy class, W = Premium economy.
        departureAirport - The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details.
        departureDate - The date of the scheduled take off.
        departureTime - The time of the scheduled take off.
        arrivalAirport - The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details.
        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.
        fareBasisCode - The fare basis code, alphanumeric.
    • Method Detail

      • getFlightNumber

        public java.lang.String getFlightNumber()
        The flight identifier.
      • getCarrierCode

        public java.lang.String getCarrierCode()
        The IATA 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details.
      • getClassOfTravelling

        public java.lang.String getClassOfTravelling()
        A one-letter travel class identifier. The following are common: F = First class, J = Business class, Y = Economy class, W = Premium economy.
      • getDepartureAirport

        public java.lang.String getDepartureAirport()
        The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details.
      • getDepartureDate

        public java.time.Instant getDepartureDate()
        The date of the scheduled take off.
      • getDepartureTime

        public java.lang.String getDepartureTime()
        The time of the scheduled take off.
      • getArrivalAirport

        public java.lang.String getArrivalAirport()
        The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details.
      • getStopOverCode

        public java.lang.String getStopOverCode()
        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.
      • getFareBasisCode

        public java.lang.String getFareBasisCode()
        The fare basis code, alphanumeric.
      • setFlightNumber

        public void setFlightNumber​(java.lang.String flightNumber)
        The flight identifier.
      • setCarrierCode

        public void setCarrierCode​(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.
      • setClassOfTravelling

        public void setClassOfTravelling​(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.
      • setDepartureAirport

        public void setDepartureAirport​(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.
      • setDepartureDate

        public void setDepartureDate​(java.time.Instant departureDate)
        The date of the scheduled take off.
      • setDepartureTime

        public void setDepartureTime​(java.lang.String departureTime)
        The time of the scheduled take off.
      • setArrivalAirport

        public void setArrivalAirport​(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.
      • setStopOverCode

        public void setStopOverCode​(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.
      • setFareBasisCode

        public void setFareBasisCode​(java.lang.String fareBasisCode)
        The fare basis code, alphanumeric.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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