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

/**
 * Request message for getting the resolved policy value for a specific target.
 *
 * <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 Chrome Policy 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 GoogleChromePolicyV1ResolveRequest extends com.google.api.client.json.GenericJson {

  /**
   * The maximum number of policies to return, defaults to 100 and has a maximum of 1000.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer pageSize;

  /**
   * The page token used to retrieve a specific page of the request.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String pageToken;

  /**
   * The schema filter to apply to the resolve request. Specify a schema name to view a particular
   * schema, for example: chrome.users.ShowLogoutButton Wildcards are supported, but only in the
   * leaf portion of the schema name. Wildcards cannot be used in namespace directly. Please read
   * https://developers.google.com/chrome/policy/guides/policy-schemas for details on schema
   * namepsaces. For example: Valid: "chrome.users.*", "chrome.users.apps.*", "chrome.printers.*"
   * Invalid: "*", "*.users", "chrome.*", "chrome.*.apps.*"
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String policySchemaFilter;

  /**
   * Required. The key of the target resource on which the policies should be resolved. The target
   * resource must point to an Org Unit.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleChromePolicyV1PolicyTargetKey policyTargetKey;

  /**
   * The maximum number of policies to return, defaults to 100 and has a maximum of 1000.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getPageSize() {
    return pageSize;
  }

  /**
   * The maximum number of policies to return, defaults to 100 and has a maximum of 1000.
   * @param pageSize pageSize or {@code null} for none
   */
  public GoogleChromePolicyV1ResolveRequest setPageSize(java.lang.Integer pageSize) {
    this.pageSize = pageSize;
    return this;
  }

  /**
   * The page token used to retrieve a specific page of the request.
   * @return value or {@code null} for none
   */
  public java.lang.String getPageToken() {
    return pageToken;
  }

  /**
   * The page token used to retrieve a specific page of the request.
   * @param pageToken pageToken or {@code null} for none
   */
  public GoogleChromePolicyV1ResolveRequest setPageToken(java.lang.String pageToken) {
    this.pageToken = pageToken;
    return this;
  }

  /**
   * The schema filter to apply to the resolve request. Specify a schema name to view a particular
   * schema, for example: chrome.users.ShowLogoutButton Wildcards are supported, but only in the
   * leaf portion of the schema name. Wildcards cannot be used in namespace directly. Please read
   * https://developers.google.com/chrome/policy/guides/policy-schemas for details on schema
   * namepsaces. For example: Valid: "chrome.users.*", "chrome.users.apps.*", "chrome.printers.*"
   * Invalid: "*", "*.users", "chrome.*", "chrome.*.apps.*"
   * @return value or {@code null} for none
   */
  public java.lang.String getPolicySchemaFilter() {
    return policySchemaFilter;
  }

  /**
   * The schema filter to apply to the resolve request. Specify a schema name to view a particular
   * schema, for example: chrome.users.ShowLogoutButton Wildcards are supported, but only in the
   * leaf portion of the schema name. Wildcards cannot be used in namespace directly. Please read
   * https://developers.google.com/chrome/policy/guides/policy-schemas for details on schema
   * namepsaces. For example: Valid: "chrome.users.*", "chrome.users.apps.*", "chrome.printers.*"
   * Invalid: "*", "*.users", "chrome.*", "chrome.*.apps.*"
   * @param policySchemaFilter policySchemaFilter or {@code null} for none
   */
  public GoogleChromePolicyV1ResolveRequest setPolicySchemaFilter(java.lang.String policySchemaFilter) {
    this.policySchemaFilter = policySchemaFilter;
    return this;
  }

  /**
   * Required. The key of the target resource on which the policies should be resolved. The target
   * resource must point to an Org Unit.
   * @return value or {@code null} for none
   */
  public GoogleChromePolicyV1PolicyTargetKey getPolicyTargetKey() {
    return policyTargetKey;
  }

  /**
   * Required. The key of the target resource on which the policies should be resolved. The target
   * resource must point to an Org Unit.
   * @param policyTargetKey policyTargetKey or {@code null} for none
   */
  public GoogleChromePolicyV1ResolveRequest setPolicyTargetKey(GoogleChromePolicyV1PolicyTargetKey policyTargetKey) {
    this.policyTargetKey = policyTargetKey;
    return this;
  }

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

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

}
