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

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

There is a newer version: 2.78.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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


public final class GetDnsSecurityRuleArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetDnsSecurityRuleArgs Empty = new GetDnsSecurityRuleArgs();

    /**
     * The name of the DNS resolver policy.
     * 
     */
    @Import(name="dnsResolverPolicyName", required=true)
    private Output dnsResolverPolicyName;

    /**
     * @return The name of the DNS resolver policy.
     * 
     */
    public Output dnsResolverPolicyName() {
        return this.dnsResolverPolicyName;
    }

    /**
     * The name of the DNS security rule.
     * 
     */
    @Import(name="dnsSecurityRuleName", required=true)
    private Output dnsSecurityRuleName;

    /**
     * @return The name of the DNS security rule.
     * 
     */
    public Output dnsSecurityRuleName() {
        return this.dnsSecurityRuleName;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private GetDnsSecurityRuleArgs() {}

    private GetDnsSecurityRuleArgs(GetDnsSecurityRuleArgs $) {
        this.dnsResolverPolicyName = $.dnsResolverPolicyName;
        this.dnsSecurityRuleName = $.dnsSecurityRuleName;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private GetDnsSecurityRuleArgs $;

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

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

        /**
         * @param dnsResolverPolicyName The name of the DNS resolver policy.
         * 
         * @return builder
         * 
         */
        public Builder dnsResolverPolicyName(Output dnsResolverPolicyName) {
            $.dnsResolverPolicyName = dnsResolverPolicyName;
            return this;
        }

        /**
         * @param dnsResolverPolicyName The name of the DNS resolver policy.
         * 
         * @return builder
         * 
         */
        public Builder dnsResolverPolicyName(String dnsResolverPolicyName) {
            return dnsResolverPolicyName(Output.of(dnsResolverPolicyName));
        }

        /**
         * @param dnsSecurityRuleName The name of the DNS security rule.
         * 
         * @return builder
         * 
         */
        public Builder dnsSecurityRuleName(Output dnsSecurityRuleName) {
            $.dnsSecurityRuleName = dnsSecurityRuleName;
            return this;
        }

        /**
         * @param dnsSecurityRuleName The name of the DNS security rule.
         * 
         * @return builder
         * 
         */
        public Builder dnsSecurityRuleName(String dnsSecurityRuleName) {
            return dnsSecurityRuleName(Output.of(dnsSecurityRuleName));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public GetDnsSecurityRuleArgs build() {
            if ($.dnsResolverPolicyName == null) {
                throw new MissingRequiredPropertyException("GetDnsSecurityRuleArgs", "dnsResolverPolicyName");
            }
            if ($.dnsSecurityRuleName == null) {
                throw new MissingRequiredPropertyException("GetDnsSecurityRuleArgs", "dnsSecurityRuleName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("GetDnsSecurityRuleArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy