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

com.pulumi.scm.outputs.AntiSpywareSignatureDefaultAction 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.scm.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.scm.outputs.AntiSpywareSignatureDefaultActionBlockIp;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AntiSpywareSignatureDefaultAction {
    /**
     * @return The Alert param. Ensure that only one of the following is specified: `alert`, `allow`, `block_ip`, `drop`, `reset_both`, `reset_client`, `reset_server`
     * 
     */
    private @Nullable Boolean alert;
    /**
     * @return The Allow param. Ensure that only one of the following is specified: `alert`, `allow`, `block_ip`, `drop`, `reset_both`, `reset_client`, `reset_server`
     * 
     */
    private @Nullable Boolean allow;
    /**
     * @return The BlockIp param. Ensure that only one of the following is specified: `alert`, `allow`, `block_ip`, `drop`, `reset_both`, `reset_client`, `reset_server`
     * 
     */
    private @Nullable AntiSpywareSignatureDefaultActionBlockIp blockIp;
    /**
     * @return The Drop param. Ensure that only one of the following is specified: `alert`, `allow`, `block_ip`, `drop`, `reset_both`, `reset_client`, `reset_server`
     * 
     */
    private @Nullable Boolean drop;
    /**
     * @return The ResetBoth param. Ensure that only one of the following is specified: `alert`, `allow`, `block_ip`, `drop`, `reset_both`, `reset_client`, `reset_server`
     * 
     */
    private @Nullable Boolean resetBoth;
    /**
     * @return The ResetClient param. Ensure that only one of the following is specified: `alert`, `allow`, `block_ip`, `drop`, `reset_both`, `reset_client`, `reset_server`
     * 
     */
    private @Nullable Boolean resetClient;
    /**
     * @return The ResetServer param. Ensure that only one of the following is specified: `alert`, `allow`, `block_ip`, `drop`, `reset_both`, `reset_client`, `reset_server`
     * 
     */
    private @Nullable Boolean resetServer;

    private AntiSpywareSignatureDefaultAction() {}
    /**
     * @return The Alert param. Ensure that only one of the following is specified: `alert`, `allow`, `block_ip`, `drop`, `reset_both`, `reset_client`, `reset_server`
     * 
     */
    public Optional alert() {
        return Optional.ofNullable(this.alert);
    }
    /**
     * @return The Allow param. Ensure that only one of the following is specified: `alert`, `allow`, `block_ip`, `drop`, `reset_both`, `reset_client`, `reset_server`
     * 
     */
    public Optional allow() {
        return Optional.ofNullable(this.allow);
    }
    /**
     * @return The BlockIp param. Ensure that only one of the following is specified: `alert`, `allow`, `block_ip`, `drop`, `reset_both`, `reset_client`, `reset_server`
     * 
     */
    public Optional blockIp() {
        return Optional.ofNullable(this.blockIp);
    }
    /**
     * @return The Drop param. Ensure that only one of the following is specified: `alert`, `allow`, `block_ip`, `drop`, `reset_both`, `reset_client`, `reset_server`
     * 
     */
    public Optional drop() {
        return Optional.ofNullable(this.drop);
    }
    /**
     * @return The ResetBoth param. Ensure that only one of the following is specified: `alert`, `allow`, `block_ip`, `drop`, `reset_both`, `reset_client`, `reset_server`
     * 
     */
    public Optional resetBoth() {
        return Optional.ofNullable(this.resetBoth);
    }
    /**
     * @return The ResetClient param. Ensure that only one of the following is specified: `alert`, `allow`, `block_ip`, `drop`, `reset_both`, `reset_client`, `reset_server`
     * 
     */
    public Optional resetClient() {
        return Optional.ofNullable(this.resetClient);
    }
    /**
     * @return The ResetServer param. Ensure that only one of the following is specified: `alert`, `allow`, `block_ip`, `drop`, `reset_both`, `reset_client`, `reset_server`
     * 
     */
    public Optional resetServer() {
        return Optional.ofNullable(this.resetServer);
    }

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

    public static Builder builder(AntiSpywareSignatureDefaultAction defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean alert;
        private @Nullable Boolean allow;
        private @Nullable AntiSpywareSignatureDefaultActionBlockIp blockIp;
        private @Nullable Boolean drop;
        private @Nullable Boolean resetBoth;
        private @Nullable Boolean resetClient;
        private @Nullable Boolean resetServer;
        public Builder() {}
        public Builder(AntiSpywareSignatureDefaultAction defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.alert = defaults.alert;
    	      this.allow = defaults.allow;
    	      this.blockIp = defaults.blockIp;
    	      this.drop = defaults.drop;
    	      this.resetBoth = defaults.resetBoth;
    	      this.resetClient = defaults.resetClient;
    	      this.resetServer = defaults.resetServer;
        }

        @CustomType.Setter
        public Builder alert(@Nullable Boolean alert) {

            this.alert = alert;
            return this;
        }
        @CustomType.Setter
        public Builder allow(@Nullable Boolean allow) {

            this.allow = allow;
            return this;
        }
        @CustomType.Setter
        public Builder blockIp(@Nullable AntiSpywareSignatureDefaultActionBlockIp blockIp) {

            this.blockIp = blockIp;
            return this;
        }
        @CustomType.Setter
        public Builder drop(@Nullable Boolean drop) {

            this.drop = drop;
            return this;
        }
        @CustomType.Setter
        public Builder resetBoth(@Nullable Boolean resetBoth) {

            this.resetBoth = resetBoth;
            return this;
        }
        @CustomType.Setter
        public Builder resetClient(@Nullable Boolean resetClient) {

            this.resetClient = resetClient;
            return this;
        }
        @CustomType.Setter
        public Builder resetServer(@Nullable Boolean resetServer) {

            this.resetServer = resetServer;
            return this;
        }
        public AntiSpywareSignatureDefaultAction build() {
            final var _resultValue = new AntiSpywareSignatureDefaultAction();
            _resultValue.alert = alert;
            _resultValue.allow = allow;
            _resultValue.blockIp = blockIp;
            _resultValue.drop = drop;
            _resultValue.resetBoth = resetBoth;
            _resultValue.resetClient = resetClient;
            _resultValue.resetServer = resetServer;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy