All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.qpxExpress.model.SliceInput 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;

/**
 * Criteria a desired slice must satisfy.
 *
 * 

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 SliceInput extends com.google.api.client.json.GenericJson { /** * Slices with only the carriers in this alliance should be returned; do not use this field with * permittedCarrier. Allowed values are ONEWORLD, SKYTEAM, and STAR. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String alliance; /** * Departure date in YYYY-MM-DD format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String date; /** * Airport or city IATA designator of the destination. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String destination; /** * Identifies this as a slice input object, representing the criteria a desired slice must * satisfy. Value: the fixed string qpxexpress#sliceInput. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** * The longest connection between two legs, in minutes, you are willing to accept. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer maxConnectionDuration; /** * The maximum number of stops you are willing to accept in this slice. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer maxStops; /** * Airport or city IATA designator of the origin. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String origin; /** * A list of 2-letter IATA airline designators. Slices with only these carriers should be * returned. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List permittedCarrier; /** * Slices must depart in this time of day range, local to the point of departure. * The value may be {@code null}. */ @com.google.api.client.util.Key private TimeOfDayRange permittedDepartureTime; /** * Prefer solutions that book in this cabin for this slice. Allowed values are COACH, * PREMIUM_COACH, BUSINESS, and FIRST. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String preferredCabin; /** * A list of 2-letter IATA airline designators. Exclude slices that use these carriers. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List prohibitedCarrier; /** * Slices with only the carriers in this alliance should be returned; do not use this field with * permittedCarrier. Allowed values are ONEWORLD, SKYTEAM, and STAR. * @return value or {@code null} for none */ public java.lang.String getAlliance() { return alliance; } /** * Slices with only the carriers in this alliance should be returned; do not use this field with * permittedCarrier. Allowed values are ONEWORLD, SKYTEAM, and STAR. * @param alliance alliance or {@code null} for none */ public SliceInput setAlliance(java.lang.String alliance) { this.alliance = alliance; return this; } /** * Departure date in YYYY-MM-DD format. * @return value or {@code null} for none */ public java.lang.String getDate() { return date; } /** * Departure date in YYYY-MM-DD format. * @param date date or {@code null} for none */ public SliceInput setDate(java.lang.String date) { this.date = date; return this; } /** * Airport or city IATA designator of the destination. * @return value or {@code null} for none */ public java.lang.String getDestination() { return destination; } /** * Airport or city IATA designator of the destination. * @param destination destination or {@code null} for none */ public SliceInput setDestination(java.lang.String destination) { this.destination = destination; return this; } /** * Identifies this as a slice input object, representing the criteria a desired slice must * satisfy. Value: the fixed string qpxexpress#sliceInput. * @return value or {@code null} for none */ public java.lang.String getKind() { return kind; } /** * Identifies this as a slice input object, representing the criteria a desired slice must * satisfy. Value: the fixed string qpxexpress#sliceInput. * @param kind kind or {@code null} for none */ public SliceInput setKind(java.lang.String kind) { this.kind = kind; return this; } /** * The longest connection between two legs, in minutes, you are willing to accept. * @return value or {@code null} for none */ public java.lang.Integer getMaxConnectionDuration() { return maxConnectionDuration; } /** * The longest connection between two legs, in minutes, you are willing to accept. * @param maxConnectionDuration maxConnectionDuration or {@code null} for none */ public SliceInput setMaxConnectionDuration(java.lang.Integer maxConnectionDuration) { this.maxConnectionDuration = maxConnectionDuration; return this; } /** * The maximum number of stops you are willing to accept in this slice. * @return value or {@code null} for none */ public java.lang.Integer getMaxStops() { return maxStops; } /** * The maximum number of stops you are willing to accept in this slice. * @param maxStops maxStops or {@code null} for none */ public SliceInput setMaxStops(java.lang.Integer maxStops) { this.maxStops = maxStops; return this; } /** * Airport or city IATA designator of the origin. * @return value or {@code null} for none */ public java.lang.String getOrigin() { return origin; } /** * Airport or city IATA designator of the origin. * @param origin origin or {@code null} for none */ public SliceInput setOrigin(java.lang.String origin) { this.origin = origin; return this; } /** * A list of 2-letter IATA airline designators. Slices with only these carriers should be * returned. * @return value or {@code null} for none */ public java.util.List getPermittedCarrier() { return permittedCarrier; } /** * A list of 2-letter IATA airline designators. Slices with only these carriers should be * returned. * @param permittedCarrier permittedCarrier or {@code null} for none */ public SliceInput setPermittedCarrier(java.util.List permittedCarrier) { this.permittedCarrier = permittedCarrier; return this; } /** * Slices must depart in this time of day range, local to the point of departure. * @return value or {@code null} for none */ public TimeOfDayRange getPermittedDepartureTime() { return permittedDepartureTime; } /** * Slices must depart in this time of day range, local to the point of departure. * @param permittedDepartureTime permittedDepartureTime or {@code null} for none */ public SliceInput setPermittedDepartureTime(TimeOfDayRange permittedDepartureTime) { this.permittedDepartureTime = permittedDepartureTime; return this; } /** * Prefer solutions that book in this cabin for this slice. Allowed values are COACH, * PREMIUM_COACH, BUSINESS, and FIRST. * @return value or {@code null} for none */ public java.lang.String getPreferredCabin() { return preferredCabin; } /** * Prefer solutions that book in this cabin for this slice. Allowed values are COACH, * PREMIUM_COACH, BUSINESS, and FIRST. * @param preferredCabin preferredCabin or {@code null} for none */ public SliceInput setPreferredCabin(java.lang.String preferredCabin) { this.preferredCabin = preferredCabin; return this; } /** * A list of 2-letter IATA airline designators. Exclude slices that use these carriers. * @return value or {@code null} for none */ public java.util.List getProhibitedCarrier() { return prohibitedCarrier; } /** * A list of 2-letter IATA airline designators. Exclude slices that use these carriers. * @param prohibitedCarrier prohibitedCarrier or {@code null} for none */ public SliceInput setProhibitedCarrier(java.util.List prohibitedCarrier) { this.prohibitedCarrier = prohibitedCarrier; return this; } @Override public SliceInput set(String fieldName, Object value) { return (SliceInput) super.set(fieldName, value); } @Override public SliceInput clone() { return (SliceInput) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy