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

com.pulumi.azure.network.outputs.GetApplicationGatewayWafConfiguration Maven / Gradle / Ivy

// *** 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.azure.network.outputs;

import com.pulumi.azure.network.outputs.GetApplicationGatewayWafConfigurationDisabledRuleGroup;
import com.pulumi.azure.network.outputs.GetApplicationGatewayWafConfigurationExclusion;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetApplicationGatewayWafConfiguration {
    /**
     * @return One or more `disabled_rule_group` blocks as defined below.
     * 
     */
    private List disabledRuleGroups;
    /**
     * @return Is the Web Application Firewall enabled?
     * 
     */
    private Boolean enabled;
    /**
     * @return One or more `exclusion` blocks as defined below.
     * 
     */
    private List exclusions;
    /**
     * @return The File Upload Limit in MB.
     * 
     */
    private Integer fileUploadLimitMb;
    /**
     * @return The Web Application Firewall Mode.
     * 
     */
    private String firewallMode;
    /**
     * @return The Maximum Request Body Size in KB.
     * 
     */
    private Integer maxRequestBodySizeKb;
    /**
     * @return Is Request Body Inspection enabled?
     * 
     */
    private Boolean requestBodyCheck;
    /**
     * @return The Type of the Rule Set used for this Web Application Firewall.
     * 
     */
    private String ruleSetType;
    /**
     * @return The Version of the Rule Set used for this Web Application Firewall.
     * 
     */
    private String ruleSetVersion;

    private GetApplicationGatewayWafConfiguration() {}
    /**
     * @return One or more `disabled_rule_group` blocks as defined below.
     * 
     */
    public List disabledRuleGroups() {
        return this.disabledRuleGroups;
    }
    /**
     * @return Is the Web Application Firewall enabled?
     * 
     */
    public Boolean enabled() {
        return this.enabled;
    }
    /**
     * @return One or more `exclusion` blocks as defined below.
     * 
     */
    public List exclusions() {
        return this.exclusions;
    }
    /**
     * @return The File Upload Limit in MB.
     * 
     */
    public Integer fileUploadLimitMb() {
        return this.fileUploadLimitMb;
    }
    /**
     * @return The Web Application Firewall Mode.
     * 
     */
    public String firewallMode() {
        return this.firewallMode;
    }
    /**
     * @return The Maximum Request Body Size in KB.
     * 
     */
    public Integer maxRequestBodySizeKb() {
        return this.maxRequestBodySizeKb;
    }
    /**
     * @return Is Request Body Inspection enabled?
     * 
     */
    public Boolean requestBodyCheck() {
        return this.requestBodyCheck;
    }
    /**
     * @return The Type of the Rule Set used for this Web Application Firewall.
     * 
     */
    public String ruleSetType() {
        return this.ruleSetType;
    }
    /**
     * @return The Version of the Rule Set used for this Web Application Firewall.
     * 
     */
    public String ruleSetVersion() {
        return this.ruleSetVersion;
    }

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

    public static Builder builder(GetApplicationGatewayWafConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List disabledRuleGroups;
        private Boolean enabled;
        private List exclusions;
        private Integer fileUploadLimitMb;
        private String firewallMode;
        private Integer maxRequestBodySizeKb;
        private Boolean requestBodyCheck;
        private String ruleSetType;
        private String ruleSetVersion;
        public Builder() {}
        public Builder(GetApplicationGatewayWafConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.disabledRuleGroups = defaults.disabledRuleGroups;
    	      this.enabled = defaults.enabled;
    	      this.exclusions = defaults.exclusions;
    	      this.fileUploadLimitMb = defaults.fileUploadLimitMb;
    	      this.firewallMode = defaults.firewallMode;
    	      this.maxRequestBodySizeKb = defaults.maxRequestBodySizeKb;
    	      this.requestBodyCheck = defaults.requestBodyCheck;
    	      this.ruleSetType = defaults.ruleSetType;
    	      this.ruleSetVersion = defaults.ruleSetVersion;
        }

        @CustomType.Setter
        public Builder disabledRuleGroups(List disabledRuleGroups) {
            if (disabledRuleGroups == null) {
              throw new MissingRequiredPropertyException("GetApplicationGatewayWafConfiguration", "disabledRuleGroups");
            }
            this.disabledRuleGroups = disabledRuleGroups;
            return this;
        }
        public Builder disabledRuleGroups(GetApplicationGatewayWafConfigurationDisabledRuleGroup... disabledRuleGroups) {
            return disabledRuleGroups(List.of(disabledRuleGroups));
        }
        @CustomType.Setter
        public Builder enabled(Boolean enabled) {
            if (enabled == null) {
              throw new MissingRequiredPropertyException("GetApplicationGatewayWafConfiguration", "enabled");
            }
            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder exclusions(List exclusions) {
            if (exclusions == null) {
              throw new MissingRequiredPropertyException("GetApplicationGatewayWafConfiguration", "exclusions");
            }
            this.exclusions = exclusions;
            return this;
        }
        public Builder exclusions(GetApplicationGatewayWafConfigurationExclusion... exclusions) {
            return exclusions(List.of(exclusions));
        }
        @CustomType.Setter
        public Builder fileUploadLimitMb(Integer fileUploadLimitMb) {
            if (fileUploadLimitMb == null) {
              throw new MissingRequiredPropertyException("GetApplicationGatewayWafConfiguration", "fileUploadLimitMb");
            }
            this.fileUploadLimitMb = fileUploadLimitMb;
            return this;
        }
        @CustomType.Setter
        public Builder firewallMode(String firewallMode) {
            if (firewallMode == null) {
              throw new MissingRequiredPropertyException("GetApplicationGatewayWafConfiguration", "firewallMode");
            }
            this.firewallMode = firewallMode;
            return this;
        }
        @CustomType.Setter
        public Builder maxRequestBodySizeKb(Integer maxRequestBodySizeKb) {
            if (maxRequestBodySizeKb == null) {
              throw new MissingRequiredPropertyException("GetApplicationGatewayWafConfiguration", "maxRequestBodySizeKb");
            }
            this.maxRequestBodySizeKb = maxRequestBodySizeKb;
            return this;
        }
        @CustomType.Setter
        public Builder requestBodyCheck(Boolean requestBodyCheck) {
            if (requestBodyCheck == null) {
              throw new MissingRequiredPropertyException("GetApplicationGatewayWafConfiguration", "requestBodyCheck");
            }
            this.requestBodyCheck = requestBodyCheck;
            return this;
        }
        @CustomType.Setter
        public Builder ruleSetType(String ruleSetType) {
            if (ruleSetType == null) {
              throw new MissingRequiredPropertyException("GetApplicationGatewayWafConfiguration", "ruleSetType");
            }
            this.ruleSetType = ruleSetType;
            return this;
        }
        @CustomType.Setter
        public Builder ruleSetVersion(String ruleSetVersion) {
            if (ruleSetVersion == null) {
              throw new MissingRequiredPropertyException("GetApplicationGatewayWafConfiguration", "ruleSetVersion");
            }
            this.ruleSetVersion = ruleSetVersion;
            return this;
        }
        public GetApplicationGatewayWafConfiguration build() {
            final var _resultValue = new GetApplicationGatewayWafConfiguration();
            _resultValue.disabledRuleGroups = disabledRuleGroups;
            _resultValue.enabled = enabled;
            _resultValue.exclusions = exclusions;
            _resultValue.fileUploadLimitMb = fileUploadLimitMb;
            _resultValue.firewallMode = firewallMode;
            _resultValue.maxRequestBodySizeKb = maxRequestBodySizeKb;
            _resultValue.requestBodyCheck = requestBodyCheck;
            _resultValue.ruleSetType = ruleSetType;
            _resultValue.ruleSetVersion = ruleSetVersion;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy