
com.pulumi.azurenative.network.outputs.FrontDoorManagedRuleGroupOverrideResponse 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.azurenative.network.outputs;
import com.pulumi.azurenative.network.outputs.FrontDoorManagedRuleOverrideResponse;
import com.pulumi.azurenative.network.outputs.ManagedRuleExclusionResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class FrontDoorManagedRuleGroupOverrideResponse {
/**
* @return Describes the exclusions that are applied to all rules in the group.
*
*/
private @Nullable List exclusions;
/**
* @return Describes the managed rule group to override.
*
*/
private String ruleGroupName;
/**
* @return List of rules that will be disabled. If none specified, all rules in the group will be disabled.
*
*/
private @Nullable List rules;
private FrontDoorManagedRuleGroupOverrideResponse() {}
/**
* @return Describes the exclusions that are applied to all rules in the group.
*
*/
public List exclusions() {
return this.exclusions == null ? List.of() : this.exclusions;
}
/**
* @return Describes the managed rule group to override.
*
*/
public String ruleGroupName() {
return this.ruleGroupName;
}
/**
* @return List of rules that will be disabled. If none specified, all rules in the group will be disabled.
*
*/
public List rules() {
return this.rules == null ? List.of() : this.rules;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FrontDoorManagedRuleGroupOverrideResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List exclusions;
private String ruleGroupName;
private @Nullable List rules;
public Builder() {}
public Builder(FrontDoorManagedRuleGroupOverrideResponse defaults) {
Objects.requireNonNull(defaults);
this.exclusions = defaults.exclusions;
this.ruleGroupName = defaults.ruleGroupName;
this.rules = defaults.rules;
}
@CustomType.Setter
public Builder exclusions(@Nullable List exclusions) {
this.exclusions = exclusions;
return this;
}
public Builder exclusions(ManagedRuleExclusionResponse... exclusions) {
return exclusions(List.of(exclusions));
}
@CustomType.Setter
public Builder ruleGroupName(String ruleGroupName) {
if (ruleGroupName == null) {
throw new MissingRequiredPropertyException("FrontDoorManagedRuleGroupOverrideResponse", "ruleGroupName");
}
this.ruleGroupName = ruleGroupName;
return this;
}
@CustomType.Setter
public Builder rules(@Nullable List rules) {
this.rules = rules;
return this;
}
public Builder rules(FrontDoorManagedRuleOverrideResponse... rules) {
return rules(List.of(rules));
}
public FrontDoorManagedRuleGroupOverrideResponse build() {
final var _resultValue = new FrontDoorManagedRuleGroupOverrideResponse();
_resultValue.exclusions = exclusions;
_resultValue.ruleGroupName = ruleGroupName;
_resultValue.rules = rules;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy