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

/**
 * Information about the value field. Only support value type as service now.
 *
 * <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 Service Usage 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 ValueInfo extends com.google.api.client.json.GenericJson {

  /**
   * The information related to the value if it is a service group.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GroupValue groupValue;

  /**
   * For public services, it must point to the product landing page. For private services, it should
   * point to the internal site. For service group, it is TBD.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String learnmoreLink;

  /**
   * The information related to the value if it is a service.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private ServiceValue serviceValue;

  /**
   * The product summary for this value.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String summary;

  /**
   * The product title for this value.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String title;

  /**
   * The information related to the value if it is a service group.
   * @return value or {@code null} for none
   */
  public GroupValue getGroupValue() {
    return groupValue;
  }

  /**
   * The information related to the value if it is a service group.
   * @param groupValue groupValue or {@code null} for none
   */
  public ValueInfo setGroupValue(GroupValue groupValue) {
    this.groupValue = groupValue;
    return this;
  }

  /**
   * For public services, it must point to the product landing page. For private services, it should
   * point to the internal site. For service group, it is TBD.
   * @return value or {@code null} for none
   */
  public java.lang.String getLearnmoreLink() {
    return learnmoreLink;
  }

  /**
   * For public services, it must point to the product landing page. For private services, it should
   * point to the internal site. For service group, it is TBD.
   * @param learnmoreLink learnmoreLink or {@code null} for none
   */
  public ValueInfo setLearnmoreLink(java.lang.String learnmoreLink) {
    this.learnmoreLink = learnmoreLink;
    return this;
  }

  /**
   * The information related to the value if it is a service.
   * @return value or {@code null} for none
   */
  public ServiceValue getServiceValue() {
    return serviceValue;
  }

  /**
   * The information related to the value if it is a service.
   * @param serviceValue serviceValue or {@code null} for none
   */
  public ValueInfo setServiceValue(ServiceValue serviceValue) {
    this.serviceValue = serviceValue;
    return this;
  }

  /**
   * The product summary for this value.
   * @return value or {@code null} for none
   */
  public java.lang.String getSummary() {
    return summary;
  }

  /**
   * The product summary for this value.
   * @param summary summary or {@code null} for none
   */
  public ValueInfo setSummary(java.lang.String summary) {
    this.summary = summary;
    return this;
  }

  /**
   * The product title for this value.
   * @return value or {@code null} for none
   */
  public java.lang.String getTitle() {
    return title;
  }

  /**
   * The product title for this value.
   * @param title title or {@code null} for none
   */
  public ValueInfo setTitle(java.lang.String title) {
    this.title = title;
    return this;
  }

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

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

}
