/*
 * 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/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.cloudbilling.v1beta.model;

/**
 * Encapsulates a price reason which contains background information about the origin of the price.
 *
 * <p> 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 Cloud Billing API. For a detailed explanation see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class GoogleCloudBillingBillingaccountpricesV1betaPriceReason extends com.google.api.client.json.GenericJson {

  /**
   * Default price which is the current list price.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudBillingBillingaccountpricesV1betaDefaultPrice defaultPrice;

  /**
   * Discount off the list price, anchored to the list price as of a fixed time.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudBillingBillingaccountpricesV1betaFixedDiscount fixedDiscount;

  /**
   * Fixed price applicable during the terms of a contract agreement.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudBillingBillingaccountpricesV1betaFixedPrice fixedPrice;

  /**
   * Discount off the current list price, not anchored to any list price as of a fixed time.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudBillingBillingaccountpricesV1betaFloatingDiscount floatingDiscount;

  /**
   * Contract feature that the list price (DefaultPrice) will be used for the price if the current
   * list price drops lower than the custom fixed price. Available to new contracts after March 21,
   * 2022. Applies to all fixed price SKUs in the contract, including FixedPrice, FixedDiscount,
   * MigratedPrice, and MergedPrice.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudBillingBillingaccountpricesV1betaListPriceAsCeiling listPriceAsCeiling;

  /**
   * Price after merging from multiple sources.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudBillingBillingaccountpricesV1betaMergedPrice mergedPrice;

  /**
   * Price migrated from other SKUs.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice migratedPrice;

  /**
   * Type of the price reason. It can values such as 'default-price', 'fixed-price', 'fixed-
   * discount', 'floating-discount', 'migrated-price', 'merged-price', 'list-price-as-ceiling'.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String type;

  /**
   * Default price which is the current list price.
   * @return value or {@code null} for none
   */
  public GoogleCloudBillingBillingaccountpricesV1betaDefaultPrice getDefaultPrice() {
    return defaultPrice;
  }

  /**
   * Default price which is the current list price.
   * @param defaultPrice defaultPrice or {@code null} for none
   */
  public GoogleCloudBillingBillingaccountpricesV1betaPriceReason setDefaultPrice(GoogleCloudBillingBillingaccountpricesV1betaDefaultPrice defaultPrice) {
    this.defaultPrice = defaultPrice;
    return this;
  }

  /**
   * Discount off the list price, anchored to the list price as of a fixed time.
   * @return value or {@code null} for none
   */
  public GoogleCloudBillingBillingaccountpricesV1betaFixedDiscount getFixedDiscount() {
    return fixedDiscount;
  }

  /**
   * Discount off the list price, anchored to the list price as of a fixed time.
   * @param fixedDiscount fixedDiscount or {@code null} for none
   */
  public GoogleCloudBillingBillingaccountpricesV1betaPriceReason setFixedDiscount(GoogleCloudBillingBillingaccountpricesV1betaFixedDiscount fixedDiscount) {
    this.fixedDiscount = fixedDiscount;
    return this;
  }

  /**
   * Fixed price applicable during the terms of a contract agreement.
   * @return value or {@code null} for none
   */
  public GoogleCloudBillingBillingaccountpricesV1betaFixedPrice getFixedPrice() {
    return fixedPrice;
  }

  /**
   * Fixed price applicable during the terms of a contract agreement.
   * @param fixedPrice fixedPrice or {@code null} for none
   */
  public GoogleCloudBillingBillingaccountpricesV1betaPriceReason setFixedPrice(GoogleCloudBillingBillingaccountpricesV1betaFixedPrice fixedPrice) {
    this.fixedPrice = fixedPrice;
    return this;
  }

  /**
   * Discount off the current list price, not anchored to any list price as of a fixed time.
   * @return value or {@code null} for none
   */
  public GoogleCloudBillingBillingaccountpricesV1betaFloatingDiscount getFloatingDiscount() {
    return floatingDiscount;
  }

  /**
   * Discount off the current list price, not anchored to any list price as of a fixed time.
   * @param floatingDiscount floatingDiscount or {@code null} for none
   */
  public GoogleCloudBillingBillingaccountpricesV1betaPriceReason setFloatingDiscount(GoogleCloudBillingBillingaccountpricesV1betaFloatingDiscount floatingDiscount) {
    this.floatingDiscount = floatingDiscount;
    return this;
  }

  /**
   * Contract feature that the list price (DefaultPrice) will be used for the price if the current
   * list price drops lower than the custom fixed price. Available to new contracts after March 21,
   * 2022. Applies to all fixed price SKUs in the contract, including FixedPrice, FixedDiscount,
   * MigratedPrice, and MergedPrice.
   * @return value or {@code null} for none
   */
  public GoogleCloudBillingBillingaccountpricesV1betaListPriceAsCeiling getListPriceAsCeiling() {
    return listPriceAsCeiling;
  }

  /**
   * Contract feature that the list price (DefaultPrice) will be used for the price if the current
   * list price drops lower than the custom fixed price. Available to new contracts after March 21,
   * 2022. Applies to all fixed price SKUs in the contract, including FixedPrice, FixedDiscount,
   * MigratedPrice, and MergedPrice.
   * @param listPriceAsCeiling listPriceAsCeiling or {@code null} for none
   */
  public GoogleCloudBillingBillingaccountpricesV1betaPriceReason setListPriceAsCeiling(GoogleCloudBillingBillingaccountpricesV1betaListPriceAsCeiling listPriceAsCeiling) {
    this.listPriceAsCeiling = listPriceAsCeiling;
    return this;
  }

  /**
   * Price after merging from multiple sources.
   * @return value or {@code null} for none
   */
  public GoogleCloudBillingBillingaccountpricesV1betaMergedPrice getMergedPrice() {
    return mergedPrice;
  }

  /**
   * Price after merging from multiple sources.
   * @param mergedPrice mergedPrice or {@code null} for none
   */
  public GoogleCloudBillingBillingaccountpricesV1betaPriceReason setMergedPrice(GoogleCloudBillingBillingaccountpricesV1betaMergedPrice mergedPrice) {
    this.mergedPrice = mergedPrice;
    return this;
  }

  /**
   * Price migrated from other SKUs.
   * @return value or {@code null} for none
   */
  public GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice getMigratedPrice() {
    return migratedPrice;
  }

  /**
   * Price migrated from other SKUs.
   * @param migratedPrice migratedPrice or {@code null} for none
   */
  public GoogleCloudBillingBillingaccountpricesV1betaPriceReason setMigratedPrice(GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice migratedPrice) {
    this.migratedPrice = migratedPrice;
    return this;
  }

  /**
   * Type of the price reason. It can values such as 'default-price', 'fixed-price', 'fixed-
   * discount', 'floating-discount', 'migrated-price', 'merged-price', 'list-price-as-ceiling'.
   * @return value or {@code null} for none
   */
  public java.lang.String getType() {
    return type;
  }

  /**
   * Type of the price reason. It can values such as 'default-price', 'fixed-price', 'fixed-
   * discount', 'floating-discount', 'migrated-price', 'merged-price', 'list-price-as-ceiling'.
   * @param type type or {@code null} for none
   */
  public GoogleCloudBillingBillingaccountpricesV1betaPriceReason setType(java.lang.String type) {
    this.type = type;
    return this;
  }

  @Override
  public GoogleCloudBillingBillingaccountpricesV1betaPriceReason set(String fieldName, Object value) {
    return (GoogleCloudBillingBillingaccountpricesV1betaPriceReason) super.set(fieldName, value);
  }

  @Override
  public GoogleCloudBillingBillingaccountpricesV1betaPriceReason clone() {
    return (GoogleCloudBillingBillingaccountpricesV1betaPriceReason) super.clone();
  }

}
