com.google.api.services.content.model.AccountShippingCondition 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: 2015-03-26 20:30:19 UTC)
* on 2015-06-05 at 00:40:03 UTC
* Modify at your own risk.
*/
package com.google.api.services.content.model;
/**
* Model definition for AccountShippingCondition.
*
* 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 Content API for Shopping. For a detailed explanation
* see:
* http://code.google.com/p/google-http-java-client/wiki/JSON
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class AccountShippingCondition extends com.google.api.client.json.GenericJson {
/**
* Delivery location in terms of a location group name. A location group with this name must be
* specified among location groups.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String deliveryLocationGroup;
/**
* Delivery location in terms of a location ID. Can be used to represent administrative areas,
* smaller country subdivisions, or cities.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long deliveryLocationId;
/**
* Delivery location in terms of a postal code.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String deliveryPostalCode;
/**
* Delivery location in terms of a postal code range.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private AccountShippingPostalCodeRange deliveryPostalCodeRange;
/**
* Maximum shipping price. Forms an interval between the maximum of smaller prices (exclusive) and
* this price (inclusive).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Price priceMax;
/**
* Shipping label of the product. The products with the label are matched.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String shippingLabel;
/**
* Maximum shipping weight. Forms an interval between the maximum of smaller weight (exclusive)
* and this weight (inclusive).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Weight weightMax;
/**
* Delivery location in terms of a location group name. A location group with this name must be
* specified among location groups.
* @return value or {@code null} for none
*/
public java.lang.String getDeliveryLocationGroup() {
return deliveryLocationGroup;
}
/**
* Delivery location in terms of a location group name. A location group with this name must be
* specified among location groups.
* @param deliveryLocationGroup deliveryLocationGroup or {@code null} for none
*/
public AccountShippingCondition setDeliveryLocationGroup(java.lang.String deliveryLocationGroup) {
this.deliveryLocationGroup = deliveryLocationGroup;
return this;
}
/**
* Delivery location in terms of a location ID. Can be used to represent administrative areas,
* smaller country subdivisions, or cities.
* @return value or {@code null} for none
*/
public java.lang.Long getDeliveryLocationId() {
return deliveryLocationId;
}
/**
* Delivery location in terms of a location ID. Can be used to represent administrative areas,
* smaller country subdivisions, or cities.
* @param deliveryLocationId deliveryLocationId or {@code null} for none
*/
public AccountShippingCondition setDeliveryLocationId(java.lang.Long deliveryLocationId) {
this.deliveryLocationId = deliveryLocationId;
return this;
}
/**
* Delivery location in terms of a postal code.
* @return value or {@code null} for none
*/
public java.lang.String getDeliveryPostalCode() {
return deliveryPostalCode;
}
/**
* Delivery location in terms of a postal code.
* @param deliveryPostalCode deliveryPostalCode or {@code null} for none
*/
public AccountShippingCondition setDeliveryPostalCode(java.lang.String deliveryPostalCode) {
this.deliveryPostalCode = deliveryPostalCode;
return this;
}
/**
* Delivery location in terms of a postal code range.
* @return value or {@code null} for none
*/
public AccountShippingPostalCodeRange getDeliveryPostalCodeRange() {
return deliveryPostalCodeRange;
}
/**
* Delivery location in terms of a postal code range.
* @param deliveryPostalCodeRange deliveryPostalCodeRange or {@code null} for none
*/
public AccountShippingCondition setDeliveryPostalCodeRange(AccountShippingPostalCodeRange deliveryPostalCodeRange) {
this.deliveryPostalCodeRange = deliveryPostalCodeRange;
return this;
}
/**
* Maximum shipping price. Forms an interval between the maximum of smaller prices (exclusive) and
* this price (inclusive).
* @return value or {@code null} for none
*/
public Price getPriceMax() {
return priceMax;
}
/**
* Maximum shipping price. Forms an interval between the maximum of smaller prices (exclusive) and
* this price (inclusive).
* @param priceMax priceMax or {@code null} for none
*/
public AccountShippingCondition setPriceMax(Price priceMax) {
this.priceMax = priceMax;
return this;
}
/**
* Shipping label of the product. The products with the label are matched.
* @return value or {@code null} for none
*/
public java.lang.String getShippingLabel() {
return shippingLabel;
}
/**
* Shipping label of the product. The products with the label are matched.
* @param shippingLabel shippingLabel or {@code null} for none
*/
public AccountShippingCondition setShippingLabel(java.lang.String shippingLabel) {
this.shippingLabel = shippingLabel;
return this;
}
/**
* Maximum shipping weight. Forms an interval between the maximum of smaller weight (exclusive)
* and this weight (inclusive).
* @return value or {@code null} for none
*/
public Weight getWeightMax() {
return weightMax;
}
/**
* Maximum shipping weight. Forms an interval between the maximum of smaller weight (exclusive)
* and this weight (inclusive).
* @param weightMax weightMax or {@code null} for none
*/
public AccountShippingCondition setWeightMax(Weight weightMax) {
this.weightMax = weightMax;
return this;
}
@Override
public AccountShippingCondition set(String fieldName, Object value) {
return (AccountShippingCondition) super.set(fieldName, value);
}
@Override
public AccountShippingCondition clone() {
return (AccountShippingCondition) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy