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

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

/**
 * This rule message is a customized version of the one defined in the Organization Policy system.
 * In addition to the fields defined in the original organization policy, it contains additional
 * field(s) under specific circumstances to support analysis results.
 *
 * 

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 Cloud Asset 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 GoogleCloudAssetV1Rule extends com.google.api.client.json.GenericJson { /** * Setting this to true means that all values are allowed. This field can be set only in Policies * for list constraints. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean allowAll; /** * The evaluating condition for this rule. * The value may be {@code null}. */ @com.google.api.client.util.Key private Expr condition; /** * The condition evaluation result for this rule. Only populated if it meets all the following * criteria: * There is a condition defined for this rule. * This rule is within * AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy, or * AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy when the * AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset has * AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private ConditionEvaluation conditionEvaluation; /** * Setting this to true means that all values are denied. This field can be set only in Policies * for list constraints. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean denyAll; /** * If `true`, then the `Policy` is enforced. If `false`, then any configuration is acceptable. * This field can be set only in Policies for boolean constraints. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean enforce; /** * List of values to be used for this policy rule. This field can be set only in policies for list * constraints. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudAssetV1StringValues values; /** * Setting this to true means that all values are allowed. This field can be set only in Policies * for list constraints. * @return value or {@code null} for none */ public java.lang.Boolean getAllowAll() { return allowAll; } /** * Setting this to true means that all values are allowed. This field can be set only in Policies * for list constraints. * @param allowAll allowAll or {@code null} for none */ public GoogleCloudAssetV1Rule setAllowAll(java.lang.Boolean allowAll) { this.allowAll = allowAll; return this; } /** * The evaluating condition for this rule. * @return value or {@code null} for none */ public Expr getCondition() { return condition; } /** * The evaluating condition for this rule. * @param condition condition or {@code null} for none */ public GoogleCloudAssetV1Rule setCondition(Expr condition) { this.condition = condition; return this; } /** * The condition evaluation result for this rule. Only populated if it meets all the following * criteria: * There is a condition defined for this rule. * This rule is within * AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy, or * AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy when the * AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset has * AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource. * @return value or {@code null} for none */ public ConditionEvaluation getConditionEvaluation() { return conditionEvaluation; } /** * The condition evaluation result for this rule. Only populated if it meets all the following * criteria: * There is a condition defined for this rule. * This rule is within * AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy, or * AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy when the * AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset has * AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource. * @param conditionEvaluation conditionEvaluation or {@code null} for none */ public GoogleCloudAssetV1Rule setConditionEvaluation(ConditionEvaluation conditionEvaluation) { this.conditionEvaluation = conditionEvaluation; return this; } /** * Setting this to true means that all values are denied. This field can be set only in Policies * for list constraints. * @return value or {@code null} for none */ public java.lang.Boolean getDenyAll() { return denyAll; } /** * Setting this to true means that all values are denied. This field can be set only in Policies * for list constraints. * @param denyAll denyAll or {@code null} for none */ public GoogleCloudAssetV1Rule setDenyAll(java.lang.Boolean denyAll) { this.denyAll = denyAll; return this; } /** * If `true`, then the `Policy` is enforced. If `false`, then any configuration is acceptable. * This field can be set only in Policies for boolean constraints. * @return value or {@code null} for none */ public java.lang.Boolean getEnforce() { return enforce; } /** * If `true`, then the `Policy` is enforced. If `false`, then any configuration is acceptable. * This field can be set only in Policies for boolean constraints. * @param enforce enforce or {@code null} for none */ public GoogleCloudAssetV1Rule setEnforce(java.lang.Boolean enforce) { this.enforce = enforce; return this; } /** * List of values to be used for this policy rule. This field can be set only in policies for list * constraints. * @return value or {@code null} for none */ public GoogleCloudAssetV1StringValues getValues() { return values; } /** * List of values to be used for this policy rule. This field can be set only in policies for list * constraints. * @param values values or {@code null} for none */ public GoogleCloudAssetV1Rule setValues(GoogleCloudAssetV1StringValues values) { this.values = values; return this; } @Override public GoogleCloudAssetV1Rule set(String fieldName, Object value) { return (GoogleCloudAssetV1Rule) super.set(fieldName, value); } @Override public GoogleCloudAssetV1Rule clone() { return (GoogleCloudAssetV1Rule) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy