Class Airline2

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-08-28T15:18:14.926970+07:00[Asia/Bangkok]") public class Airline2 extends Object
The airline selling the tickets for this segment. This may differ from the `operating_carrier` in the case of a \"codeshare\", where one airline sells flights operated by another airline.
  • Field Details

  • Constructor Details

    • Airline2

      public Airline2()
  • Method Details

    • iataCode

      public Airline2 iataCode(String iataCode)
    • getIataCode

      @Nullable public String getIataCode()
      The two-character IATA code for the airline. This may be `null` for non-IATA carriers.
      Returns:
      iataCode
    • getIataCode_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getIataCode_JsonNullable()
    • setIataCode_JsonNullable

      public void setIataCode_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> iataCode)
    • setIataCode

      public void setIataCode(String iataCode)
    • id

      public Airline2 id(String id)
    • getId

      @Nullable public String getId()
      Duffel's unique identifier for the airline
      Returns:
      id
    • setId

      public void setId(String id)
    • logoLockupUrl

      public Airline2 logoLockupUrl(String logoLockupUrl)
    • getLogoLockupUrl

      @Nullable public String getLogoLockupUrl()
      Path to a svg of the airline lockup logo. A lockup logo is also called a combination logo, in which it combines the logotype and logomark. This may be `null` if no logo is available.
      Returns:
      logoLockupUrl
    • getLogoLockupUrl_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getLogoLockupUrl_JsonNullable()
    • setLogoLockupUrl_JsonNullable

      public void setLogoLockupUrl_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> logoLockupUrl)
    • setLogoLockupUrl

      public void setLogoLockupUrl(String logoLockupUrl)
    • logoSymbolUrl

      public Airline2 logoSymbolUrl(String logoSymbolUrl)
    • getLogoSymbolUrl

      @Nullable public String getLogoSymbolUrl()
      Path to a svg of the airline logo. This may be `null` if no logo is available.
      Returns:
      logoSymbolUrl
    • getLogoSymbolUrl_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getLogoSymbolUrl_JsonNullable()
    • setLogoSymbolUrl_JsonNullable

      public void setLogoSymbolUrl_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> logoSymbolUrl)
    • setLogoSymbolUrl

      public void setLogoSymbolUrl(String logoSymbolUrl)
    • name

      public Airline2 name(String name)
    • getName

      @Nullable public String getName()
      The name of the airline
      Returns:
      name
    • setName

      public void setName(String name)
    • 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