All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.cloudasset.v1.model.TemporalAsset Maven / Gradle / Ivy

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

/**
 * An asset in Google Cloud and its temporal metadata, including the time window when it was
 * observed and its status during that window.
 *
 * 

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 Asset API. For a detailed explanation see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class TemporalAsset extends com.google.api.client.json.GenericJson { /** * An asset in Google Cloud. * The value may be {@code null}. */ @com.google.api.client.util.Key private Asset asset; /** * Whether the asset has been deleted or not. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean deleted; /** * Prior copy of the asset. Populated if prior_asset_state is PRESENT. Currently this is only set * for responses in Real-Time Feed. * The value may be {@code null}. */ @com.google.api.client.util.Key private Asset priorAsset; /** * State of prior_asset. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String priorAssetState; /** * The time window when the asset data and state was observed. * The value may be {@code null}. */ @com.google.api.client.util.Key private TimeWindow window; /** * An asset in Google Cloud. * @return value or {@code null} for none */ public Asset getAsset() { return asset; } /** * An asset in Google Cloud. * @param asset asset or {@code null} for none */ public TemporalAsset setAsset(Asset asset) { this.asset = asset; return this; } /** * Whether the asset has been deleted or not. * @return value or {@code null} for none */ public java.lang.Boolean getDeleted() { return deleted; } /** * Whether the asset has been deleted or not. * @param deleted deleted or {@code null} for none */ public TemporalAsset setDeleted(java.lang.Boolean deleted) { this.deleted = deleted; return this; } /** * Prior copy of the asset. Populated if prior_asset_state is PRESENT. Currently this is only set * for responses in Real-Time Feed. * @return value or {@code null} for none */ public Asset getPriorAsset() { return priorAsset; } /** * Prior copy of the asset. Populated if prior_asset_state is PRESENT. Currently this is only set * for responses in Real-Time Feed. * @param priorAsset priorAsset or {@code null} for none */ public TemporalAsset setPriorAsset(Asset priorAsset) { this.priorAsset = priorAsset; return this; } /** * State of prior_asset. * @return value or {@code null} for none */ public java.lang.String getPriorAssetState() { return priorAssetState; } /** * State of prior_asset. * @param priorAssetState priorAssetState or {@code null} for none */ public TemporalAsset setPriorAssetState(java.lang.String priorAssetState) { this.priorAssetState = priorAssetState; return this; } /** * The time window when the asset data and state was observed. * @return value or {@code null} for none */ public TimeWindow getWindow() { return window; } /** * The time window when the asset data and state was observed. * @param window window or {@code null} for none */ public TemporalAsset setWindow(TimeWindow window) { this.window = window; return this; } @Override public TemporalAsset set(String fieldName, Object value) { return (TemporalAsset) super.set(fieldName, value); } @Override public TemporalAsset clone() { return (TemporalAsset) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy