com.google.api.services.osconfig.v1.model.OSPolicyAssignmentReportOSPolicyComplianceOSPolicyResourceCompliance 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;
/**
* Compliance data for an OS policy resource.
*
* 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 OSPolicyAssignmentReportOSPolicyComplianceOSPolicyResourceCompliance extends com.google.api.client.json.GenericJson {
/**
* The compliance state of the resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String complianceState;
/**
* A reason for the resource to be in the given compliance state. This field is always populated
* when `compliance_state` is `UNKNOWN`. The following values are supported when `compliance_state
* == UNKNOWN` * `execution-errors`: Errors were encountered by the agent while executing the
* resource and the compliance state couldn't be determined. * `execution-skipped-by-agent`:
* Resource execution was skipped by the agent because errors were encountered while executing
* prior resources in the OS policy. * `os-policy-execution-attempt-failed`: The execution of the
* OS policy containing this resource failed and the compliance state couldn't be determined. *
* `os-policy-execution-pending`: OS policy that owns this resource was assigned to the given VM,
* but was not executed yet.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String complianceStateReason;
/**
* Ordered list of configuration completed by the agent for the OS policy resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List configSteps;
/**
* ExecResource specific output.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private OSPolicyAssignmentReportOSPolicyComplianceOSPolicyResourceComplianceExecResourceOutput execResourceOutput;
/**
* The ID of the OS policy resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String osPolicyResourceId;
/**
* The compliance state of the resource.
* @return value or {@code null} for none
*/
public java.lang.String getComplianceState() {
return complianceState;
}
/**
* The compliance state of the resource.
* @param complianceState complianceState or {@code null} for none
*/
public OSPolicyAssignmentReportOSPolicyComplianceOSPolicyResourceCompliance setComplianceState(java.lang.String complianceState) {
this.complianceState = complianceState;
return this;
}
/**
* A reason for the resource to be in the given compliance state. This field is always populated
* when `compliance_state` is `UNKNOWN`. The following values are supported when `compliance_state
* == UNKNOWN` * `execution-errors`: Errors were encountered by the agent while executing the
* resource and the compliance state couldn't be determined. * `execution-skipped-by-agent`:
* Resource execution was skipped by the agent because errors were encountered while executing
* prior resources in the OS policy. * `os-policy-execution-attempt-failed`: The execution of the
* OS policy containing this resource failed and the compliance state couldn't be determined. *
* `os-policy-execution-pending`: OS policy that owns this resource was assigned to the given VM,
* but was not executed yet.
* @return value or {@code null} for none
*/
public java.lang.String getComplianceStateReason() {
return complianceStateReason;
}
/**
* A reason for the resource to be in the given compliance state. This field is always populated
* when `compliance_state` is `UNKNOWN`. The following values are supported when `compliance_state
* == UNKNOWN` * `execution-errors`: Errors were encountered by the agent while executing the
* resource and the compliance state couldn't be determined. * `execution-skipped-by-agent`:
* Resource execution was skipped by the agent because errors were encountered while executing
* prior resources in the OS policy. * `os-policy-execution-attempt-failed`: The execution of the
* OS policy containing this resource failed and the compliance state couldn't be determined. *
* `os-policy-execution-pending`: OS policy that owns this resource was assigned to the given VM,
* but was not executed yet.
* @param complianceStateReason complianceStateReason or {@code null} for none
*/
public OSPolicyAssignmentReportOSPolicyComplianceOSPolicyResourceCompliance setComplianceStateReason(java.lang.String complianceStateReason) {
this.complianceStateReason = complianceStateReason;
return this;
}
/**
* Ordered list of configuration completed by the agent for the OS policy resource.
* @return value or {@code null} for none
*/
public java.util.List getConfigSteps() {
return configSteps;
}
/**
* Ordered list of configuration completed by the agent for the OS policy resource.
* @param configSteps configSteps or {@code null} for none
*/
public OSPolicyAssignmentReportOSPolicyComplianceOSPolicyResourceCompliance setConfigSteps(java.util.List configSteps) {
this.configSteps = configSteps;
return this;
}
/**
* ExecResource specific output.
* @return value or {@code null} for none
*/
public OSPolicyAssignmentReportOSPolicyComplianceOSPolicyResourceComplianceExecResourceOutput getExecResourceOutput() {
return execResourceOutput;
}
/**
* ExecResource specific output.
* @param execResourceOutput execResourceOutput or {@code null} for none
*/
public OSPolicyAssignmentReportOSPolicyComplianceOSPolicyResourceCompliance setExecResourceOutput(OSPolicyAssignmentReportOSPolicyComplianceOSPolicyResourceComplianceExecResourceOutput execResourceOutput) {
this.execResourceOutput = execResourceOutput;
return this;
}
/**
* The ID of the OS policy resource.
* @return value or {@code null} for none
*/
public java.lang.String getOsPolicyResourceId() {
return osPolicyResourceId;
}
/**
* The ID of the OS policy resource.
* @param osPolicyResourceId osPolicyResourceId or {@code null} for none
*/
public OSPolicyAssignmentReportOSPolicyComplianceOSPolicyResourceCompliance setOsPolicyResourceId(java.lang.String osPolicyResourceId) {
this.osPolicyResourceId = osPolicyResourceId;
return this;
}
@Override
public OSPolicyAssignmentReportOSPolicyComplianceOSPolicyResourceCompliance set(String fieldName, Object value) {
return (OSPolicyAssignmentReportOSPolicyComplianceOSPolicyResourceCompliance) super.set(fieldName, value);
}
@Override
public OSPolicyAssignmentReportOSPolicyComplianceOSPolicyResourceCompliance clone() {
return (OSPolicyAssignmentReportOSPolicyComplianceOSPolicyResourceCompliance) super.clone();
}
}