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

com.google.api.services.content.model.AccountShippingShippingServiceCostRule 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;

/**
 * Building block of the cost calculation decision tree. - The tree root should have no condition
 * and no calculation method. - All the children must have a condition on the same dimension. The
 * first child matching a condition is entered, therefore, price and weight conditions form
 * contiguous intervals. - The last child of an element must have no condition and matches all
 * elements not previously matched. - Children and calculation method are mutually exclusive, and
 * exactly one of them must be defined; the root must only have children.
 *
 * 

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 AccountShippingShippingServiceCostRule extends com.google.api.client.json.GenericJson { /** * Final calculation method to be used only in leaf nodes. * The value may be {@code null}. */ @com.google.api.client.util.Key private AccountShippingShippingServiceCalculationMethod calculationMethod; /** * Subsequent rules to be applied, only for inner nodes. The last child must not specify a * condition and acts as a catch-all. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List children; /** * Condition for this rule to be applicable. If no condition is specified, the rule acts as a * catch-all. * The value may be {@code null}. */ @com.google.api.client.util.Key private AccountShippingCondition condition; /** * Final calculation method to be used only in leaf nodes. * @return value or {@code null} for none */ public AccountShippingShippingServiceCalculationMethod getCalculationMethod() { return calculationMethod; } /** * Final calculation method to be used only in leaf nodes. * @param calculationMethod calculationMethod or {@code null} for none */ public AccountShippingShippingServiceCostRule setCalculationMethod(AccountShippingShippingServiceCalculationMethod calculationMethod) { this.calculationMethod = calculationMethod; return this; } /** * Subsequent rules to be applied, only for inner nodes. The last child must not specify a * condition and acts as a catch-all. * @return value or {@code null} for none */ public java.util.List getChildren() { return children; } /** * Subsequent rules to be applied, only for inner nodes. The last child must not specify a * condition and acts as a catch-all. * @param children children or {@code null} for none */ public AccountShippingShippingServiceCostRule setChildren(java.util.List children) { this.children = children; return this; } /** * Condition for this rule to be applicable. If no condition is specified, the rule acts as a * catch-all. * @return value or {@code null} for none */ public AccountShippingCondition getCondition() { return condition; } /** * Condition for this rule to be applicable. If no condition is specified, the rule acts as a * catch-all. * @param condition condition or {@code null} for none */ public AccountShippingShippingServiceCostRule setCondition(AccountShippingCondition condition) { this.condition = condition; return this; } @Override public AccountShippingShippingServiceCostRule set(String fieldName, Object value) { return (AccountShippingShippingServiceCostRule) super.set(fieldName, value); } @Override public AccountShippingShippingServiceCostRule clone() { return (AccountShippingShippingServiceCostRule) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy