com.google.api.services.qpxExpress.model.PassengerCounts 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;
/**
* The number and type of passengers. Unfortunately the definition of an infant, child, adult, and
* senior citizen varies across carriers and reservation systems.
*
* 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 PassengerCounts extends com.google.api.client.json.GenericJson {
/**
* The number of passengers that are adults.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer adultCount;
/**
* The number of passengers that are children.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer childCount;
/**
* The number of passengers that are infants travelling in the lap of an adult.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer infantInLapCount;
/**
* The number of passengers that are infants each assigned a seat.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer infantInSeatCount;
/**
* Identifies this as a passenger count object, representing the number of passengers. Value: the
* fixed string qpxexpress#passengerCounts.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kind;
/**
* The number of passengers that are senior citizens.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer seniorCount;
/**
* The number of passengers that are adults.
* @return value or {@code null} for none
*/
public java.lang.Integer getAdultCount() {
return adultCount;
}
/**
* The number of passengers that are adults.
* @param adultCount adultCount or {@code null} for none
*/
public PassengerCounts setAdultCount(java.lang.Integer adultCount) {
this.adultCount = adultCount;
return this;
}
/**
* The number of passengers that are children.
* @return value or {@code null} for none
*/
public java.lang.Integer getChildCount() {
return childCount;
}
/**
* The number of passengers that are children.
* @param childCount childCount or {@code null} for none
*/
public PassengerCounts setChildCount(java.lang.Integer childCount) {
this.childCount = childCount;
return this;
}
/**
* The number of passengers that are infants travelling in the lap of an adult.
* @return value or {@code null} for none
*/
public java.lang.Integer getInfantInLapCount() {
return infantInLapCount;
}
/**
* The number of passengers that are infants travelling in the lap of an adult.
* @param infantInLapCount infantInLapCount or {@code null} for none
*/
public PassengerCounts setInfantInLapCount(java.lang.Integer infantInLapCount) {
this.infantInLapCount = infantInLapCount;
return this;
}
/**
* The number of passengers that are infants each assigned a seat.
* @return value or {@code null} for none
*/
public java.lang.Integer getInfantInSeatCount() {
return infantInSeatCount;
}
/**
* The number of passengers that are infants each assigned a seat.
* @param infantInSeatCount infantInSeatCount or {@code null} for none
*/
public PassengerCounts setInfantInSeatCount(java.lang.Integer infantInSeatCount) {
this.infantInSeatCount = infantInSeatCount;
return this;
}
/**
* Identifies this as a passenger count object, representing the number of passengers. Value: the
* fixed string qpxexpress#passengerCounts.
* @return value or {@code null} for none
*/
public java.lang.String getKind() {
return kind;
}
/**
* Identifies this as a passenger count object, representing the number of passengers. Value: the
* fixed string qpxexpress#passengerCounts.
* @param kind kind or {@code null} for none
*/
public PassengerCounts setKind(java.lang.String kind) {
this.kind = kind;
return this;
}
/**
* The number of passengers that are senior citizens.
* @return value or {@code null} for none
*/
public java.lang.Integer getSeniorCount() {
return seniorCount;
}
/**
* The number of passengers that are senior citizens.
* @param seniorCount seniorCount or {@code null} for none
*/
public PassengerCounts setSeniorCount(java.lang.Integer seniorCount) {
this.seniorCount = seniorCount;
return this;
}
@Override
public PassengerCounts set(String fieldName, Object value) {
return (PassengerCounts) super.set(fieldName, value);
}
@Override
public PassengerCounts clone() {
return (PassengerCounts) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy