com.google.api.services.content.model.AccountShippingShippingService 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://github.com/google/apis-client-generator/
* (build: 2016-10-17 16:43:55 UTC)
* on 2016-10-25 at 15:09:01 UTC
* Modify at your own risk.
*/
package com.google.api.services.content.model;
/**
* Shipping services provided in a country.
*
* 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:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class AccountShippingShippingService extends com.google.api.client.json.GenericJson {
/**
* Whether the shipping service is available.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean active;
/**
* Calculation method for the "simple" case that needs no rules.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private AccountShippingShippingServiceCalculationMethod calculationMethod;
/**
* Decision tree for "complicated" shipping cost calculation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private AccountShippingShippingServiceCostRule costRuleTree;
/**
* The maximum number of days in transit. Must be a value between 0 and 250 included. A value of 0
* means same day delivery.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.math.BigInteger maxDaysInTransit;
/**
* The minimum number of days in transit. Must be a value between 0 and maxDaysIntransit included.
* A value of 0 means same day delivery.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.math.BigInteger minDaysInTransit;
/**
* The name of this shipping service.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* The CLDR territory code of the sale country for which this service can be used.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String saleCountry;
/**
* Whether the shipping service is available.
* @return value or {@code null} for none
*/
public java.lang.Boolean getActive() {
return active;
}
/**
* Whether the shipping service is available.
* @param active active or {@code null} for none
*/
public AccountShippingShippingService setActive(java.lang.Boolean active) {
this.active = active;
return this;
}
/**
* Calculation method for the "simple" case that needs no rules.
* @return value or {@code null} for none
*/
public AccountShippingShippingServiceCalculationMethod getCalculationMethod() {
return calculationMethod;
}
/**
* Calculation method for the "simple" case that needs no rules.
* @param calculationMethod calculationMethod or {@code null} for none
*/
public AccountShippingShippingService setCalculationMethod(AccountShippingShippingServiceCalculationMethod calculationMethod) {
this.calculationMethod = calculationMethod;
return this;
}
/**
* Decision tree for "complicated" shipping cost calculation.
* @return value or {@code null} for none
*/
public AccountShippingShippingServiceCostRule getCostRuleTree() {
return costRuleTree;
}
/**
* Decision tree for "complicated" shipping cost calculation.
* @param costRuleTree costRuleTree or {@code null} for none
*/
public AccountShippingShippingService setCostRuleTree(AccountShippingShippingServiceCostRule costRuleTree) {
this.costRuleTree = costRuleTree;
return this;
}
/**
* The maximum number of days in transit. Must be a value between 0 and 250 included. A value of 0
* means same day delivery.
* @return value or {@code null} for none
*/
public java.math.BigInteger getMaxDaysInTransit() {
return maxDaysInTransit;
}
/**
* The maximum number of days in transit. Must be a value between 0 and 250 included. A value of 0
* means same day delivery.
* @param maxDaysInTransit maxDaysInTransit or {@code null} for none
*/
public AccountShippingShippingService setMaxDaysInTransit(java.math.BigInteger maxDaysInTransit) {
this.maxDaysInTransit = maxDaysInTransit;
return this;
}
/**
* The minimum number of days in transit. Must be a value between 0 and maxDaysIntransit included.
* A value of 0 means same day delivery.
* @return value or {@code null} for none
*/
public java.math.BigInteger getMinDaysInTransit() {
return minDaysInTransit;
}
/**
* The minimum number of days in transit. Must be a value between 0 and maxDaysIntransit included.
* A value of 0 means same day delivery.
* @param minDaysInTransit minDaysInTransit or {@code null} for none
*/
public AccountShippingShippingService setMinDaysInTransit(java.math.BigInteger minDaysInTransit) {
this.minDaysInTransit = minDaysInTransit;
return this;
}
/**
* The name of this shipping service.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* The name of this shipping service.
* @param name name or {@code null} for none
*/
public AccountShippingShippingService setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* The CLDR territory code of the sale country for which this service can be used.
* @return value or {@code null} for none
*/
public java.lang.String getSaleCountry() {
return saleCountry;
}
/**
* The CLDR territory code of the sale country for which this service can be used.
* @param saleCountry saleCountry or {@code null} for none
*/
public AccountShippingShippingService setSaleCountry(java.lang.String saleCountry) {
this.saleCountry = saleCountry;
return this;
}
@Override
public AccountShippingShippingService set(String fieldName, Object value) {
return (AccountShippingShippingService) super.set(fieldName, value);
}
@Override
public AccountShippingShippingService clone() {
return (AccountShippingShippingService) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy