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

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

import com.pulumi.azurenative.network.inputs.RoutingConfigurationArgs;
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.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final HubVirtualNetworkConnectionArgs Empty = new HubVirtualNetworkConnectionArgs();

    /**
     * Deprecated: VirtualHub to RemoteVnet transit to enabled or not.
     * 
     */
    @Import(name="allowHubToRemoteVnetTransit")
    private @Nullable Output allowHubToRemoteVnetTransit;

    /**
     * @return Deprecated: VirtualHub to RemoteVnet transit to enabled or not.
     * 
     */
    public Optional> allowHubToRemoteVnetTransit() {
        return Optional.ofNullable(this.allowHubToRemoteVnetTransit);
    }

    /**
     * Deprecated: Allow RemoteVnet to use Virtual Hub's gateways.
     * 
     */
    @Import(name="allowRemoteVnetToUseHubVnetGateways")
    private @Nullable Output allowRemoteVnetToUseHubVnetGateways;

    /**
     * @return Deprecated: Allow RemoteVnet to use Virtual Hub's gateways.
     * 
     */
    public Optional> allowRemoteVnetToUseHubVnetGateways() {
        return Optional.ofNullable(this.allowRemoteVnetToUseHubVnetGateways);
    }

    /**
     * The name of the HubVirtualNetworkConnection.
     * 
     */
    @Import(name="connectionName")
    private @Nullable Output connectionName;

    /**
     * @return The name of the HubVirtualNetworkConnection.
     * 
     */
    public Optional> connectionName() {
        return Optional.ofNullable(this.connectionName);
    }

    /**
     * Enable internet security.
     * 
     */
    @Import(name="enableInternetSecurity")
    private @Nullable Output enableInternetSecurity;

    /**
     * @return Enable internet security.
     * 
     */
    public Optional> enableInternetSecurity() {
        return Optional.ofNullable(this.enableInternetSecurity);
    }

    /**
     * Resource ID.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

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

    /**
     * The name of the resource that is unique within a resource group. This name can be used to access the resource.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the resource that is unique within a resource group. This name can be used to access the resource.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Reference to the remote virtual network.
     * 
     */
    @Import(name="remoteVirtualNetwork")
    private @Nullable Output remoteVirtualNetwork;

    /**
     * @return Reference to the remote virtual network.
     * 
     */
    public Optional> remoteVirtualNetwork() {
        return Optional.ofNullable(this.remoteVirtualNetwork);
    }

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

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

    /**
     * The Routing Configuration indicating the associated and propagated route tables on this connection.
     * 
     */
    @Import(name="routingConfiguration")
    private @Nullable Output routingConfiguration;

    /**
     * @return The Routing Configuration indicating the associated and propagated route tables on this connection.
     * 
     */
    public Optional> routingConfiguration() {
        return Optional.ofNullable(this.routingConfiguration);
    }

    /**
     * The name of the VirtualHub.
     * 
     */
    @Import(name="virtualHubName", required=true)
    private Output virtualHubName;

    /**
     * @return The name of the VirtualHub.
     * 
     */
    public Output virtualHubName() {
        return this.virtualHubName;
    }

    private HubVirtualNetworkConnectionArgs() {}

    private HubVirtualNetworkConnectionArgs(HubVirtualNetworkConnectionArgs $) {
        this.allowHubToRemoteVnetTransit = $.allowHubToRemoteVnetTransit;
        this.allowRemoteVnetToUseHubVnetGateways = $.allowRemoteVnetToUseHubVnetGateways;
        this.connectionName = $.connectionName;
        this.enableInternetSecurity = $.enableInternetSecurity;
        this.id = $.id;
        this.name = $.name;
        this.remoteVirtualNetwork = $.remoteVirtualNetwork;
        this.resourceGroupName = $.resourceGroupName;
        this.routingConfiguration = $.routingConfiguration;
        this.virtualHubName = $.virtualHubName;
    }

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

    public static final class Builder {
        private HubVirtualNetworkConnectionArgs $;

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

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

        /**
         * @param allowHubToRemoteVnetTransit Deprecated: VirtualHub to RemoteVnet transit to enabled or not.
         * 
         * @return builder
         * 
         */
        public Builder allowHubToRemoteVnetTransit(@Nullable Output allowHubToRemoteVnetTransit) {
            $.allowHubToRemoteVnetTransit = allowHubToRemoteVnetTransit;
            return this;
        }

        /**
         * @param allowHubToRemoteVnetTransit Deprecated: VirtualHub to RemoteVnet transit to enabled or not.
         * 
         * @return builder
         * 
         */
        public Builder allowHubToRemoteVnetTransit(Boolean allowHubToRemoteVnetTransit) {
            return allowHubToRemoteVnetTransit(Output.of(allowHubToRemoteVnetTransit));
        }

        /**
         * @param allowRemoteVnetToUseHubVnetGateways Deprecated: Allow RemoteVnet to use Virtual Hub's gateways.
         * 
         * @return builder
         * 
         */
        public Builder allowRemoteVnetToUseHubVnetGateways(@Nullable Output allowRemoteVnetToUseHubVnetGateways) {
            $.allowRemoteVnetToUseHubVnetGateways = allowRemoteVnetToUseHubVnetGateways;
            return this;
        }

        /**
         * @param allowRemoteVnetToUseHubVnetGateways Deprecated: Allow RemoteVnet to use Virtual Hub's gateways.
         * 
         * @return builder
         * 
         */
        public Builder allowRemoteVnetToUseHubVnetGateways(Boolean allowRemoteVnetToUseHubVnetGateways) {
            return allowRemoteVnetToUseHubVnetGateways(Output.of(allowRemoteVnetToUseHubVnetGateways));
        }

        /**
         * @param connectionName The name of the HubVirtualNetworkConnection.
         * 
         * @return builder
         * 
         */
        public Builder connectionName(@Nullable Output connectionName) {
            $.connectionName = connectionName;
            return this;
        }

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

        /**
         * @param enableInternetSecurity Enable internet security.
         * 
         * @return builder
         * 
         */
        public Builder enableInternetSecurity(@Nullable Output enableInternetSecurity) {
            $.enableInternetSecurity = enableInternetSecurity;
            return this;
        }

        /**
         * @param enableInternetSecurity Enable internet security.
         * 
         * @return builder
         * 
         */
        public Builder enableInternetSecurity(Boolean enableInternetSecurity) {
            return enableInternetSecurity(Output.of(enableInternetSecurity));
        }

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

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param name The name of the resource that is unique within a resource group. This name can be used to access the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the resource that is unique within a resource group. This name can be used to access the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param remoteVirtualNetwork Reference to the remote virtual network.
         * 
         * @return builder
         * 
         */
        public Builder remoteVirtualNetwork(@Nullable Output remoteVirtualNetwork) {
            $.remoteVirtualNetwork = remoteVirtualNetwork;
            return this;
        }

        /**
         * @param remoteVirtualNetwork Reference to the remote virtual network.
         * 
         * @return builder
         * 
         */
        public Builder remoteVirtualNetwork(SubResourceArgs remoteVirtualNetwork) {
            return remoteVirtualNetwork(Output.of(remoteVirtualNetwork));
        }

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

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

        /**
         * @param routingConfiguration The Routing Configuration indicating the associated and propagated route tables on this connection.
         * 
         * @return builder
         * 
         */
        public Builder routingConfiguration(@Nullable Output routingConfiguration) {
            $.routingConfiguration = routingConfiguration;
            return this;
        }

        /**
         * @param routingConfiguration The Routing Configuration indicating the associated and propagated route tables on this connection.
         * 
         * @return builder
         * 
         */
        public Builder routingConfiguration(RoutingConfigurationArgs routingConfiguration) {
            return routingConfiguration(Output.of(routingConfiguration));
        }

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

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

        public HubVirtualNetworkConnectionArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("HubVirtualNetworkConnectionArgs", "resourceGroupName");
            }
            if ($.virtualHubName == null) {
                throw new MissingRequiredPropertyException("HubVirtualNetworkConnectionArgs", "virtualHubName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy