
com.pulumi.azurenative.network.outputs.ExclusionManagedRuleGroupResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.ExclusionManagedRuleResponse;
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 ExclusionManagedRuleGroupResponse {
/**
* @return The managed rule group for exclusion.
*
*/
private String ruleGroupName;
/**
* @return List of rules that will be excluded. If none specified, all rules in the group will be excluded.
*
*/
private @Nullable List rules;
private ExclusionManagedRuleGroupResponse() {}
/**
* @return The managed rule group for exclusion.
*
*/
public String ruleGroupName() {
return this.ruleGroupName;
}
/**
* @return List of rules that will be excluded. If none specified, all rules in the group will be excluded.
*
*/
public List rules() {
return this.rules == null ? List.of() : this.rules;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ExclusionManagedRuleGroupResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String ruleGroupName;
private @Nullable List rules;
public Builder() {}
public Builder(ExclusionManagedRuleGroupResponse defaults) {
Objects.requireNonNull(defaults);
this.ruleGroupName = defaults.ruleGroupName;
this.rules = defaults.rules;
}
@CustomType.Setter
public Builder ruleGroupName(String ruleGroupName) {
if (ruleGroupName == null) {
throw new MissingRequiredPropertyException("ExclusionManagedRuleGroupResponse", "ruleGroupName");
}
this.ruleGroupName = ruleGroupName;
return this;
}
@CustomType.Setter
public Builder rules(@Nullable List rules) {
this.rules = rules;
return this;
}
public Builder rules(ExclusionManagedRuleResponse... rules) {
return rules(List.of(rules));
}
public ExclusionManagedRuleGroupResponse build() {
final var _resultValue = new ExclusionManagedRuleGroupResponse();
_resultValue.ruleGroupName = ruleGroupName;
_resultValue.rules = rules;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy