com.google.api.services.logging.v2.model.LogView 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.logging.v2.model;
/**
* Describes a view over log entries in a bucket.
*
* 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 Logging 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 LogView extends com.google.api.client.json.GenericJson {
/**
* Output only. The creation timestamp of the view.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String createTime;
/**
* Optional. Describes this view.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String description;
/**
* Optional. Filter that restricts which log entries in a bucket are visible in this view.Filters
* must be logical conjunctions that use the AND operator, and they can use any of the following
* qualifiers: SOURCE(), which specifies a project, folder, organization, or billing account of
* origin. resource.type, which specifies the resource type. LOG_ID(), which identifies the
* log.They can also use the negations of these qualifiers with the NOT operator.For
* example:SOURCE("projects/myproject") AND resource.type = "gce_instance" AND NOT
* LOG_ID("stdout")
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String filter;
/**
* Output only. The resource name of the view.For example:projects/my-
* project/locations/global/buckets/my-bucket/views/my-view
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Output only. The last update timestamp of the view.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String updateTime;
/**
* Output only. The creation timestamp of the view.
* @return value or {@code null} for none
*/
public String getCreateTime() {
return createTime;
}
/**
* Output only. The creation timestamp of the view.
* @param createTime createTime or {@code null} for none
*/
public LogView setCreateTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* Optional. Describes this view.
* @return value or {@code null} for none
*/
public java.lang.String getDescription() {
return description;
}
/**
* Optional. Describes this view.
* @param description description or {@code null} for none
*/
public LogView setDescription(java.lang.String description) {
this.description = description;
return this;
}
/**
* Optional. Filter that restricts which log entries in a bucket are visible in this view.Filters
* must be logical conjunctions that use the AND operator, and they can use any of the following
* qualifiers: SOURCE(), which specifies a project, folder, organization, or billing account of
* origin. resource.type, which specifies the resource type. LOG_ID(), which identifies the
* log.They can also use the negations of these qualifiers with the NOT operator.For
* example:SOURCE("projects/myproject") AND resource.type = "gce_instance" AND NOT
* LOG_ID("stdout")
* @return value or {@code null} for none
*/
public java.lang.String getFilter() {
return filter;
}
/**
* Optional. Filter that restricts which log entries in a bucket are visible in this view.Filters
* must be logical conjunctions that use the AND operator, and they can use any of the following
* qualifiers: SOURCE(), which specifies a project, folder, organization, or billing account of
* origin. resource.type, which specifies the resource type. LOG_ID(), which identifies the
* log.They can also use the negations of these qualifiers with the NOT operator.For
* example:SOURCE("projects/myproject") AND resource.type = "gce_instance" AND NOT
* LOG_ID("stdout")
* @param filter filter or {@code null} for none
*/
public LogView setFilter(java.lang.String filter) {
this.filter = filter;
return this;
}
/**
* Output only. The resource name of the view.For example:projects/my-
* project/locations/global/buckets/my-bucket/views/my-view
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* Output only. The resource name of the view.For example:projects/my-
* project/locations/global/buckets/my-bucket/views/my-view
* @param name name or {@code null} for none
*/
public LogView setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* Output only. The last update timestamp of the view.
* @return value or {@code null} for none
*/
public String getUpdateTime() {
return updateTime;
}
/**
* Output only. The last update timestamp of the view.
* @param updateTime updateTime or {@code null} for none
*/
public LogView setUpdateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
@Override
public LogView set(String fieldName, Object value) {
return (LogView) super.set(fieldName, value);
}
@Override
public LogView clone() {
return (LogView) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy