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

com.pulumi.azure.waf.outputs.PolicyManagedRulesManagedRuleSet Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.waf.outputs;

import com.pulumi.azure.waf.outputs.PolicyManagedRulesManagedRuleSetRuleGroupOverride;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class PolicyManagedRulesManagedRuleSet {
    /**
     * @return One or more `rule_group_override` block defined below.
     * 
     */
    private @Nullable List ruleGroupOverrides;
    /**
     * @return The rule set type. Possible values: `Microsoft_BotManagerRuleSet`, `Microsoft_DefaultRuleSet` and `OWASP`. Defaults to `OWASP`.
     * 
     */
    private @Nullable String type;
    /**
     * @return The rule set version. Possible values: `0.1`, `1.0`, `2.1`, `2.2.9`, `3.0`, `3.1` and `3.2`.
     * 
     */
    private String version;

    private PolicyManagedRulesManagedRuleSet() {}
    /**
     * @return One or more `rule_group_override` block defined below.
     * 
     */
    public List ruleGroupOverrides() {
        return this.ruleGroupOverrides == null ? List.of() : this.ruleGroupOverrides;
    }
    /**
     * @return The rule set type. Possible values: `Microsoft_BotManagerRuleSet`, `Microsoft_DefaultRuleSet` and `OWASP`. Defaults to `OWASP`.
     * 
     */
    public Optional type() {
        return Optional.ofNullable(this.type);
    }
    /**
     * @return The rule set version. Possible values: `0.1`, `1.0`, `2.1`, `2.2.9`, `3.0`, `3.1` and `3.2`.
     * 
     */
    public String version() {
        return this.version;
    }

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

    public static Builder builder(PolicyManagedRulesManagedRuleSet defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List ruleGroupOverrides;
        private @Nullable String type;
        private String version;
        public Builder() {}
        public Builder(PolicyManagedRulesManagedRuleSet defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.ruleGroupOverrides = defaults.ruleGroupOverrides;
    	      this.type = defaults.type;
    	      this.version = defaults.version;
        }

        @CustomType.Setter
        public Builder ruleGroupOverrides(@Nullable List ruleGroupOverrides) {

            this.ruleGroupOverrides = ruleGroupOverrides;
            return this;
        }
        public Builder ruleGroupOverrides(PolicyManagedRulesManagedRuleSetRuleGroupOverride... ruleGroupOverrides) {
            return ruleGroupOverrides(List.of(ruleGroupOverrides));
        }
        @CustomType.Setter
        public Builder type(@Nullable String type) {

            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder version(String version) {
            if (version == null) {
              throw new MissingRequiredPropertyException("PolicyManagedRulesManagedRuleSet", "version");
            }
            this.version = version;
            return this;
        }
        public PolicyManagedRulesManagedRuleSet build() {
            final var _resultValue = new PolicyManagedRulesManagedRuleSet();
            _resultValue.ruleGroupOverrides = ruleGroupOverrides;
            _resultValue.type = type;
            _resultValue.version = version;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy