
com.pulumi.azurenative.cdn.outputs.ManagedRuleOverrideResponse 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.cdn.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ManagedRuleOverrideResponse {
/**
* @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 Identifier for the managed rule.
*
*/
private String ruleId;
private ManagedRuleOverrideResponse() {}
/**
* @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 Identifier for the managed rule.
*
*/
public String ruleId() {
return this.ruleId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ManagedRuleOverrideResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String action;
private @Nullable String enabledState;
private String ruleId;
public Builder() {}
public Builder(ManagedRuleOverrideResponse defaults) {
Objects.requireNonNull(defaults);
this.action = defaults.action;
this.enabledState = defaults.enabledState;
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 ruleId(String ruleId) {
if (ruleId == null) {
throw new MissingRequiredPropertyException("ManagedRuleOverrideResponse", "ruleId");
}
this.ruleId = ruleId;
return this;
}
public ManagedRuleOverrideResponse build() {
final var _resultValue = new ManagedRuleOverrideResponse();
_resultValue.action = action;
_resultValue.enabledState = enabledState;
_resultValue.ruleId = ruleId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy