
com.google.api.services.qpxExpress.model.FlightInfo Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://code.google.com/p/google-apis-client-generator/
* (build: 2014-04-15 19:10:39 UTC)
* on 2014-04-29 at 16:57:52 UTC
* Modify at your own risk.
*/
package com.google.api.services.qpxExpress.model;
/**
* A flight is a sequence of legs with the same airline carrier and flight number. (A leg is the
* smallest unit of travel, in the case of a flight a takeoff immediately followed by a landing at
* two set points on a particular carrier with a particular flight number.) The naive view is that a
* flight is scheduled travel of an aircraft between two points, with possibly intermediate stops,
* but carriers will frequently list flights that require a change of aircraft between legs.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the QPX Express API. For a detailed explanation see:
* http://code.google.com/p/google-http-java-client/wiki/JSON
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class FlightInfo extends com.google.api.client.json.GenericJson {
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String carrier;
/**
* The flight number.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String number;
/**
* @return value or {@code null} for none
*/
public java.lang.String getCarrier() {
return carrier;
}
/**
* @param carrier carrier or {@code null} for none
*/
public FlightInfo setCarrier(java.lang.String carrier) {
this.carrier = carrier;
return this;
}
/**
* The flight number.
* @return value or {@code null} for none
*/
public java.lang.String getNumber() {
return number;
}
/**
* The flight number.
* @param number number or {@code null} for none
*/
public FlightInfo setNumber(java.lang.String number) {
this.number = number;
return this;
}
@Override
public FlightInfo set(String fieldName, Object value) {
return (FlightInfo) super.set(fieldName, value);
}
@Override
public FlightInfo clone() {
return (FlightInfo) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy