
com.pulumi.azurenative.network.outputs.FrontDoorManagedRuleOverrideResponse 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.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 java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class FrontDoorManagedRuleOverrideResponse {
/**
* @return Describes the override action to be applied when rule matches.
*
*/
private @Nullable String action;
/**
* @return Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
*
*/
private @Nullable String enabledState;
/**
* @return Describes the exclusions that are applied to this specific rule.
*
*/
private @Nullable List exclusions;
/**
* @return Identifier for the managed rule.
*
*/
private String ruleId;
private FrontDoorManagedRuleOverrideResponse() {}
/**
* @return Describes the override action to be applied when rule matches.
*
*/
public Optional action() {
return Optional.ofNullable(this.action);
}
/**
* @return Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
*
*/
public Optional enabledState() {
return Optional.ofNullable(this.enabledState);
}
/**
* @return Describes the exclusions that are applied to this specific rule.
*
*/
public List exclusions() {
return this.exclusions == null ? List.of() : this.exclusions;
}
/**
* @return Identifier for the managed rule.
*
*/
public String ruleId() {
return this.ruleId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FrontDoorManagedRuleOverrideResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String action;
private @Nullable String enabledState;
private @Nullable List exclusions;
private String ruleId;
public Builder() {}
public Builder(FrontDoorManagedRuleOverrideResponse defaults) {
Objects.requireNonNull(defaults);
this.action = defaults.action;
this.enabledState = defaults.enabledState;
this.exclusions = defaults.exclusions;
this.ruleId = defaults.ruleId;
}
@CustomType.Setter
public Builder action(@Nullable String action) {
this.action = action;
return this;
}
@CustomType.Setter
public Builder enabledState(@Nullable String enabledState) {
this.enabledState = enabledState;
return this;
}
@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 ruleId(String ruleId) {
if (ruleId == null) {
throw new MissingRequiredPropertyException("FrontDoorManagedRuleOverrideResponse", "ruleId");
}
this.ruleId = ruleId;
return this;
}
public FrontDoorManagedRuleOverrideResponse build() {
final var _resultValue = new FrontDoorManagedRuleOverrideResponse();
_resultValue.action = action;
_resultValue.enabledState = enabledState;
_resultValue.exclusions = exclusions;
_resultValue.ruleId = ruleId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy