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

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

The newest version!
/*
 * 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;

/**
 * A saved query which can be shared with others or used later.
 *
 * 

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 SavedQuery extends com.google.api.client.json.GenericJson { /** * The query content. * The value may be {@code null}. */ @com.google.api.client.util.Key private QueryContent content; /** * Output only. The create time of this saved query. * The value may be {@code null}. */ @com.google.api.client.util.Key private String createTime; /** * Output only. The account's email address who has created this saved query. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String creator; /** * The description of this saved query. This value should be fewer than 255 characters. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** * Labels applied on the resource. This value should not contain more than 10 entries. The key and * value of each entry must be non-empty and fewer than 64 characters. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map labels; /** * Output only. The last update time of this saved query. * The value may be {@code null}. */ @com.google.api.client.util.Key private String lastUpdateTime; /** * Output only. The account's email address who has updated this saved query most recently. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String lastUpdater; /** * The resource name of the saved query. The format must be: * * projects/project_number/savedQueries/saved_query_id * * folders/folder_number/savedQueries/saved_query_id * * organizations/organization_number/savedQueries/saved_query_id * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * The query content. * @return value or {@code null} for none */ public QueryContent getContent() { return content; } /** * The query content. * @param content content or {@code null} for none */ public SavedQuery setContent(QueryContent content) { this.content = content; return this; } /** * Output only. The create time of this saved query. * @return value or {@code null} for none */ public String getCreateTime() { return createTime; } /** * Output only. The create time of this saved query. * @param createTime createTime or {@code null} for none */ public SavedQuery setCreateTime(String createTime) { this.createTime = createTime; return this; } /** * Output only. The account's email address who has created this saved query. * @return value or {@code null} for none */ public java.lang.String getCreator() { return creator; } /** * Output only. The account's email address who has created this saved query. * @param creator creator or {@code null} for none */ public SavedQuery setCreator(java.lang.String creator) { this.creator = creator; return this; } /** * The description of this saved query. This value should be fewer than 255 characters. * @return value or {@code null} for none */ public java.lang.String getDescription() { return description; } /** * The description of this saved query. This value should be fewer than 255 characters. * @param description description or {@code null} for none */ public SavedQuery setDescription(java.lang.String description) { this.description = description; return this; } /** * Labels applied on the resource. This value should not contain more than 10 entries. The key and * value of each entry must be non-empty and fewer than 64 characters. * @return value or {@code null} for none */ public java.util.Map getLabels() { return labels; } /** * Labels applied on the resource. This value should not contain more than 10 entries. The key and * value of each entry must be non-empty and fewer than 64 characters. * @param labels labels or {@code null} for none */ public SavedQuery setLabels(java.util.Map labels) { this.labels = labels; return this; } /** * Output only. The last update time of this saved query. * @return value or {@code null} for none */ public String getLastUpdateTime() { return lastUpdateTime; } /** * Output only. The last update time of this saved query. * @param lastUpdateTime lastUpdateTime or {@code null} for none */ public SavedQuery setLastUpdateTime(String lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; return this; } /** * Output only. The account's email address who has updated this saved query most recently. * @return value or {@code null} for none */ public java.lang.String getLastUpdater() { return lastUpdater; } /** * Output only. The account's email address who has updated this saved query most recently. * @param lastUpdater lastUpdater or {@code null} for none */ public SavedQuery setLastUpdater(java.lang.String lastUpdater) { this.lastUpdater = lastUpdater; return this; } /** * The resource name of the saved query. The format must be: * * projects/project_number/savedQueries/saved_query_id * * folders/folder_number/savedQueries/saved_query_id * * organizations/organization_number/savedQueries/saved_query_id * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * The resource name of the saved query. The format must be: * * projects/project_number/savedQueries/saved_query_id * * folders/folder_number/savedQueries/saved_query_id * * organizations/organization_number/savedQueries/saved_query_id * @param name name or {@code null} for none */ public SavedQuery setName(java.lang.String name) { this.name = name; return this; } @Override public SavedQuery set(String fieldName, Object value) { return (SavedQuery) super.set(fieldName, value); } @Override public SavedQuery clone() { return (SavedQuery) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy