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

com.pulumi.azurenative.network.inputs.DnsSecurityRuleActionArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** 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.network.inputs;

import com.pulumi.azurenative.network.enums.ActionType;
import com.pulumi.azurenative.network.enums.BlockResponseCode;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The action to take on DNS requests that match the DNS security rule.
 * 
 */
public final class DnsSecurityRuleActionArgs extends com.pulumi.resources.ResourceArgs {

    public static final DnsSecurityRuleActionArgs Empty = new DnsSecurityRuleActionArgs();

    /**
     * The type of action to take.
     * 
     */
    @Import(name="actionType")
    private @Nullable Output> actionType;

    /**
     * @return The type of action to take.
     * 
     */
    public Optional>> actionType() {
        return Optional.ofNullable(this.actionType);
    }

    /**
     * The response code for block actions.
     * 
     */
    @Import(name="blockResponseCode")
    private @Nullable Output> blockResponseCode;

    /**
     * @return The response code for block actions.
     * 
     */
    public Optional>> blockResponseCode() {
        return Optional.ofNullable(this.blockResponseCode);
    }

    private DnsSecurityRuleActionArgs() {}

    private DnsSecurityRuleActionArgs(DnsSecurityRuleActionArgs $) {
        this.actionType = $.actionType;
        this.blockResponseCode = $.blockResponseCode;
    }

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

    public static final class Builder {
        private DnsSecurityRuleActionArgs $;

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

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

        /**
         * @param actionType The type of action to take.
         * 
         * @return builder
         * 
         */
        public Builder actionType(@Nullable Output> actionType) {
            $.actionType = actionType;
            return this;
        }

        /**
         * @param actionType The type of action to take.
         * 
         * @return builder
         * 
         */
        public Builder actionType(Either actionType) {
            return actionType(Output.of(actionType));
        }

        /**
         * @param actionType The type of action to take.
         * 
         * @return builder
         * 
         */
        public Builder actionType(String actionType) {
            return actionType(Either.ofLeft(actionType));
        }

        /**
         * @param actionType The type of action to take.
         * 
         * @return builder
         * 
         */
        public Builder actionType(ActionType actionType) {
            return actionType(Either.ofRight(actionType));
        }

        /**
         * @param blockResponseCode The response code for block actions.
         * 
         * @return builder
         * 
         */
        public Builder blockResponseCode(@Nullable Output> blockResponseCode) {
            $.blockResponseCode = blockResponseCode;
            return this;
        }

        /**
         * @param blockResponseCode The response code for block actions.
         * 
         * @return builder
         * 
         */
        public Builder blockResponseCode(Either blockResponseCode) {
            return blockResponseCode(Output.of(blockResponseCode));
        }

        /**
         * @param blockResponseCode The response code for block actions.
         * 
         * @return builder
         * 
         */
        public Builder blockResponseCode(String blockResponseCode) {
            return blockResponseCode(Either.ofLeft(blockResponseCode));
        }

        /**
         * @param blockResponseCode The response code for block actions.
         * 
         * @return builder
         * 
         */
        public Builder blockResponseCode(BlockResponseCode blockResponseCode) {
            return blockResponseCode(Either.ofRight(blockResponseCode));
        }

        public DnsSecurityRuleActionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy