All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.cloudflare.outputs.GetRulesetsRulesetRuleActionParametersOverridesRule 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.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetRulesetsRulesetRuleActionParametersOverridesRule {
    private @Nullable String action;
    /**
     * @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;
    /**
     * @return The ID of this resource.
     * 
     */
    private @Nullable String id;
    private @Nullable Integer scoreThreshold;
    private @Nullable String sensitivityLevel;
    private @Nullable String status;

    private GetRulesetsRulesetRuleActionParametersOverridesRule() {}
    public Optional action() {
        return Optional.ofNullable(this.action);
    }
    /**
     * @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);
    }
    /**
     * @return The ID of this resource.
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    public Optional scoreThreshold() {
        return Optional.ofNullable(this.scoreThreshold);
    }
    public Optional sensitivityLevel() {
        return Optional.ofNullable(this.sensitivityLevel);
    }
    public Optional status() {
        return Optional.ofNullable(this.status);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GetRulesetsRulesetRuleActionParametersOverridesRule defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String action;
        private @Nullable Boolean enabled;
        private @Nullable String id;
        private @Nullable Integer scoreThreshold;
        private @Nullable String sensitivityLevel;
        private @Nullable String status;
        public Builder() {}
        public Builder(GetRulesetsRulesetRuleActionParametersOverridesRule defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.action = defaults.action;
    	      this.enabled = defaults.enabled;
    	      this.id = defaults.id;
    	      this.scoreThreshold = defaults.scoreThreshold;
    	      this.sensitivityLevel = defaults.sensitivityLevel;
    	      this.status = defaults.status;
        }

        @CustomType.Setter
        public Builder action(@Nullable String action) {
            this.action = action;
            return this;
        }
        @CustomType.Setter
        public Builder enabled(@Nullable Boolean enabled) {
            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder id(@Nullable String id) {
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder scoreThreshold(@Nullable Integer scoreThreshold) {
            this.scoreThreshold = scoreThreshold;
            return this;
        }
        @CustomType.Setter
        public Builder sensitivityLevel(@Nullable String sensitivityLevel) {
            this.sensitivityLevel = sensitivityLevel;
            return this;
        }
        @CustomType.Setter
        public Builder status(@Nullable String status) {
            this.status = status;
            return this;
        }
        public GetRulesetsRulesetRuleActionParametersOverridesRule build() {
            final var o = new GetRulesetsRulesetRuleActionParametersOverridesRule();
            o.action = action;
            o.enabled = enabled;
            o.id = id;
            o.scoreThreshold = scoreThreshold;
            o.sensitivityLevel = sensitivityLevel;
            o.status = status;
            return o;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy