com.pulumi.azure.waf.outputs.PolicyManagedRulesExclusionExcludedRuleSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
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.
// *** 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.PolicyManagedRulesExclusionExcludedRuleSetRuleGroup;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PolicyManagedRulesExclusionExcludedRuleSet {
/**
* @return One or more `rule_group` block defined below.
*
*/
private @Nullable List ruleGroups;
/**
* @return The rule set type. Possible values are `Microsoft_DefaultRuleSet`, `Microsoft_BotManagerRuleSet` and `OWASP`. Defaults to `OWASP`.
*
*/
private @Nullable String type;
/**
* @return The rule set version. Possible values are `1.0` (for rule set type `Microsoft_BotManagerRuleSet`), `2.1` (for rule set type `Microsoft_DefaultRuleSet`) and `3.2` (for rule set type `OWASP`). Defaults to `3.2`.
*
*/
private @Nullable String version;
private PolicyManagedRulesExclusionExcludedRuleSet() {}
/**
* @return One or more `rule_group` block defined below.
*
*/
public List ruleGroups() {
return this.ruleGroups == null ? List.of() : this.ruleGroups;
}
/**
* @return The rule set type. Possible values are `Microsoft_DefaultRuleSet`, `Microsoft_BotManagerRuleSet` and `OWASP`. Defaults to `OWASP`.
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
/**
* @return The rule set version. Possible values are `1.0` (for rule set type `Microsoft_BotManagerRuleSet`), `2.1` (for rule set type `Microsoft_DefaultRuleSet`) and `3.2` (for rule set type `OWASP`). Defaults to `3.2`.
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PolicyManagedRulesExclusionExcludedRuleSet defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List ruleGroups;
private @Nullable String type;
private @Nullable String version;
public Builder() {}
public Builder(PolicyManagedRulesExclusionExcludedRuleSet defaults) {
Objects.requireNonNull(defaults);
this.ruleGroups = defaults.ruleGroups;
this.type = defaults.type;
this.version = defaults.version;
}
@CustomType.Setter
public Builder ruleGroups(@Nullable List ruleGroups) {
this.ruleGroups = ruleGroups;
return this;
}
public Builder ruleGroups(PolicyManagedRulesExclusionExcludedRuleSetRuleGroup... ruleGroups) {
return ruleGroups(List.of(ruleGroups));
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
@CustomType.Setter
public Builder version(@Nullable String version) {
this.version = version;
return this;
}
public PolicyManagedRulesExclusionExcludedRuleSet build() {
final var _resultValue = new PolicyManagedRulesExclusionExcludedRuleSet();
_resultValue.ruleGroups = ruleGroups;
_resultValue.type = type;
_resultValue.version = version;
return _resultValue;
}
}
}