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://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;
/**
* 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:
* http://code.google.com/p/google-http-java-client/wiki/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 name of this shipping service.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Sale country for which this service can be used, 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;
/**
* 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 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;
}
/**
* Sale country for which this service can be used, 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 service can be used, represented as an ISO 3166-1 Alpha-2 code.
* @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