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

com.pulumi.azurenative.network.OutboundEndpointArgs 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;

import com.pulumi.azurenative.network.inputs.SubResourceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final OutboundEndpointArgs Empty = new OutboundEndpointArgs();

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

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

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The name of the outbound endpoint for the DNS resolver.
     * 
     */
    @Import(name="outboundEndpointName")
    private @Nullable Output outboundEndpointName;

    /**
     * @return The name of the outbound endpoint for the DNS resolver.
     * 
     */
    public Optional> outboundEndpointName() {
        return Optional.ofNullable(this.outboundEndpointName);
    }

    /**
     * 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;
    }

    /**
     * The reference to the subnet used for the outbound endpoint.
     * 
     */
    @Import(name="subnet", required=true)
    private Output subnet;

    /**
     * @return The reference to the subnet used for the outbound endpoint.
     * 
     */
    public Output subnet() {
        return this.subnet;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private OutboundEndpointArgs() {}

    private OutboundEndpointArgs(OutboundEndpointArgs $) {
        this.dnsResolverName = $.dnsResolverName;
        this.location = $.location;
        this.outboundEndpointName = $.outboundEndpointName;
        this.resourceGroupName = $.resourceGroupName;
        this.subnet = $.subnet;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private OutboundEndpointArgs $;

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

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

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

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

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param outboundEndpointName The name of the outbound endpoint for the DNS resolver.
         * 
         * @return builder
         * 
         */
        public Builder outboundEndpointName(@Nullable Output outboundEndpointName) {
            $.outboundEndpointName = outboundEndpointName;
            return this;
        }

        /**
         * @param outboundEndpointName The name of the outbound endpoint for the DNS resolver.
         * 
         * @return builder
         * 
         */
        public Builder outboundEndpointName(String outboundEndpointName) {
            return outboundEndpointName(Output.of(outboundEndpointName));
        }

        /**
         * @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));
        }

        /**
         * @param subnet The reference to the subnet used for the outbound endpoint.
         * 
         * @return builder
         * 
         */
        public Builder subnet(Output subnet) {
            $.subnet = subnet;
            return this;
        }

        /**
         * @param subnet The reference to the subnet used for the outbound endpoint.
         * 
         * @return builder
         * 
         */
        public Builder subnet(SubResourceArgs subnet) {
            return subnet(Output.of(subnet));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public OutboundEndpointArgs build() {
            if ($.dnsResolverName == null) {
                throw new MissingRequiredPropertyException("OutboundEndpointArgs", "dnsResolverName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("OutboundEndpointArgs", "resourceGroupName");
            }
            if ($.subnet == null) {
                throw new MissingRequiredPropertyException("OutboundEndpointArgs", "subnet");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy