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

com.pulumi.cloudflare.inputs.UserAgentBlockingRuleState 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.inputs;

import com.pulumi.cloudflare.inputs.UserAgentBlockingRuleConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class UserAgentBlockingRuleState extends com.pulumi.resources.ResourceArgs {

    public static final UserAgentBlockingRuleState Empty = new UserAgentBlockingRuleState();

    /**
     * The configuration object for the current rule.
     * 
     */
    @Import(name="configuration")
    private @Nullable Output configuration;

    /**
     * @return The configuration object for the current rule.
     * 
     */
    public Optional> configuration() {
        return Optional.ofNullable(this.configuration);
    }

    /**
     * An informative summary of the rule.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return An informative summary of the rule.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The action to apply to a matched request. Available values: `block`, `challenge`, `js_challenge`, `managed_challenge`.
     * 
     */
    @Import(name="mode")
    private @Nullable Output mode;

    /**
     * @return The action to apply to a matched request. Available values: `block`, `challenge`, `js_challenge`, `managed_challenge`.
     * 
     */
    public Optional> mode() {
        return Optional.ofNullable(this.mode);
    }

    /**
     * When true, indicates that the rule is currently paused.
     * 
     */
    @Import(name="paused")
    private @Nullable Output paused;

    /**
     * @return When true, indicates that the rule is currently paused.
     * 
     */
    public Optional> paused() {
        return Optional.ofNullable(this.paused);
    }

    /**
     * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
     * 
     */
    @Import(name="zoneId")
    private @Nullable Output zoneId;

    /**
     * @return The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
     * 
     */
    public Optional> zoneId() {
        return Optional.ofNullable(this.zoneId);
    }

    private UserAgentBlockingRuleState() {}

    private UserAgentBlockingRuleState(UserAgentBlockingRuleState $) {
        this.configuration = $.configuration;
        this.description = $.description;
        this.mode = $.mode;
        this.paused = $.paused;
        this.zoneId = $.zoneId;
    }

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

    public static final class Builder {
        private UserAgentBlockingRuleState $;

        public Builder() {
            $ = new UserAgentBlockingRuleState();
        }

        public Builder(UserAgentBlockingRuleState defaults) {
            $ = new UserAgentBlockingRuleState(Objects.requireNonNull(defaults));
        }

        /**
         * @param configuration The configuration object for the current rule.
         * 
         * @return builder
         * 
         */
        public Builder configuration(@Nullable Output configuration) {
            $.configuration = configuration;
            return this;
        }

        /**
         * @param configuration The configuration object for the current rule.
         * 
         * @return builder
         * 
         */
        public Builder configuration(UserAgentBlockingRuleConfigurationArgs configuration) {
            return configuration(Output.of(configuration));
        }

        /**
         * @param description An informative summary of the rule.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description An informative summary of the rule.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param mode The action to apply to a matched request. Available values: `block`, `challenge`, `js_challenge`, `managed_challenge`.
         * 
         * @return builder
         * 
         */
        public Builder mode(@Nullable Output mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode The action to apply to a matched request. Available values: `block`, `challenge`, `js_challenge`, `managed_challenge`.
         * 
         * @return builder
         * 
         */
        public Builder mode(String mode) {
            return mode(Output.of(mode));
        }

        /**
         * @param paused When true, indicates that the rule is currently paused.
         * 
         * @return builder
         * 
         */
        public Builder paused(@Nullable Output paused) {
            $.paused = paused;
            return this;
        }

        /**
         * @param paused When true, indicates that the rule is currently paused.
         * 
         * @return builder
         * 
         */
        public Builder paused(Boolean paused) {
            return paused(Output.of(paused));
        }

        /**
         * @param zoneId The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
         * 
         * @return builder
         * 
         */
        public Builder zoneId(@Nullable Output zoneId) {
            $.zoneId = zoneId;
            return this;
        }

        /**
         * @param zoneId The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
         * 
         * @return builder
         * 
         */
        public Builder zoneId(String zoneId) {
            return zoneId(Output.of(zoneId));
        }

        public UserAgentBlockingRuleState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy