// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.apigateway.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class RequestValidatorState extends com.pulumi.resources.ResourceArgs {

    public static final RequestValidatorState Empty = new RequestValidatorState();

    /**
     * Name of the request validator
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return Name of the request validator
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * ID of the associated Rest API
     * 
     */
    @Import(name="restApi")
    private @Nullable Output<String> restApi;

    /**
     * @return ID of the associated Rest API
     * 
     */
    public Optional<Output<String>> restApi() {
        return Optional.ofNullable(this.restApi);
    }

    /**
     * Boolean whether to validate request body. Defaults to `false`.
     * 
     */
    @Import(name="validateRequestBody")
    private @Nullable Output<Boolean> validateRequestBody;

    /**
     * @return Boolean whether to validate request body. Defaults to `false`.
     * 
     */
    public Optional<Output<Boolean>> validateRequestBody() {
        return Optional.ofNullable(this.validateRequestBody);
    }

    /**
     * Boolean whether to validate request parameters. Defaults to `false`.
     * 
     */
    @Import(name="validateRequestParameters")
    private @Nullable Output<Boolean> validateRequestParameters;

    /**
     * @return Boolean whether to validate request parameters. Defaults to `false`.
     * 
     */
    public Optional<Output<Boolean>> validateRequestParameters() {
        return Optional.ofNullable(this.validateRequestParameters);
    }

    private RequestValidatorState() {}

    private RequestValidatorState(RequestValidatorState $) {
        this.name = $.name;
        this.restApi = $.restApi;
        this.validateRequestBody = $.validateRequestBody;
        this.validateRequestParameters = $.validateRequestParameters;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(RequestValidatorState defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private RequestValidatorState $;

        public Builder() {
            $ = new RequestValidatorState();
        }

        public Builder(RequestValidatorState defaults) {
            $ = new RequestValidatorState(Objects.requireNonNull(defaults));
        }

        /**
         * @param name Name of the request validator
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the request validator
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param restApi ID of the associated Rest API
         * 
         * @return builder
         * 
         */
        public Builder restApi(@Nullable Output<String> restApi) {
            $.restApi = restApi;
            return this;
        }

        /**
         * @param restApi ID of the associated Rest API
         * 
         * @return builder
         * 
         */
        public Builder restApi(String restApi) {
            return restApi(Output.of(restApi));
        }

        /**
         * @param validateRequestBody Boolean whether to validate request body. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder validateRequestBody(@Nullable Output<Boolean> validateRequestBody) {
            $.validateRequestBody = validateRequestBody;
            return this;
        }

        /**
         * @param validateRequestBody Boolean whether to validate request body. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder validateRequestBody(Boolean validateRequestBody) {
            return validateRequestBody(Output.of(validateRequestBody));
        }

        /**
         * @param validateRequestParameters Boolean whether to validate request parameters. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder validateRequestParameters(@Nullable Output<Boolean> validateRequestParameters) {
            $.validateRequestParameters = validateRequestParameters;
            return this;
        }

        /**
         * @param validateRequestParameters Boolean whether to validate request parameters. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder validateRequestParameters(Boolean validateRequestParameters) {
            return validateRequestParameters(Output.of(validateRequestParameters));
        }

        public RequestValidatorState build() {
            return $;
        }
    }

}
