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

com.pulumi.azurenative.network.outputs.PolicySettingsResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** 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.azurenative.network.outputs;

import com.pulumi.azurenative.network.outputs.PolicySettingsResponseLogScrubbing;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class PolicySettingsResponse {
    /**
     * @return If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
     * 
     */
    private @Nullable String customBlockResponseBody;
    /**
     * @return If the action type is block, customer can override the response status code.
     * 
     */
    private @Nullable Integer customBlockResponseStatusCode;
    /**
     * @return Whether allow WAF to enforce file upload limits.
     * 
     */
    private @Nullable Boolean fileUploadEnforcement;
    /**
     * @return Maximum file upload size in Mb for WAF.
     * 
     */
    private @Nullable Integer fileUploadLimitInMb;
    /**
     * @return To scrub sensitive log fields
     * 
     */
    private @Nullable PolicySettingsResponseLogScrubbing logScrubbing;
    /**
     * @return Maximum request body size in Kb for WAF.
     * 
     */
    private @Nullable Integer maxRequestBodySizeInKb;
    /**
     * @return The mode of the policy.
     * 
     */
    private @Nullable String mode;
    /**
     * @return Whether to allow WAF to check request Body.
     * 
     */
    private @Nullable Boolean requestBodyCheck;
    /**
     * @return Whether allow WAF to enforce request body limits.
     * 
     */
    private @Nullable Boolean requestBodyEnforcement;
    /**
     * @return Max inspection limit in KB for request body inspection for WAF.
     * 
     */
    private @Nullable Integer requestBodyInspectLimitInKB;
    /**
     * @return The state of the policy.
     * 
     */
    private @Nullable String state;

    private PolicySettingsResponse() {}
    /**
     * @return If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
     * 
     */
    public Optional customBlockResponseBody() {
        return Optional.ofNullable(this.customBlockResponseBody);
    }
    /**
     * @return If the action type is block, customer can override the response status code.
     * 
     */
    public Optional customBlockResponseStatusCode() {
        return Optional.ofNullable(this.customBlockResponseStatusCode);
    }
    /**
     * @return Whether allow WAF to enforce file upload limits.
     * 
     */
    public Optional fileUploadEnforcement() {
        return Optional.ofNullable(this.fileUploadEnforcement);
    }
    /**
     * @return Maximum file upload size in Mb for WAF.
     * 
     */
    public Optional fileUploadLimitInMb() {
        return Optional.ofNullable(this.fileUploadLimitInMb);
    }
    /**
     * @return To scrub sensitive log fields
     * 
     */
    public Optional logScrubbing() {
        return Optional.ofNullable(this.logScrubbing);
    }
    /**
     * @return Maximum request body size in Kb for WAF.
     * 
     */
    public Optional maxRequestBodySizeInKb() {
        return Optional.ofNullable(this.maxRequestBodySizeInKb);
    }
    /**
     * @return The mode of the policy.
     * 
     */
    public Optional mode() {
        return Optional.ofNullable(this.mode);
    }
    /**
     * @return Whether to allow WAF to check request Body.
     * 
     */
    public Optional requestBodyCheck() {
        return Optional.ofNullable(this.requestBodyCheck);
    }
    /**
     * @return Whether allow WAF to enforce request body limits.
     * 
     */
    public Optional requestBodyEnforcement() {
        return Optional.ofNullable(this.requestBodyEnforcement);
    }
    /**
     * @return Max inspection limit in KB for request body inspection for WAF.
     * 
     */
    public Optional requestBodyInspectLimitInKB() {
        return Optional.ofNullable(this.requestBodyInspectLimitInKB);
    }
    /**
     * @return The state of the policy.
     * 
     */
    public Optional state() {
        return Optional.ofNullable(this.state);
    }

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

    public static Builder builder(PolicySettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String customBlockResponseBody;
        private @Nullable Integer customBlockResponseStatusCode;
        private @Nullable Boolean fileUploadEnforcement;
        private @Nullable Integer fileUploadLimitInMb;
        private @Nullable PolicySettingsResponseLogScrubbing logScrubbing;
        private @Nullable Integer maxRequestBodySizeInKb;
        private @Nullable String mode;
        private @Nullable Boolean requestBodyCheck;
        private @Nullable Boolean requestBodyEnforcement;
        private @Nullable Integer requestBodyInspectLimitInKB;
        private @Nullable String state;
        public Builder() {}
        public Builder(PolicySettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.customBlockResponseBody = defaults.customBlockResponseBody;
    	      this.customBlockResponseStatusCode = defaults.customBlockResponseStatusCode;
    	      this.fileUploadEnforcement = defaults.fileUploadEnforcement;
    	      this.fileUploadLimitInMb = defaults.fileUploadLimitInMb;
    	      this.logScrubbing = defaults.logScrubbing;
    	      this.maxRequestBodySizeInKb = defaults.maxRequestBodySizeInKb;
    	      this.mode = defaults.mode;
    	      this.requestBodyCheck = defaults.requestBodyCheck;
    	      this.requestBodyEnforcement = defaults.requestBodyEnforcement;
    	      this.requestBodyInspectLimitInKB = defaults.requestBodyInspectLimitInKB;
    	      this.state = defaults.state;
        }

        @CustomType.Setter
        public Builder customBlockResponseBody(@Nullable String customBlockResponseBody) {

            this.customBlockResponseBody = customBlockResponseBody;
            return this;
        }
        @CustomType.Setter
        public Builder customBlockResponseStatusCode(@Nullable Integer customBlockResponseStatusCode) {

            this.customBlockResponseStatusCode = customBlockResponseStatusCode;
            return this;
        }
        @CustomType.Setter
        public Builder fileUploadEnforcement(@Nullable Boolean fileUploadEnforcement) {

            this.fileUploadEnforcement = fileUploadEnforcement;
            return this;
        }
        @CustomType.Setter
        public Builder fileUploadLimitInMb(@Nullable Integer fileUploadLimitInMb) {

            this.fileUploadLimitInMb = fileUploadLimitInMb;
            return this;
        }
        @CustomType.Setter
        public Builder logScrubbing(@Nullable PolicySettingsResponseLogScrubbing logScrubbing) {

            this.logScrubbing = logScrubbing;
            return this;
        }
        @CustomType.Setter
        public Builder maxRequestBodySizeInKb(@Nullable Integer maxRequestBodySizeInKb) {

            this.maxRequestBodySizeInKb = maxRequestBodySizeInKb;
            return this;
        }
        @CustomType.Setter
        public Builder mode(@Nullable String mode) {

            this.mode = mode;
            return this;
        }
        @CustomType.Setter
        public Builder requestBodyCheck(@Nullable Boolean requestBodyCheck) {

            this.requestBodyCheck = requestBodyCheck;
            return this;
        }
        @CustomType.Setter
        public Builder requestBodyEnforcement(@Nullable Boolean requestBodyEnforcement) {

            this.requestBodyEnforcement = requestBodyEnforcement;
            return this;
        }
        @CustomType.Setter
        public Builder requestBodyInspectLimitInKB(@Nullable Integer requestBodyInspectLimitInKB) {

            this.requestBodyInspectLimitInKB = requestBodyInspectLimitInKB;
            return this;
        }
        @CustomType.Setter
        public Builder state(@Nullable String state) {

            this.state = state;
            return this;
        }
        public PolicySettingsResponse build() {
            final var _resultValue = new PolicySettingsResponse();
            _resultValue.customBlockResponseBody = customBlockResponseBody;
            _resultValue.customBlockResponseStatusCode = customBlockResponseStatusCode;
            _resultValue.fileUploadEnforcement = fileUploadEnforcement;
            _resultValue.fileUploadLimitInMb = fileUploadLimitInMb;
            _resultValue.logScrubbing = logScrubbing;
            _resultValue.maxRequestBodySizeInKb = maxRequestBodySizeInKb;
            _resultValue.mode = mode;
            _resultValue.requestBodyCheck = requestBodyCheck;
            _resultValue.requestBodyEnforcement = requestBodyEnforcement;
            _resultValue.requestBodyInspectLimitInKB = requestBodyInspectLimitInKB;
            _resultValue.state = state;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy