
com.pulumi.azurenative.network.outputs.ExclusionManagedRuleSetResponse 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.ExclusionManagedRuleGroupResponse;
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 ExclusionManagedRuleSetResponse {
/**
* @return Defines the rule groups to apply to the rule set.
*
*/
private @Nullable List ruleGroups;
/**
* @return Defines the rule set type to use.
*
*/
private String ruleSetType;
/**
* @return Defines the version of the rule set to use.
*
*/
private String ruleSetVersion;
private ExclusionManagedRuleSetResponse() {}
/**
* @return Defines the rule groups to apply to the rule set.
*
*/
public List ruleGroups() {
return this.ruleGroups == null ? List.of() : this.ruleGroups;
}
/**
* @return Defines the rule set type to use.
*
*/
public String ruleSetType() {
return this.ruleSetType;
}
/**
* @return Defines the version of the rule set to use.
*
*/
public String ruleSetVersion() {
return this.ruleSetVersion;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ExclusionManagedRuleSetResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List ruleGroups;
private String ruleSetType;
private String ruleSetVersion;
public Builder() {}
public Builder(ExclusionManagedRuleSetResponse defaults) {
Objects.requireNonNull(defaults);
this.ruleGroups = defaults.ruleGroups;
this.ruleSetType = defaults.ruleSetType;
this.ruleSetVersion = defaults.ruleSetVersion;
}
@CustomType.Setter
public Builder ruleGroups(@Nullable List ruleGroups) {
this.ruleGroups = ruleGroups;
return this;
}
public Builder ruleGroups(ExclusionManagedRuleGroupResponse... ruleGroups) {
return ruleGroups(List.of(ruleGroups));
}
@CustomType.Setter
public Builder ruleSetType(String ruleSetType) {
if (ruleSetType == null) {
throw new MissingRequiredPropertyException("ExclusionManagedRuleSetResponse", "ruleSetType");
}
this.ruleSetType = ruleSetType;
return this;
}
@CustomType.Setter
public Builder ruleSetVersion(String ruleSetVersion) {
if (ruleSetVersion == null) {
throw new MissingRequiredPropertyException("ExclusionManagedRuleSetResponse", "ruleSetVersion");
}
this.ruleSetVersion = ruleSetVersion;
return this;
}
public ExclusionManagedRuleSetResponse build() {
final var _resultValue = new ExclusionManagedRuleSetResponse();
_resultValue.ruleGroups = ruleGroups;
_resultValue.ruleSetType = ruleSetType;
_resultValue.ruleSetVersion = ruleSetVersion;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy