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

com.pulumi.azurenative.network.inputs.FrontDoorPolicySettingsArgs 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.inputs;

import com.pulumi.azurenative.network.enums.PolicyEnabledState;
import com.pulumi.azurenative.network.enums.PolicyMode;
import com.pulumi.azurenative.network.enums.PolicyRequestBodyCheck;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Defines top-level WebApplicationFirewallPolicy configuration settings.
 * 
 */
public final class FrontDoorPolicySettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final FrontDoorPolicySettingsArgs Empty = new FrontDoorPolicySettingsArgs();

    /**
     * If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
     * 
     */
    @Import(name="customBlockResponseBody")
    private @Nullable Output customBlockResponseBody;

    /**
     * @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);
    }

    /**
     * If the action type is block, customer can override the response status code.
     * 
     */
    @Import(name="customBlockResponseStatusCode")
    private @Nullable Output customBlockResponseStatusCode;

    /**
     * @return If the action type is block, customer can override the response status code.
     * 
     */
    public Optional> customBlockResponseStatusCode() {
        return Optional.ofNullable(this.customBlockResponseStatusCode);
    }

    /**
     * Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.
     * 
     */
    @Import(name="enabledState")
    private @Nullable Output> enabledState;

    /**
     * @return Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.
     * 
     */
    public Optional>> enabledState() {
        return Optional.ofNullable(this.enabledState);
    }

    /**
     * Describes if it is in detection mode or prevention mode at policy level.
     * 
     */
    @Import(name="mode")
    private @Nullable Output> mode;

    /**
     * @return Describes if it is in detection mode or prevention mode at policy level.
     * 
     */
    public Optional>> mode() {
        return Optional.ofNullable(this.mode);
    }

    /**
     * If action type is redirect, this field represents redirect URL for the client.
     * 
     */
    @Import(name="redirectUrl")
    private @Nullable Output redirectUrl;

    /**
     * @return If action type is redirect, this field represents redirect URL for the client.
     * 
     */
    public Optional> redirectUrl() {
        return Optional.ofNullable(this.redirectUrl);
    }

    /**
     * Describes if policy managed rules will inspect the request body content.
     * 
     */
    @Import(name="requestBodyCheck")
    private @Nullable Output> requestBodyCheck;

    /**
     * @return Describes if policy managed rules will inspect the request body content.
     * 
     */
    public Optional>> requestBodyCheck() {
        return Optional.ofNullable(this.requestBodyCheck);
    }

    private FrontDoorPolicySettingsArgs() {}

    private FrontDoorPolicySettingsArgs(FrontDoorPolicySettingsArgs $) {
        this.customBlockResponseBody = $.customBlockResponseBody;
        this.customBlockResponseStatusCode = $.customBlockResponseStatusCode;
        this.enabledState = $.enabledState;
        this.mode = $.mode;
        this.redirectUrl = $.redirectUrl;
        this.requestBodyCheck = $.requestBodyCheck;
    }

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

    public static final class Builder {
        private FrontDoorPolicySettingsArgs $;

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

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

        /**
         * @param customBlockResponseBody If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
         * 
         * @return builder
         * 
         */
        public Builder customBlockResponseBody(@Nullable Output customBlockResponseBody) {
            $.customBlockResponseBody = customBlockResponseBody;
            return this;
        }

        /**
         * @param customBlockResponseBody If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
         * 
         * @return builder
         * 
         */
        public Builder customBlockResponseBody(String customBlockResponseBody) {
            return customBlockResponseBody(Output.of(customBlockResponseBody));
        }

        /**
         * @param customBlockResponseStatusCode If the action type is block, customer can override the response status code.
         * 
         * @return builder
         * 
         */
        public Builder customBlockResponseStatusCode(@Nullable Output customBlockResponseStatusCode) {
            $.customBlockResponseStatusCode = customBlockResponseStatusCode;
            return this;
        }

        /**
         * @param customBlockResponseStatusCode If the action type is block, customer can override the response status code.
         * 
         * @return builder
         * 
         */
        public Builder customBlockResponseStatusCode(Integer customBlockResponseStatusCode) {
            return customBlockResponseStatusCode(Output.of(customBlockResponseStatusCode));
        }

        /**
         * @param enabledState Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.
         * 
         * @return builder
         * 
         */
        public Builder enabledState(@Nullable Output> enabledState) {
            $.enabledState = enabledState;
            return this;
        }

        /**
         * @param enabledState Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.
         * 
         * @return builder
         * 
         */
        public Builder enabledState(Either enabledState) {
            return enabledState(Output.of(enabledState));
        }

        /**
         * @param enabledState Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.
         * 
         * @return builder
         * 
         */
        public Builder enabledState(String enabledState) {
            return enabledState(Either.ofLeft(enabledState));
        }

        /**
         * @param enabledState Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.
         * 
         * @return builder
         * 
         */
        public Builder enabledState(PolicyEnabledState enabledState) {
            return enabledState(Either.ofRight(enabledState));
        }

        /**
         * @param mode Describes if it is in detection mode or prevention mode at policy level.
         * 
         * @return builder
         * 
         */
        public Builder mode(@Nullable Output> mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode Describes if it is in detection mode or prevention mode at policy level.
         * 
         * @return builder
         * 
         */
        public Builder mode(Either mode) {
            return mode(Output.of(mode));
        }

        /**
         * @param mode Describes if it is in detection mode or prevention mode at policy level.
         * 
         * @return builder
         * 
         */
        public Builder mode(String mode) {
            return mode(Either.ofLeft(mode));
        }

        /**
         * @param mode Describes if it is in detection mode or prevention mode at policy level.
         * 
         * @return builder
         * 
         */
        public Builder mode(PolicyMode mode) {
            return mode(Either.ofRight(mode));
        }

        /**
         * @param redirectUrl If action type is redirect, this field represents redirect URL for the client.
         * 
         * @return builder
         * 
         */
        public Builder redirectUrl(@Nullable Output redirectUrl) {
            $.redirectUrl = redirectUrl;
            return this;
        }

        /**
         * @param redirectUrl If action type is redirect, this field represents redirect URL for the client.
         * 
         * @return builder
         * 
         */
        public Builder redirectUrl(String redirectUrl) {
            return redirectUrl(Output.of(redirectUrl));
        }

        /**
         * @param requestBodyCheck Describes if policy managed rules will inspect the request body content.
         * 
         * @return builder
         * 
         */
        public Builder requestBodyCheck(@Nullable Output> requestBodyCheck) {
            $.requestBodyCheck = requestBodyCheck;
            return this;
        }

        /**
         * @param requestBodyCheck Describes if policy managed rules will inspect the request body content.
         * 
         * @return builder
         * 
         */
        public Builder requestBodyCheck(Either requestBodyCheck) {
            return requestBodyCheck(Output.of(requestBodyCheck));
        }

        /**
         * @param requestBodyCheck Describes if policy managed rules will inspect the request body content.
         * 
         * @return builder
         * 
         */
        public Builder requestBodyCheck(String requestBodyCheck) {
            return requestBodyCheck(Either.ofLeft(requestBodyCheck));
        }

        /**
         * @param requestBodyCheck Describes if policy managed rules will inspect the request body content.
         * 
         * @return builder
         * 
         */
        public Builder requestBodyCheck(PolicyRequestBodyCheck requestBodyCheck) {
            return requestBodyCheck(Either.ofRight(requestBodyCheck));
        }

        public FrontDoorPolicySettingsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy