/*
 * 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.policysimulator.v1.model;

/**
 * A message that holds specific allowed and denied values. This message can define specific values
 * and subtrees of the Resource Manager resource hierarchy (`Organizations`, `Folders`, `Projects`)
 * that are allowed or denied. This is achieved by using the `under:` and optional `is:` prefixes.
 * The `under:` prefix is used to denote resource subtree values. The `is:` prefix is used to denote
 * specific values, and is required only if the value contains a ":". Values prefixed with "is:" are
 * treated the same as values with no prefix. Ancestry subtrees must be in one of the following
 * formats: - `projects/` (for example, `projects/tokyo-rain-123`) - `folders/` (for example,
 * `folders/1234`) - `organizations/` (for example, `organizations/1234`) The `supports_under` field
 * of the associated `Constraint` defines whether ancestry prefixes can be used.
 *
 * <p> 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 Policy Simulator API. For a detailed explanation see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues extends com.google.api.client.json.GenericJson {

  /**
   * List of values allowed at this resource.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> allowedValues;

  /**
   * List of values denied at this resource.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> deniedValues;

  /**
   * List of values allowed at this resource.
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getAllowedValues() {
    return allowedValues;
  }

  /**
   * List of values allowed at this resource.
   * @param allowedValues allowedValues or {@code null} for none
   */
  public GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues setAllowedValues(java.util.List<java.lang.String> allowedValues) {
    this.allowedValues = allowedValues;
    return this;
  }

  /**
   * List of values denied at this resource.
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getDeniedValues() {
    return deniedValues;
  }

  /**
   * List of values denied at this resource.
   * @param deniedValues deniedValues or {@code null} for none
   */
  public GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues setDeniedValues(java.util.List<java.lang.String> deniedValues) {
    this.deniedValues = deniedValues;
    return this;
  }

  @Override
  public GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues set(String fieldName, Object value) {
    return (GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues) super.set(fieldName, value);
  }

  @Override
  public GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues clone() {
    return (GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues) super.clone();
  }

}
