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

/**
 * Security Command Center representation of a Google Cloud resource. The Asset is a Security
 * Command Center resource that captures information about a single Google Cloud resource. All
 * modifications to an Asset are only within the context of Security Command Center and don't affect
 * the referenced Google Cloud resource.
 *
 * <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 Asset extends com.google.api.client.json.GenericJson {

  /**
   * The time at which the asset was created in Security Command Center.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String createTime;

  /**
   * The relative resource name of this asset. See:
   * https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
   * "organizations/{organization_id}/assets/{asset_id}".
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * Resource managed properties. These properties are managed and defined by the Google Cloud
   * resource and cannot be modified by the user.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.Map<String, java.lang.Object> resourceProperties;

  /**
   * Security Command Center managed properties. These properties are managed by Security Command
   * Center and cannot be modified by the user.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private SecurityCenterProperties securityCenterProperties;

  /**
   * User specified security marks. These marks are entirely managed by the user and come from the
   * SecurityMarks resource that belongs to the asset.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudSecuritycenterV1beta1SecurityMarks securityMarks;

  /**
   * The time at which the asset was last updated, added, or deleted in Security Command Center.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String updateTime;

  /**
   * The time at which the asset was created in Security Command Center.
   * @return value or {@code null} for none
   */
  public String getCreateTime() {
    return createTime;
  }

  /**
   * The time at which the asset was created in Security Command Center.
   * @param createTime createTime or {@code null} for none
   */
  public Asset setCreateTime(String createTime) {
    this.createTime = createTime;
    return this;
  }

  /**
   * The relative resource name of this asset. See:
   * https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
   * "organizations/{organization_id}/assets/{asset_id}".
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * The relative resource name of this asset. See:
   * https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
   * "organizations/{organization_id}/assets/{asset_id}".
   * @param name name or {@code null} for none
   */
  public Asset setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * Resource managed properties. These properties are managed and defined by the Google Cloud
   * resource and cannot be modified by the user.
   * @return value or {@code null} for none
   */
  public java.util.Map<String, java.lang.Object> getResourceProperties() {
    return resourceProperties;
  }

  /**
   * Resource managed properties. These properties are managed and defined by the Google Cloud
   * resource and cannot be modified by the user.
   * @param resourceProperties resourceProperties or {@code null} for none
   */
  public Asset setResourceProperties(java.util.Map<String, java.lang.Object> resourceProperties) {
    this.resourceProperties = resourceProperties;
    return this;
  }

  /**
   * Security Command Center managed properties. These properties are managed by Security Command
   * Center and cannot be modified by the user.
   * @return value or {@code null} for none
   */
  public SecurityCenterProperties getSecurityCenterProperties() {
    return securityCenterProperties;
  }

  /**
   * Security Command Center managed properties. These properties are managed by Security Command
   * Center and cannot be modified by the user.
   * @param securityCenterProperties securityCenterProperties or {@code null} for none
   */
  public Asset setSecurityCenterProperties(SecurityCenterProperties securityCenterProperties) {
    this.securityCenterProperties = securityCenterProperties;
    return this;
  }

  /**
   * User specified security marks. These marks are entirely managed by the user and come from the
   * SecurityMarks resource that belongs to the asset.
   * @return value or {@code null} for none
   */
  public GoogleCloudSecuritycenterV1beta1SecurityMarks getSecurityMarks() {
    return securityMarks;
  }

  /**
   * User specified security marks. These marks are entirely managed by the user and come from the
   * SecurityMarks resource that belongs to the asset.
   * @param securityMarks securityMarks or {@code null} for none
   */
  public Asset setSecurityMarks(GoogleCloudSecuritycenterV1beta1SecurityMarks securityMarks) {
    this.securityMarks = securityMarks;
    return this;
  }

  /**
   * The time at which the asset was last updated, added, or deleted in Security Command Center.
   * @return value or {@code null} for none
   */
  public String getUpdateTime() {
    return updateTime;
  }

  /**
   * The time at which the asset was last updated, added, or deleted in Security Command Center.
   * @param updateTime updateTime or {@code null} for none
   */
  public Asset setUpdateTime(String updateTime) {
    this.updateTime = updateTime;
    return this;
  }

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

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

}
