com.google.api.services.qpxExpress.model.FreeBaggageAllowance 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;
/**
* Information about free baggage allowed on one segment of a trip.
*
* 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 FreeBaggageAllowance extends com.google.api.client.json.GenericJson {
/**
* A representation of a type of bag, such as an ATPCo subcode, Commercial Name, or other
* description.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List bagDescriptor;
static {
// hack to force ProGuard to consider BagDescriptor used, since otherwise it would be stripped out
// see http://code.google.com/p/google-api-java-client/issues/detail?id=528
com.google.api.client.util.Data.nullOf(BagDescriptor.class);
}
/**
* The maximum number of kilos all the free baggage together may weigh.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer kilos;
/**
* The maximum number of kilos any one piece of baggage may weigh.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer kilosPerPiece;
/**
* Identifies this as free baggage object, allowed on one segment of a trip. Value: the fixed
* string qpxexpress#freeBaggageAllowance.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kind;
/**
* The number of free pieces of baggage allowed.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer pieces;
/**
* The number of pounds of free baggage allowed.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer pounds;
/**
* A representation of a type of bag, such as an ATPCo subcode, Commercial Name, or other
* description.
* @return value or {@code null} for none
*/
public java.util.List getBagDescriptor() {
return bagDescriptor;
}
/**
* A representation of a type of bag, such as an ATPCo subcode, Commercial Name, or other
* description.
* @param bagDescriptor bagDescriptor or {@code null} for none
*/
public FreeBaggageAllowance setBagDescriptor(java.util.List bagDescriptor) {
this.bagDescriptor = bagDescriptor;
return this;
}
/**
* The maximum number of kilos all the free baggage together may weigh.
* @return value or {@code null} for none
*/
public java.lang.Integer getKilos() {
return kilos;
}
/**
* The maximum number of kilos all the free baggage together may weigh.
* @param kilos kilos or {@code null} for none
*/
public FreeBaggageAllowance setKilos(java.lang.Integer kilos) {
this.kilos = kilos;
return this;
}
/**
* The maximum number of kilos any one piece of baggage may weigh.
* @return value or {@code null} for none
*/
public java.lang.Integer getKilosPerPiece() {
return kilosPerPiece;
}
/**
* The maximum number of kilos any one piece of baggage may weigh.
* @param kilosPerPiece kilosPerPiece or {@code null} for none
*/
public FreeBaggageAllowance setKilosPerPiece(java.lang.Integer kilosPerPiece) {
this.kilosPerPiece = kilosPerPiece;
return this;
}
/**
* Identifies this as free baggage object, allowed on one segment of a trip. Value: the fixed
* string qpxexpress#freeBaggageAllowance.
* @return value or {@code null} for none
*/
public java.lang.String getKind() {
return kind;
}
/**
* Identifies this as free baggage object, allowed on one segment of a trip. Value: the fixed
* string qpxexpress#freeBaggageAllowance.
* @param kind kind or {@code null} for none
*/
public FreeBaggageAllowance setKind(java.lang.String kind) {
this.kind = kind;
return this;
}
/**
* The number of free pieces of baggage allowed.
* @return value or {@code null} for none
*/
public java.lang.Integer getPieces() {
return pieces;
}
/**
* The number of free pieces of baggage allowed.
* @param pieces pieces or {@code null} for none
*/
public FreeBaggageAllowance setPieces(java.lang.Integer pieces) {
this.pieces = pieces;
return this;
}
/**
* The number of pounds of free baggage allowed.
* @return value or {@code null} for none
*/
public java.lang.Integer getPounds() {
return pounds;
}
/**
* The number of pounds of free baggage allowed.
* @param pounds pounds or {@code null} for none
*/
public FreeBaggageAllowance setPounds(java.lang.Integer pounds) {
this.pounds = pounds;
return this;
}
@Override
public FreeBaggageAllowance set(String fieldName, Object value) {
return (FreeBaggageAllowance) super.set(fieldName, value);
}
@Override
public FreeBaggageAllowance clone() {
return (FreeBaggageAllowance) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy