com.google.api.services.osconfig.v1.model.OSPolicyResourcePackageResource 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 resource that manages a system package.
*
* 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 OSPolicyResourcePackageResource extends com.google.api.client.json.GenericJson {
/**
* A package managed by Apt.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private OSPolicyResourcePackageResourceAPT apt;
/**
* A deb package file.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private OSPolicyResourcePackageResourceDeb deb;
/**
* Required. The desired state the agent should maintain for this package.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String desiredState;
/**
* A package managed by GooGet.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private OSPolicyResourcePackageResourceGooGet googet;
/**
* An MSI package.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private OSPolicyResourcePackageResourceMSI msi;
/**
* An rpm package file.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private OSPolicyResourcePackageResourceRPM rpm;
/**
* A package managed by YUM.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private OSPolicyResourcePackageResourceYUM yum;
/**
* A package managed by Zypper.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private OSPolicyResourcePackageResourceZypper zypper;
/**
* A package managed by Apt.
* @return value or {@code null} for none
*/
public OSPolicyResourcePackageResourceAPT getApt() {
return apt;
}
/**
* A package managed by Apt.
* @param apt apt or {@code null} for none
*/
public OSPolicyResourcePackageResource setApt(OSPolicyResourcePackageResourceAPT apt) {
this.apt = apt;
return this;
}
/**
* A deb package file.
* @return value or {@code null} for none
*/
public OSPolicyResourcePackageResourceDeb getDeb() {
return deb;
}
/**
* A deb package file.
* @param deb deb or {@code null} for none
*/
public OSPolicyResourcePackageResource setDeb(OSPolicyResourcePackageResourceDeb deb) {
this.deb = deb;
return this;
}
/**
* Required. The desired state the agent should maintain for this package.
* @return value or {@code null} for none
*/
public java.lang.String getDesiredState() {
return desiredState;
}
/**
* Required. The desired state the agent should maintain for this package.
* @param desiredState desiredState or {@code null} for none
*/
public OSPolicyResourcePackageResource setDesiredState(java.lang.String desiredState) {
this.desiredState = desiredState;
return this;
}
/**
* A package managed by GooGet.
* @return value or {@code null} for none
*/
public OSPolicyResourcePackageResourceGooGet getGooget() {
return googet;
}
/**
* A package managed by GooGet.
* @param googet googet or {@code null} for none
*/
public OSPolicyResourcePackageResource setGooget(OSPolicyResourcePackageResourceGooGet googet) {
this.googet = googet;
return this;
}
/**
* An MSI package.
* @return value or {@code null} for none
*/
public OSPolicyResourcePackageResourceMSI getMsi() {
return msi;
}
/**
* An MSI package.
* @param msi msi or {@code null} for none
*/
public OSPolicyResourcePackageResource setMsi(OSPolicyResourcePackageResourceMSI msi) {
this.msi = msi;
return this;
}
/**
* An rpm package file.
* @return value or {@code null} for none
*/
public OSPolicyResourcePackageResourceRPM getRpm() {
return rpm;
}
/**
* An rpm package file.
* @param rpm rpm or {@code null} for none
*/
public OSPolicyResourcePackageResource setRpm(OSPolicyResourcePackageResourceRPM rpm) {
this.rpm = rpm;
return this;
}
/**
* A package managed by YUM.
* @return value or {@code null} for none
*/
public OSPolicyResourcePackageResourceYUM getYum() {
return yum;
}
/**
* A package managed by YUM.
* @param yum yum or {@code null} for none
*/
public OSPolicyResourcePackageResource setYum(OSPolicyResourcePackageResourceYUM yum) {
this.yum = yum;
return this;
}
/**
* A package managed by Zypper.
* @return value or {@code null} for none
*/
public OSPolicyResourcePackageResourceZypper getZypper() {
return zypper;
}
/**
* A package managed by Zypper.
* @param zypper zypper or {@code null} for none
*/
public OSPolicyResourcePackageResource setZypper(OSPolicyResourcePackageResourceZypper zypper) {
this.zypper = zypper;
return this;
}
@Override
public OSPolicyResourcePackageResource set(String fieldName, Object value) {
return (OSPolicyResourcePackageResource) super.set(fieldName, value);
}
@Override
public OSPolicyResourcePackageResource clone() {
return (OSPolicyResourcePackageResource) super.clone();
}
}