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

com.google.api.services.cloudasset.v1.model.VersionedResource 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;

/**
 * Resource representation as defined by the corresponding service providing the resource for a
 * given API version.
 *
 * 

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 VersionedResource extends com.google.api.client.json.GenericJson { /** * JSON representation of the resource as defined by the corresponding service providing this * resource. Example: If the resource is an instance provided by Compute Engine, this field will * contain the JSON representation of the instance as defined by Compute Engine: * `https://cloud.google.com/compute/docs/reference/rest/v1/instances`. You can find the resource * definition for each supported resource type in this table: `https://cloud.google.com/asset- * inventory/docs/supported-asset-types` * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map resource; /** * API version of the resource. Example: If the resource is an instance provided by Compute Engine * v1 API as defined in `https://cloud.google.com/compute/docs/reference/rest/v1/instances`, * version will be "v1". * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String version; /** * JSON representation of the resource as defined by the corresponding service providing this * resource. Example: If the resource is an instance provided by Compute Engine, this field will * contain the JSON representation of the instance as defined by Compute Engine: * `https://cloud.google.com/compute/docs/reference/rest/v1/instances`. You can find the resource * definition for each supported resource type in this table: `https://cloud.google.com/asset- * inventory/docs/supported-asset-types` * @return value or {@code null} for none */ public java.util.Map getResource() { return resource; } /** * JSON representation of the resource as defined by the corresponding service providing this * resource. Example: If the resource is an instance provided by Compute Engine, this field will * contain the JSON representation of the instance as defined by Compute Engine: * `https://cloud.google.com/compute/docs/reference/rest/v1/instances`. You can find the resource * definition for each supported resource type in this table: `https://cloud.google.com/asset- * inventory/docs/supported-asset-types` * @param resource resource or {@code null} for none */ public VersionedResource setResource(java.util.Map resource) { this.resource = resource; return this; } /** * API version of the resource. Example: If the resource is an instance provided by Compute Engine * v1 API as defined in `https://cloud.google.com/compute/docs/reference/rest/v1/instances`, * version will be "v1". * @return value or {@code null} for none */ public java.lang.String getVersion() { return version; } /** * API version of the resource. Example: If the resource is an instance provided by Compute Engine * v1 API as defined in `https://cloud.google.com/compute/docs/reference/rest/v1/instances`, * version will be "v1". * @param version version or {@code null} for none */ public VersionedResource setVersion(java.lang.String version) { this.version = version; return this; } @Override public VersionedResource set(String fieldName, Object value) { return (VersionedResource) super.set(fieldName, value); } @Override public VersionedResource clone() { return (VersionedResource) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy