com.google.api.services.qpxExpress.model.FareInfo 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-02-14 18:40:25 UTC)
* on 2014-02-22 at 02:08:00 UTC
* Modify at your own risk.
*/
package com.google.api.services.qpxExpress.model;
/**
* Complete information about a fare used in the solution to a low-fare search query. In the airline
* industry a fare is a price an airline charges for one-way travel between two points. A fare
* typically contains a carrier code, two city codes, a price, and a fare basis. (A fare basis is a
* one-to-eight character alphanumeric code used to identify a fare.)
*
* 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 FareInfo extends com.google.api.client.json.GenericJson {
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String basisCode;
/**
* The carrier of the aircraft or other vehicle commuting between two points.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String carrier;
/**
* The city code of the city the trip ends at.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String destination;
/**
* A unique identifier of the fare.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String id;
/**
* Identifies this as a fare object. Value: the fixed string qpxexpress#fareInfo.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kind;
/**
* The city code of the city the trip begins at.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String origin;
/**
* Whether this is a private fare, for example one offered only to select customers rather than
* the general public.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key("private")
private java.lang.Boolean qpxExpressPrivate;
/**
* @return value or {@code null} for none
*/
public java.lang.String getBasisCode() {
return basisCode;
}
/**
* @param basisCode basisCode or {@code null} for none
*/
public FareInfo setBasisCode(java.lang.String basisCode) {
this.basisCode = basisCode;
return this;
}
/**
* The carrier of the aircraft or other vehicle commuting between two points.
* @return value or {@code null} for none
*/
public java.lang.String getCarrier() {
return carrier;
}
/**
* The carrier of the aircraft or other vehicle commuting between two points.
* @param carrier carrier or {@code null} for none
*/
public FareInfo setCarrier(java.lang.String carrier) {
this.carrier = carrier;
return this;
}
/**
* The city code of the city the trip ends at.
* @return value or {@code null} for none
*/
public java.lang.String getDestination() {
return destination;
}
/**
* The city code of the city the trip ends at.
* @param destination destination or {@code null} for none
*/
public FareInfo setDestination(java.lang.String destination) {
this.destination = destination;
return this;
}
/**
* A unique identifier of the fare.
* @return value or {@code null} for none
*/
public java.lang.String getId() {
return id;
}
/**
* A unique identifier of the fare.
* @param id id or {@code null} for none
*/
public FareInfo setId(java.lang.String id) {
this.id = id;
return this;
}
/**
* Identifies this as a fare object. Value: the fixed string qpxexpress#fareInfo.
* @return value or {@code null} for none
*/
public java.lang.String getKind() {
return kind;
}
/**
* Identifies this as a fare object. Value: the fixed string qpxexpress#fareInfo.
* @param kind kind or {@code null} for none
*/
public FareInfo setKind(java.lang.String kind) {
this.kind = kind;
return this;
}
/**
* The city code of the city the trip begins at.
* @return value or {@code null} for none
*/
public java.lang.String getOrigin() {
return origin;
}
/**
* The city code of the city the trip begins at.
* @param origin origin or {@code null} for none
*/
public FareInfo setOrigin(java.lang.String origin) {
this.origin = origin;
return this;
}
/**
* Whether this is a private fare, for example one offered only to select customers rather than
* the general public.
* @return value or {@code null} for none
*/
public java.lang.Boolean getPrivate() {
return qpxExpressPrivate;
}
/**
* Whether this is a private fare, for example one offered only to select customers rather than
* the general public.
* @param qpxExpressPrivate qpxExpressPrivate or {@code null} for none
*/
public FareInfo setPrivate(java.lang.Boolean qpxExpressPrivate) {
this.qpxExpressPrivate = qpxExpressPrivate;
return this;
}
@Override
public FareInfo set(String fieldName, Object value) {
return (FareInfo) super.set(fieldName, value);
}
@Override
public FareInfo clone() {
return (FareInfo) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy