com.google.api.services.securitycenter.v1.model.CloudLoggingEntry 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.securitycenter.v1.model;
/**
* Metadata taken from a [Cloud Logging
* LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
*
* 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:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class CloudLoggingEntry extends com.google.api.client.json.GenericJson {
/**
* A unique identifier for the log entry.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String insertId;
/**
* The type of the log (part of `log_name`. `log_name` is the resource name of the log to which
* this log entry belongs). For example: `cloudresourcemanager.googleapis.com/activity`. Note that
* this field is not URL-encoded, unlike the `LOG_ID` field in `LogEntry`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String logId;
/**
* The organization, folder, or project of the monitored resource that produced this log entry.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String resourceContainer;
/**
* The time the event described by the log entry occurred.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String timestamp;
/**
* A unique identifier for the log entry.
* @return value or {@code null} for none
*/
public java.lang.String getInsertId() {
return insertId;
}
/**
* A unique identifier for the log entry.
* @param insertId insertId or {@code null} for none
*/
public CloudLoggingEntry setInsertId(java.lang.String insertId) {
this.insertId = insertId;
return this;
}
/**
* The type of the log (part of `log_name`. `log_name` is the resource name of the log to which
* this log entry belongs). For example: `cloudresourcemanager.googleapis.com/activity`. Note that
* this field is not URL-encoded, unlike the `LOG_ID` field in `LogEntry`.
* @return value or {@code null} for none
*/
public java.lang.String getLogId() {
return logId;
}
/**
* The type of the log (part of `log_name`. `log_name` is the resource name of the log to which
* this log entry belongs). For example: `cloudresourcemanager.googleapis.com/activity`. Note that
* this field is not URL-encoded, unlike the `LOG_ID` field in `LogEntry`.
* @param logId logId or {@code null} for none
*/
public CloudLoggingEntry setLogId(java.lang.String logId) {
this.logId = logId;
return this;
}
/**
* The organization, folder, or project of the monitored resource that produced this log entry.
* @return value or {@code null} for none
*/
public java.lang.String getResourceContainer() {
return resourceContainer;
}
/**
* The organization, folder, or project of the monitored resource that produced this log entry.
* @param resourceContainer resourceContainer or {@code null} for none
*/
public CloudLoggingEntry setResourceContainer(java.lang.String resourceContainer) {
this.resourceContainer = resourceContainer;
return this;
}
/**
* The time the event described by the log entry occurred.
* @return value or {@code null} for none
*/
public String getTimestamp() {
return timestamp;
}
/**
* The time the event described by the log entry occurred.
* @param timestamp timestamp or {@code null} for none
*/
public CloudLoggingEntry setTimestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
@Override
public CloudLoggingEntry set(String fieldName, Object value) {
return (CloudLoggingEntry) super.set(fieldName, value);
}
@Override
public CloudLoggingEntry clone() {
return (CloudLoggingEntry) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy