com.google.api.services.content.model.AccountShippingRateTable 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-01-14 17:53:03 UTC)
* on 2015-02-04 at 16:31:00 UTC
* Modify at your own risk.
*/
package com.google.api.services.content.model;
/**
* A single or bi-dimensional table of shipping rates. Each dimension is defined in terms of
* consecutive price/weight ranges, delivery locations, or shipping labels.
*
* 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 AccountShippingRateTable extends com.google.api.client.json.GenericJson {
/**
* One-dimensional table cells define one condition along the same dimension. Bi-dimensional table
* cells use two dimensions with respectively M and N distinct values and must contain exactly M *
* N cells with distinct conditions (for each possible value pairs).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List content;
static {
// hack to force ProGuard to consider AccountShippingRateTableCell 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(AccountShippingRateTableCell.class);
}
/**
* The name of the rate table.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Sale country for which this table is valid, represented as an ISO 3166-1 Alpha-2 code.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String saleCountry;
/**
* One-dimensional table cells define one condition along the same dimension. Bi-dimensional table
* cells use two dimensions with respectively M and N distinct values and must contain exactly M *
* N cells with distinct conditions (for each possible value pairs).
* @return value or {@code null} for none
*/
public java.util.List getContent() {
return content;
}
/**
* One-dimensional table cells define one condition along the same dimension. Bi-dimensional table
* cells use two dimensions with respectively M and N distinct values and must contain exactly M *
* N cells with distinct conditions (for each possible value pairs).
* @param content content or {@code null} for none
*/
public AccountShippingRateTable setContent(java.util.List content) {
this.content = content;
return this;
}
/**
* The name of the rate table.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* The name of the rate table.
* @param name name or {@code null} for none
*/
public AccountShippingRateTable setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* Sale country for which this table is valid, represented as an ISO 3166-1 Alpha-2 code.
* @return value or {@code null} for none
*/
public java.lang.String getSaleCountry() {
return saleCountry;
}
/**
* Sale country for which this table is valid, represented as an ISO 3166-1 Alpha-2 code.
* @param saleCountry saleCountry or {@code null} for none
*/
public AccountShippingRateTable setSaleCountry(java.lang.String saleCountry) {
this.saleCountry = saleCountry;
return this;
}
@Override
public AccountShippingRateTable set(String fieldName, Object value) {
return (AccountShippingRateTable) super.set(fieldName, value);
}
@Override
public AccountShippingRateTable clone() {
return (AccountShippingRateTable) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy