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

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

/**
 * An OS policy resource is used to define the desired state configuration and provides a specific
 * functionality like installing/removing packages, executing a script etc. The system ensures that
 * resources are always in their desired state by taking necessary actions if they have drifted from
 * their desired state.
 *
 * 

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 OSPolicyResource extends com.google.api.client.json.GenericJson { /** * Exec resource * The value may be {@code null}. */ @com.google.api.client.util.Key private OSPolicyResourceExecResource exec; /** * File resource * The value may be {@code null}. */ @com.google.api.client.util.Key private OSPolicyResourceFileResource file; /** * Required. The id of the resource with the following restrictions: * Must contain only lowercase * letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * * Must end with a number or a letter. * Must be unique within the OS policy. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String id; /** * Package resource * The value may be {@code null}. */ @com.google.api.client.util.Key private OSPolicyResourcePackageResource pkg; /** * Package repository resource * The value may be {@code null}. */ @com.google.api.client.util.Key private OSPolicyResourceRepositoryResource repository; /** * Exec resource * @return value or {@code null} for none */ public OSPolicyResourceExecResource getExec() { return exec; } /** * Exec resource * @param exec exec or {@code null} for none */ public OSPolicyResource setExec(OSPolicyResourceExecResource exec) { this.exec = exec; return this; } /** * File resource * @return value or {@code null} for none */ public OSPolicyResourceFileResource getFile() { return file; } /** * File resource * @param file file or {@code null} for none */ public OSPolicyResource setFile(OSPolicyResourceFileResource file) { this.file = file; return this; } /** * Required. The id of the resource with the following restrictions: * Must contain only lowercase * letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * * Must end with a number or a letter. * Must be unique within the OS policy. * @return value or {@code null} for none */ public java.lang.String getId() { return id; } /** * Required. The id of the resource with the following restrictions: * Must contain only lowercase * letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * * Must end with a number or a letter. * Must be unique within the OS policy. * @param id id or {@code null} for none */ public OSPolicyResource setId(java.lang.String id) { this.id = id; return this; } /** * Package resource * @return value or {@code null} for none */ public OSPolicyResourcePackageResource getPkg() { return pkg; } /** * Package resource * @param pkg pkg or {@code null} for none */ public OSPolicyResource setPkg(OSPolicyResourcePackageResource pkg) { this.pkg = pkg; return this; } /** * Package repository resource * @return value or {@code null} for none */ public OSPolicyResourceRepositoryResource getRepository() { return repository; } /** * Package repository resource * @param repository repository or {@code null} for none */ public OSPolicyResource setRepository(OSPolicyResourceRepositoryResource repository) { this.repository = repository; return this; } @Override public OSPolicyResource set(String fieldName, Object value) { return (OSPolicyResource) super.set(fieldName, value); } @Override public OSPolicyResource clone() { return (OSPolicyResource) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy