com.google.api.services.androidmanagement.v1.model.NonComplianceDetailCondition 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.androidmanagement.v1.model;
/**
* A compliance rule condition which is satisfied if there exists any matching NonComplianceDetail
* for the device. A NonComplianceDetail matches a NonComplianceDetailCondition if all the fields
* which are set within the NonComplianceDetailCondition match the corresponding NonComplianceDetail
* fields.
*
* 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 Android Management 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 NonComplianceDetailCondition extends com.google.api.client.json.GenericJson {
/**
* The reason the device is not in compliance with the setting. If not set, then this condition
* matches any reason.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String nonComplianceReason;
/**
* The package name of the app that's out of compliance. If not set, then this condition matches
* any package name.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String packageName;
/**
* The name of the policy setting. This is the JSON field name of a top-level Policy field. If not
* set, then this condition matches any setting name.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String settingName;
/**
* The reason the device is not in compliance with the setting. If not set, then this condition
* matches any reason.
* @return value or {@code null} for none
*/
public java.lang.String getNonComplianceReason() {
return nonComplianceReason;
}
/**
* The reason the device is not in compliance with the setting. If not set, then this condition
* matches any reason.
* @param nonComplianceReason nonComplianceReason or {@code null} for none
*/
public NonComplianceDetailCondition setNonComplianceReason(java.lang.String nonComplianceReason) {
this.nonComplianceReason = nonComplianceReason;
return this;
}
/**
* The package name of the app that's out of compliance. If not set, then this condition matches
* any package name.
* @return value or {@code null} for none
*/
public java.lang.String getPackageName() {
return packageName;
}
/**
* The package name of the app that's out of compliance. If not set, then this condition matches
* any package name.
* @param packageName packageName or {@code null} for none
*/
public NonComplianceDetailCondition setPackageName(java.lang.String packageName) {
this.packageName = packageName;
return this;
}
/**
* The name of the policy setting. This is the JSON field name of a top-level Policy field. If not
* set, then this condition matches any setting name.
* @return value or {@code null} for none
*/
public java.lang.String getSettingName() {
return settingName;
}
/**
* The name of the policy setting. This is the JSON field name of a top-level Policy field. If not
* set, then this condition matches any setting name.
* @param settingName settingName or {@code null} for none
*/
public NonComplianceDetailCondition setSettingName(java.lang.String settingName) {
this.settingName = settingName;
return this;
}
@Override
public NonComplianceDetailCondition set(String fieldName, Object value) {
return (NonComplianceDetailCondition) super.set(fieldName, value);
}
@Override
public NonComplianceDetailCondition clone() {
return (NonComplianceDetailCondition) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy