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

com.pulumi.azurenative.network.outputs.FrontDoorPolicySettingsResponse 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.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class FrontDoorPolicySettingsResponse {
    /**
     * @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 Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.
     * 
     */
    private @Nullable String enabledState;
    /**
     * @return Describes if it is in detection mode or prevention mode at policy level.
     * 
     */
    private @Nullable String mode;
    /**
     * @return If action type is redirect, this field represents redirect URL for the client.
     * 
     */
    private @Nullable String redirectUrl;
    /**
     * @return Describes if policy managed rules will inspect the request body content.
     * 
     */
    private @Nullable String requestBodyCheck;

    private FrontDoorPolicySettingsResponse() {}
    /**
     * @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 Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.
     * 
     */
    public Optional enabledState() {
        return Optional.ofNullable(this.enabledState);
    }
    /**
     * @return Describes if it is in detection mode or prevention mode at policy level.
     * 
     */
    public Optional mode() {
        return Optional.ofNullable(this.mode);
    }
    /**
     * @return If action type is redirect, this field represents redirect URL for the client.
     * 
     */
    public Optional redirectUrl() {
        return Optional.ofNullable(this.redirectUrl);
    }
    /**
     * @return Describes if policy managed rules will inspect the request body content.
     * 
     */
    public Optional requestBodyCheck() {
        return Optional.ofNullable(this.requestBodyCheck);
    }

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

    public static Builder builder(FrontDoorPolicySettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String customBlockResponseBody;
        private @Nullable Integer customBlockResponseStatusCode;
        private @Nullable String enabledState;
        private @Nullable String mode;
        private @Nullable String redirectUrl;
        private @Nullable String requestBodyCheck;
        public Builder() {}
        public Builder(FrontDoorPolicySettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.customBlockResponseBody = defaults.customBlockResponseBody;
    	      this.customBlockResponseStatusCode = defaults.customBlockResponseStatusCode;
    	      this.enabledState = defaults.enabledState;
    	      this.mode = defaults.mode;
    	      this.redirectUrl = defaults.redirectUrl;
    	      this.requestBodyCheck = defaults.requestBodyCheck;
        }

        @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 enabledState(@Nullable String enabledState) {

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

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

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

            this.requestBodyCheck = requestBodyCheck;
            return this;
        }
        public FrontDoorPolicySettingsResponse build() {
            final var _resultValue = new FrontDoorPolicySettingsResponse();
            _resultValue.customBlockResponseBody = customBlockResponseBody;
            _resultValue.customBlockResponseStatusCode = customBlockResponseStatusCode;
            _resultValue.enabledState = enabledState;
            _resultValue.mode = mode;
            _resultValue.redirectUrl = redirectUrl;
            _resultValue.requestBodyCheck = requestBodyCheck;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy