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

com.pulumi.azurenative.network.inputs.GetForwardingRuleArgs 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 GetForwardingRuleArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetForwardingRuleArgs Empty = new GetForwardingRuleArgs();

    /**
     * The name of the DNS forwarding ruleset.
     * 
     */
    @Import(name="dnsForwardingRulesetName", required=true)
    private Output dnsForwardingRulesetName;

    /**
     * @return The name of the DNS forwarding ruleset.
     * 
     */
    public Output dnsForwardingRulesetName() {
        return this.dnsForwardingRulesetName;
    }

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

    /**
     * @return The name of the forwarding rule.
     * 
     */
    public Output forwardingRuleName() {
        return this.forwardingRuleName;
    }

    /**
     * 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 GetForwardingRuleArgs() {}

    private GetForwardingRuleArgs(GetForwardingRuleArgs $) {
        this.dnsForwardingRulesetName = $.dnsForwardingRulesetName;
        this.forwardingRuleName = $.forwardingRuleName;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private GetForwardingRuleArgs $;

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

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

        /**
         * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
         * 
         * @return builder
         * 
         */
        public Builder dnsForwardingRulesetName(Output dnsForwardingRulesetName) {
            $.dnsForwardingRulesetName = dnsForwardingRulesetName;
            return this;
        }

        /**
         * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
         * 
         * @return builder
         * 
         */
        public Builder dnsForwardingRulesetName(String dnsForwardingRulesetName) {
            return dnsForwardingRulesetName(Output.of(dnsForwardingRulesetName));
        }

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

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

        /**
         * @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 GetForwardingRuleArgs build() {
            if ($.dnsForwardingRulesetName == null) {
                throw new MissingRequiredPropertyException("GetForwardingRuleArgs", "dnsForwardingRulesetName");
            }
            if ($.forwardingRuleName == null) {
                throw new MissingRequiredPropertyException("GetForwardingRuleArgs", "forwardingRuleName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("GetForwardingRuleArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy