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

/**
 * A resource that is determined to have value to a user's system
 *
 * <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 Security Command Center 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 ValuedResource extends com.google.api.client.json.GenericJson {

  /**
   * Human-readable name of the valued resource.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String displayName;

  /**
   * Exposed score for this valued resource. A value of 0 means no exposure was detected exposure.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Double exposedScore;

  /**
   * Valued resource name, for example, e.g.:
   * `organizations/123/simulations/456/valuedResources/789`
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * The [full resource
   * name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the valued
   * resource.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String resource;

  /**
   * The [resource type](https://cloud.google.com/asset-inventory/docs/supported-asset-types) of the
   * valued resource.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String resourceType;

  /**
   * How valuable this resource is.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String resourceValue;

  /**
   * List of resource value configurations' metadata used to determine the value of this resource.
   * Maximum of 100.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<ResourceValueConfigMetadata> resourceValueConfigsUsed;

  static {
    // hack to force ProGuard to consider ResourceValueConfigMetadata 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(ResourceValueConfigMetadata.class);
  }

  /**
   * Human-readable name of the valued resource.
   * @return value or {@code null} for none
   */
  public java.lang.String getDisplayName() {
    return displayName;
  }

  /**
   * Human-readable name of the valued resource.
   * @param displayName displayName or {@code null} for none
   */
  public ValuedResource setDisplayName(java.lang.String displayName) {
    this.displayName = displayName;
    return this;
  }

  /**
   * Exposed score for this valued resource. A value of 0 means no exposure was detected exposure.
   * @return value or {@code null} for none
   */
  public java.lang.Double getExposedScore() {
    return exposedScore;
  }

  /**
   * Exposed score for this valued resource. A value of 0 means no exposure was detected exposure.
   * @param exposedScore exposedScore or {@code null} for none
   */
  public ValuedResource setExposedScore(java.lang.Double exposedScore) {
    this.exposedScore = exposedScore;
    return this;
  }

  /**
   * Valued resource name, for example, e.g.:
   * `organizations/123/simulations/456/valuedResources/789`
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * Valued resource name, for example, e.g.:
   * `organizations/123/simulations/456/valuedResources/789`
   * @param name name or {@code null} for none
   */
  public ValuedResource setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * The [full resource
   * name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the valued
   * resource.
   * @return value or {@code null} for none
   */
  public java.lang.String getResource() {
    return resource;
  }

  /**
   * The [full resource
   * name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the valued
   * resource.
   * @param resource resource or {@code null} for none
   */
  public ValuedResource setResource(java.lang.String resource) {
    this.resource = resource;
    return this;
  }

  /**
   * The [resource type](https://cloud.google.com/asset-inventory/docs/supported-asset-types) of the
   * valued resource.
   * @return value or {@code null} for none
   */
  public java.lang.String getResourceType() {
    return resourceType;
  }

  /**
   * The [resource type](https://cloud.google.com/asset-inventory/docs/supported-asset-types) of the
   * valued resource.
   * @param resourceType resourceType or {@code null} for none
   */
  public ValuedResource setResourceType(java.lang.String resourceType) {
    this.resourceType = resourceType;
    return this;
  }

  /**
   * How valuable this resource is.
   * @return value or {@code null} for none
   */
  public java.lang.String getResourceValue() {
    return resourceValue;
  }

  /**
   * How valuable this resource is.
   * @param resourceValue resourceValue or {@code null} for none
   */
  public ValuedResource setResourceValue(java.lang.String resourceValue) {
    this.resourceValue = resourceValue;
    return this;
  }

  /**
   * List of resource value configurations' metadata used to determine the value of this resource.
   * Maximum of 100.
   * @return value or {@code null} for none
   */
  public java.util.List<ResourceValueConfigMetadata> getResourceValueConfigsUsed() {
    return resourceValueConfigsUsed;
  }

  /**
   * List of resource value configurations' metadata used to determine the value of this resource.
   * Maximum of 100.
   * @param resourceValueConfigsUsed resourceValueConfigsUsed or {@code null} for none
   */
  public ValuedResource setResourceValueConfigsUsed(java.util.List<ResourceValueConfigMetadata> resourceValueConfigsUsed) {
    this.resourceValueConfigsUsed = resourceValueConfigsUsed;
    return this;
  }

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

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

}
