com.pulumi.cloudflare.outputs.GetRulesetsRulesetRuleActionParametersOverridesCategory 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.cloudflare.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetRulesetsRulesetRuleActionParametersOverridesCategory {
private @Nullable String action;
private @Nullable String category;
/**
* @deprecated
* Use `status` instead. Continuing to use `enabled` will result in an inconsistent state for your Ruleset configuration.
*
*/
@Deprecated /* Use `status` instead. Continuing to use `enabled` will result in an inconsistent state for your Ruleset configuration. */
private @Nullable Boolean enabled;
private @Nullable String status;
private GetRulesetsRulesetRuleActionParametersOverridesCategory() {}
public Optional action() {
return Optional.ofNullable(this.action);
}
public Optional category() {
return Optional.ofNullable(this.category);
}
/**
* @deprecated
* Use `status` instead. Continuing to use `enabled` will result in an inconsistent state for your Ruleset configuration.
*
*/
@Deprecated /* Use `status` instead. Continuing to use `enabled` will result in an inconsistent state for your Ruleset configuration. */
public Optional enabled() {
return Optional.ofNullable(this.enabled);
}
public Optional status() {
return Optional.ofNullable(this.status);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetRulesetsRulesetRuleActionParametersOverridesCategory defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String action;
private @Nullable String category;
private @Nullable Boolean enabled;
private @Nullable String status;
public Builder() {}
public Builder(GetRulesetsRulesetRuleActionParametersOverridesCategory defaults) {
Objects.requireNonNull(defaults);
this.action = defaults.action;
this.category = defaults.category;
this.enabled = defaults.enabled;
this.status = defaults.status;
}
@CustomType.Setter
public Builder action(@Nullable String action) {
this.action = action;
return this;
}
@CustomType.Setter
public Builder category(@Nullable String category) {
this.category = category;
return this;
}
@CustomType.Setter
public Builder enabled(@Nullable Boolean enabled) {
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
public GetRulesetsRulesetRuleActionParametersOverridesCategory build() {
final var o = new GetRulesetsRulesetRuleActionParametersOverridesCategory();
o.action = action;
o.category = category;
o.enabled = enabled;
o.status = status;
return o;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy