/*
 * 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.model;

/**
 * Encapsulates a single SKU in Google Cloud Platform
 *
 * <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 Sku extends com.google.api.client.json.GenericJson {

  /**
   * The category hierarchy of this SKU, purely for organizational purpose.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private Category category;

  /**
   * A human readable description of the SKU, has a maximum length of 256 characters.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String description;

  /**
   * The geographic taxonomy for this sku.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GeoTaxonomy geoTaxonomy;

  /**
   * The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * A timeline of pricing info for this SKU in chronological order.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<PricingInfo> pricingInfo;

  static {
    // hack to force ProGuard to consider PricingInfo used, since otherwise it would be stripped out
    // see https://github.com/google/google-api-java-client/issues/543
    com.google.api.client.util.Data.nullOf(PricingInfo.class);
  }

  /**
   * Identifies the service provider. This is 'Google' for first party services in Google Cloud
   * Platform.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String serviceProviderName;

  /**
   * List of service regions this SKU is offered at. Example: "asia-east1" Service regions can be
   * found at https://cloud.google.com/about/locations/
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> serviceRegions;

  /**
   * The identifier for the SKU. Example: "AA95-CD31-42FE"
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String skuId;

  /**
   * The category hierarchy of this SKU, purely for organizational purpose.
   * @return value or {@code null} for none
   */
  public Category getCategory() {
    return category;
  }

  /**
   * The category hierarchy of this SKU, purely for organizational purpose.
   * @param category category or {@code null} for none
   */
  public Sku setCategory(Category category) {
    this.category = category;
    return this;
  }

  /**
   * A human readable description of the SKU, has a maximum length of 256 characters.
   * @return value or {@code null} for none
   */
  public java.lang.String getDescription() {
    return description;
  }

  /**
   * A human readable description of the SKU, has a maximum length of 256 characters.
   * @param description description or {@code null} for none
   */
  public Sku setDescription(java.lang.String description) {
    this.description = description;
    return this;
  }

  /**
   * The geographic taxonomy for this sku.
   * @return value or {@code null} for none
   */
  public GeoTaxonomy getGeoTaxonomy() {
    return geoTaxonomy;
  }

  /**
   * The geographic taxonomy for this sku.
   * @param geoTaxonomy geoTaxonomy or {@code null} for none
   */
  public Sku setGeoTaxonomy(GeoTaxonomy geoTaxonomy) {
    this.geoTaxonomy = geoTaxonomy;
    return this;
  }

  /**
   * The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
   * @param name name or {@code null} for none
   */
  public Sku setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * A timeline of pricing info for this SKU in chronological order.
   * @return value or {@code null} for none
   */
  public java.util.List<PricingInfo> getPricingInfo() {
    return pricingInfo;
  }

  /**
   * A timeline of pricing info for this SKU in chronological order.
   * @param pricingInfo pricingInfo or {@code null} for none
   */
  public Sku setPricingInfo(java.util.List<PricingInfo> pricingInfo) {
    this.pricingInfo = pricingInfo;
    return this;
  }

  /**
   * Identifies the service provider. This is 'Google' for first party services in Google Cloud
   * Platform.
   * @return value or {@code null} for none
   */
  public java.lang.String getServiceProviderName() {
    return serviceProviderName;
  }

  /**
   * Identifies the service provider. This is 'Google' for first party services in Google Cloud
   * Platform.
   * @param serviceProviderName serviceProviderName or {@code null} for none
   */
  public Sku setServiceProviderName(java.lang.String serviceProviderName) {
    this.serviceProviderName = serviceProviderName;
    return this;
  }

  /**
   * List of service regions this SKU is offered at. Example: "asia-east1" Service regions can be
   * found at https://cloud.google.com/about/locations/
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getServiceRegions() {
    return serviceRegions;
  }

  /**
   * List of service regions this SKU is offered at. Example: "asia-east1" Service regions can be
   * found at https://cloud.google.com/about/locations/
   * @param serviceRegions serviceRegions or {@code null} for none
   */
  public Sku setServiceRegions(java.util.List<java.lang.String> serviceRegions) {
    this.serviceRegions = serviceRegions;
    return this;
  }

  /**
   * The identifier for the SKU. Example: "AA95-CD31-42FE"
   * @return value or {@code null} for none
   */
  public java.lang.String getSkuId() {
    return skuId;
  }

  /**
   * The identifier for the SKU. Example: "AA95-CD31-42FE"
   * @param skuId skuId or {@code null} for none
   */
  public Sku setSkuId(java.lang.String skuId) {
    this.skuId = skuId;
    return this;
  }

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

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

}
