com.google.api.services.osconfig.v1.model.OSPolicyResourceFile 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.osconfig.v1.model;
/**
* A remote or local file.
*
* 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 OS Config 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 OSPolicyResourceFile extends com.google.api.client.json.GenericJson {
/**
* Defaults to false. When false, files are subject to validations based on the file type: Remote:
* A checksum must be specified. Cloud Storage: An object generation number must be specified.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean allowInsecure;
/**
* A Cloud Storage object.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private OSPolicyResourceFileGcs gcs;
/**
* A local path within the VM to use.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String localPath;
/**
* A generic remote file.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private OSPolicyResourceFileRemote remote;
/**
* Defaults to false. When false, files are subject to validations based on the file type: Remote:
* A checksum must be specified. Cloud Storage: An object generation number must be specified.
* @return value or {@code null} for none
*/
public java.lang.Boolean getAllowInsecure() {
return allowInsecure;
}
/**
* Defaults to false. When false, files are subject to validations based on the file type: Remote:
* A checksum must be specified. Cloud Storage: An object generation number must be specified.
* @param allowInsecure allowInsecure or {@code null} for none
*/
public OSPolicyResourceFile setAllowInsecure(java.lang.Boolean allowInsecure) {
this.allowInsecure = allowInsecure;
return this;
}
/**
* A Cloud Storage object.
* @return value or {@code null} for none
*/
public OSPolicyResourceFileGcs getGcs() {
return gcs;
}
/**
* A Cloud Storage object.
* @param gcs gcs or {@code null} for none
*/
public OSPolicyResourceFile setGcs(OSPolicyResourceFileGcs gcs) {
this.gcs = gcs;
return this;
}
/**
* A local path within the VM to use.
* @return value or {@code null} for none
*/
public java.lang.String getLocalPath() {
return localPath;
}
/**
* A local path within the VM to use.
* @param localPath localPath or {@code null} for none
*/
public OSPolicyResourceFile setLocalPath(java.lang.String localPath) {
this.localPath = localPath;
return this;
}
/**
* A generic remote file.
* @return value or {@code null} for none
*/
public OSPolicyResourceFileRemote getRemote() {
return remote;
}
/**
* A generic remote file.
* @param remote remote or {@code null} for none
*/
public OSPolicyResourceFile setRemote(OSPolicyResourceFileRemote remote) {
this.remote = remote;
return this;
}
@Override
public OSPolicyResourceFile set(String fieldName, Object value) {
return (OSPolicyResourceFile) super.set(fieldName, value);
}
@Override
public OSPolicyResourceFile clone() {
return (OSPolicyResourceFile) super.clone();
}
}