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

com.pulumi.azure.network.VirtualHubConnectionArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.network;

import com.pulumi.azure.network.inputs.VirtualHubConnectionRoutingArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final VirtualHubConnectionArgs Empty = new VirtualHubConnectionArgs();

    /**
     * Should Internet Security be enabled to secure internet traffic? Defaults to `false`.
     * 
     */
    @Import(name="internetSecurityEnabled")
    private @Nullable Output internetSecurityEnabled;

    /**
     * @return Should Internet Security be enabled to secure internet traffic? Defaults to `false`.
     * 
     */
    public Optional> internetSecurityEnabled() {
        return Optional.ofNullable(this.internetSecurityEnabled);
    }

    /**
     * The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="remoteVirtualNetworkId", required=true)
    private Output remoteVirtualNetworkId;

    /**
     * @return The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
     * 
     */
    public Output remoteVirtualNetworkId() {
        return this.remoteVirtualNetworkId;
    }

    /**
     * A `routing` block as defined below.
     * 
     */
    @Import(name="routing")
    private @Nullable Output routing;

    /**
     * @return A `routing` block as defined below.
     * 
     */
    public Optional> routing() {
        return Optional.ofNullable(this.routing);
    }

    /**
     * The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="virtualHubId", required=true)
    private Output virtualHubId;

    /**
     * @return The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
     * 
     */
    public Output virtualHubId() {
        return this.virtualHubId;
    }

    private VirtualHubConnectionArgs() {}

    private VirtualHubConnectionArgs(VirtualHubConnectionArgs $) {
        this.internetSecurityEnabled = $.internetSecurityEnabled;
        this.name = $.name;
        this.remoteVirtualNetworkId = $.remoteVirtualNetworkId;
        this.routing = $.routing;
        this.virtualHubId = $.virtualHubId;
    }

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

    public static final class Builder {
        private VirtualHubConnectionArgs $;

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

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

        /**
         * @param internetSecurityEnabled Should Internet Security be enabled to secure internet traffic? Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder internetSecurityEnabled(@Nullable Output internetSecurityEnabled) {
            $.internetSecurityEnabled = internetSecurityEnabled;
            return this;
        }

        /**
         * @param internetSecurityEnabled Should Internet Security be enabled to secure internet traffic? Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder internetSecurityEnabled(Boolean internetSecurityEnabled) {
            return internetSecurityEnabled(Output.of(internetSecurityEnabled));
        }

        /**
         * @param name The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param remoteVirtualNetworkId The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder remoteVirtualNetworkId(Output remoteVirtualNetworkId) {
            $.remoteVirtualNetworkId = remoteVirtualNetworkId;
            return this;
        }

        /**
         * @param remoteVirtualNetworkId The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder remoteVirtualNetworkId(String remoteVirtualNetworkId) {
            return remoteVirtualNetworkId(Output.of(remoteVirtualNetworkId));
        }

        /**
         * @param routing A `routing` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder routing(@Nullable Output routing) {
            $.routing = routing;
            return this;
        }

        /**
         * @param routing A `routing` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder routing(VirtualHubConnectionRoutingArgs routing) {
            return routing(Output.of(routing));
        }

        /**
         * @param virtualHubId The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder virtualHubId(Output virtualHubId) {
            $.virtualHubId = virtualHubId;
            return this;
        }

        /**
         * @param virtualHubId The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder virtualHubId(String virtualHubId) {
            return virtualHubId(Output.of(virtualHubId));
        }

        public VirtualHubConnectionArgs build() {
            if ($.remoteVirtualNetworkId == null) {
                throw new MissingRequiredPropertyException("VirtualHubConnectionArgs", "remoteVirtualNetworkId");
            }
            if ($.virtualHubId == null) {
                throw new MissingRequiredPropertyException("VirtualHubConnectionArgs", "virtualHubId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy