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

com.pulumi.azurenative.network.VpnConnectionArgs 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.enums.VirtualNetworkGatewayConnectionProtocol;
import com.pulumi.azurenative.network.inputs.IpsecPolicyArgs;
import com.pulumi.azurenative.network.inputs.RoutingConfigurationArgs;
import com.pulumi.azurenative.network.inputs.SubResourceArgs;
import com.pulumi.azurenative.network.inputs.TrafficSelectorPolicyArgs;
import com.pulumi.azurenative.network.inputs.VpnSiteLinkConnectionArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final VpnConnectionArgs Empty = new VpnConnectionArgs();

    /**
     * Expected bandwidth in MBPS.
     * 
     */
    @Import(name="connectionBandwidth")
    private @Nullable Output connectionBandwidth;

    /**
     * @return Expected bandwidth in MBPS.
     * 
     */
    public Optional> connectionBandwidth() {
        return Optional.ofNullable(this.connectionBandwidth);
    }

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

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

    /**
     * DPD timeout in seconds for vpn connection.
     * 
     */
    @Import(name="dpdTimeoutSeconds")
    private @Nullable Output dpdTimeoutSeconds;

    /**
     * @return DPD timeout in seconds for vpn connection.
     * 
     */
    public Optional> dpdTimeoutSeconds() {
        return Optional.ofNullable(this.dpdTimeoutSeconds);
    }

    /**
     * EnableBgp flag.
     * 
     */
    @Import(name="enableBgp")
    private @Nullable Output enableBgp;

    /**
     * @return EnableBgp flag.
     * 
     */
    public Optional> enableBgp() {
        return Optional.ofNullable(this.enableBgp);
    }

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

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

    /**
     * EnableBgp flag.
     * 
     */
    @Import(name="enableRateLimiting")
    private @Nullable Output enableRateLimiting;

    /**
     * @return EnableBgp flag.
     * 
     */
    public Optional> enableRateLimiting() {
        return Optional.ofNullable(this.enableRateLimiting);
    }

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

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

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

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

    /**
     * The IPSec Policies to be considered by this connection.
     * 
     */
    @Import(name="ipsecPolicies")
    private @Nullable Output> ipsecPolicies;

    /**
     * @return The IPSec Policies to be considered by this connection.
     * 
     */
    public Optional>> ipsecPolicies() {
        return Optional.ofNullable(this.ipsecPolicies);
    }

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

    /**
     * Id of the connected vpn site.
     * 
     */
    @Import(name="remoteVpnSite")
    private @Nullable Output remoteVpnSite;

    /**
     * @return Id of the connected vpn site.
     * 
     */
    public Optional> remoteVpnSite() {
        return Optional.ofNullable(this.remoteVpnSite);
    }

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

    /**
     * @return The resource group name of the VpnGateway.
     * 
     */
    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);
    }

    /**
     * Routing weight for vpn connection.
     * 
     */
    @Import(name="routingWeight")
    private @Nullable Output routingWeight;

    /**
     * @return Routing weight for vpn connection.
     * 
     */
    public Optional> routingWeight() {
        return Optional.ofNullable(this.routingWeight);
    }

    /**
     * SharedKey for the vpn connection.
     * 
     */
    @Import(name="sharedKey")
    private @Nullable Output sharedKey;

    /**
     * @return SharedKey for the vpn connection.
     * 
     */
    public Optional> sharedKey() {
        return Optional.ofNullable(this.sharedKey);
    }

    /**
     * The Traffic Selector Policies to be considered by this connection.
     * 
     */
    @Import(name="trafficSelectorPolicies")
    private @Nullable Output> trafficSelectorPolicies;

    /**
     * @return The Traffic Selector Policies to be considered by this connection.
     * 
     */
    public Optional>> trafficSelectorPolicies() {
        return Optional.ofNullable(this.trafficSelectorPolicies);
    }

    /**
     * Use local azure ip to initiate connection.
     * 
     */
    @Import(name="useLocalAzureIpAddress")
    private @Nullable Output useLocalAzureIpAddress;

    /**
     * @return Use local azure ip to initiate connection.
     * 
     */
    public Optional> useLocalAzureIpAddress() {
        return Optional.ofNullable(this.useLocalAzureIpAddress);
    }

    /**
     * Enable policy-based traffic selectors.
     * 
     */
    @Import(name="usePolicyBasedTrafficSelectors")
    private @Nullable Output usePolicyBasedTrafficSelectors;

    /**
     * @return Enable policy-based traffic selectors.
     * 
     */
    public Optional> usePolicyBasedTrafficSelectors() {
        return Optional.ofNullable(this.usePolicyBasedTrafficSelectors);
    }

    /**
     * Connection protocol used for this connection.
     * 
     */
    @Import(name="vpnConnectionProtocolType")
    private @Nullable Output> vpnConnectionProtocolType;

    /**
     * @return Connection protocol used for this connection.
     * 
     */
    public Optional>> vpnConnectionProtocolType() {
        return Optional.ofNullable(this.vpnConnectionProtocolType);
    }

    /**
     * List of all vpn site link connections to the gateway.
     * 
     */
    @Import(name="vpnLinkConnections")
    private @Nullable Output> vpnLinkConnections;

    /**
     * @return List of all vpn site link connections to the gateway.
     * 
     */
    public Optional>> vpnLinkConnections() {
        return Optional.ofNullable(this.vpnLinkConnections);
    }

    private VpnConnectionArgs() {}

    private VpnConnectionArgs(VpnConnectionArgs $) {
        this.connectionBandwidth = $.connectionBandwidth;
        this.connectionName = $.connectionName;
        this.dpdTimeoutSeconds = $.dpdTimeoutSeconds;
        this.enableBgp = $.enableBgp;
        this.enableInternetSecurity = $.enableInternetSecurity;
        this.enableRateLimiting = $.enableRateLimiting;
        this.gatewayName = $.gatewayName;
        this.id = $.id;
        this.ipsecPolicies = $.ipsecPolicies;
        this.name = $.name;
        this.remoteVpnSite = $.remoteVpnSite;
        this.resourceGroupName = $.resourceGroupName;
        this.routingConfiguration = $.routingConfiguration;
        this.routingWeight = $.routingWeight;
        this.sharedKey = $.sharedKey;
        this.trafficSelectorPolicies = $.trafficSelectorPolicies;
        this.useLocalAzureIpAddress = $.useLocalAzureIpAddress;
        this.usePolicyBasedTrafficSelectors = $.usePolicyBasedTrafficSelectors;
        this.vpnConnectionProtocolType = $.vpnConnectionProtocolType;
        this.vpnLinkConnections = $.vpnLinkConnections;
    }

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

    public static final class Builder {
        private VpnConnectionArgs $;

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

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

        /**
         * @param connectionBandwidth Expected bandwidth in MBPS.
         * 
         * @return builder
         * 
         */
        public Builder connectionBandwidth(@Nullable Output connectionBandwidth) {
            $.connectionBandwidth = connectionBandwidth;
            return this;
        }

        /**
         * @param connectionBandwidth Expected bandwidth in MBPS.
         * 
         * @return builder
         * 
         */
        public Builder connectionBandwidth(Integer connectionBandwidth) {
            return connectionBandwidth(Output.of(connectionBandwidth));
        }

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

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

        /**
         * @param dpdTimeoutSeconds DPD timeout in seconds for vpn connection.
         * 
         * @return builder
         * 
         */
        public Builder dpdTimeoutSeconds(@Nullable Output dpdTimeoutSeconds) {
            $.dpdTimeoutSeconds = dpdTimeoutSeconds;
            return this;
        }

        /**
         * @param dpdTimeoutSeconds DPD timeout in seconds for vpn connection.
         * 
         * @return builder
         * 
         */
        public Builder dpdTimeoutSeconds(Integer dpdTimeoutSeconds) {
            return dpdTimeoutSeconds(Output.of(dpdTimeoutSeconds));
        }

        /**
         * @param enableBgp EnableBgp flag.
         * 
         * @return builder
         * 
         */
        public Builder enableBgp(@Nullable Output enableBgp) {
            $.enableBgp = enableBgp;
            return this;
        }

        /**
         * @param enableBgp EnableBgp flag.
         * 
         * @return builder
         * 
         */
        public Builder enableBgp(Boolean enableBgp) {
            return enableBgp(Output.of(enableBgp));
        }

        /**
         * @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 enableRateLimiting EnableBgp flag.
         * 
         * @return builder
         * 
         */
        public Builder enableRateLimiting(@Nullable Output enableRateLimiting) {
            $.enableRateLimiting = enableRateLimiting;
            return this;
        }

        /**
         * @param enableRateLimiting EnableBgp flag.
         * 
         * @return builder
         * 
         */
        public Builder enableRateLimiting(Boolean enableRateLimiting) {
            return enableRateLimiting(Output.of(enableRateLimiting));
        }

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

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

        /**
         * @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 ipsecPolicies The IPSec Policies to be considered by this connection.
         * 
         * @return builder
         * 
         */
        public Builder ipsecPolicies(@Nullable Output> ipsecPolicies) {
            $.ipsecPolicies = ipsecPolicies;
            return this;
        }

        /**
         * @param ipsecPolicies The IPSec Policies to be considered by this connection.
         * 
         * @return builder
         * 
         */
        public Builder ipsecPolicies(List ipsecPolicies) {
            return ipsecPolicies(Output.of(ipsecPolicies));
        }

        /**
         * @param ipsecPolicies The IPSec Policies to be considered by this connection.
         * 
         * @return builder
         * 
         */
        public Builder ipsecPolicies(IpsecPolicyArgs... ipsecPolicies) {
            return ipsecPolicies(List.of(ipsecPolicies));
        }

        /**
         * @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 remoteVpnSite Id of the connected vpn site.
         * 
         * @return builder
         * 
         */
        public Builder remoteVpnSite(@Nullable Output remoteVpnSite) {
            $.remoteVpnSite = remoteVpnSite;
            return this;
        }

        /**
         * @param remoteVpnSite Id of the connected vpn site.
         * 
         * @return builder
         * 
         */
        public Builder remoteVpnSite(SubResourceArgs remoteVpnSite) {
            return remoteVpnSite(Output.of(remoteVpnSite));
        }

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

        /**
         * @param resourceGroupName The resource group name of the VpnGateway.
         * 
         * @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 routingWeight Routing weight for vpn connection.
         * 
         * @return builder
         * 
         */
        public Builder routingWeight(@Nullable Output routingWeight) {
            $.routingWeight = routingWeight;
            return this;
        }

        /**
         * @param routingWeight Routing weight for vpn connection.
         * 
         * @return builder
         * 
         */
        public Builder routingWeight(Integer routingWeight) {
            return routingWeight(Output.of(routingWeight));
        }

        /**
         * @param sharedKey SharedKey for the vpn connection.
         * 
         * @return builder
         * 
         */
        public Builder sharedKey(@Nullable Output sharedKey) {
            $.sharedKey = sharedKey;
            return this;
        }

        /**
         * @param sharedKey SharedKey for the vpn connection.
         * 
         * @return builder
         * 
         */
        public Builder sharedKey(String sharedKey) {
            return sharedKey(Output.of(sharedKey));
        }

        /**
         * @param trafficSelectorPolicies The Traffic Selector Policies to be considered by this connection.
         * 
         * @return builder
         * 
         */
        public Builder trafficSelectorPolicies(@Nullable Output> trafficSelectorPolicies) {
            $.trafficSelectorPolicies = trafficSelectorPolicies;
            return this;
        }

        /**
         * @param trafficSelectorPolicies The Traffic Selector Policies to be considered by this connection.
         * 
         * @return builder
         * 
         */
        public Builder trafficSelectorPolicies(List trafficSelectorPolicies) {
            return trafficSelectorPolicies(Output.of(trafficSelectorPolicies));
        }

        /**
         * @param trafficSelectorPolicies The Traffic Selector Policies to be considered by this connection.
         * 
         * @return builder
         * 
         */
        public Builder trafficSelectorPolicies(TrafficSelectorPolicyArgs... trafficSelectorPolicies) {
            return trafficSelectorPolicies(List.of(trafficSelectorPolicies));
        }

        /**
         * @param useLocalAzureIpAddress Use local azure ip to initiate connection.
         * 
         * @return builder
         * 
         */
        public Builder useLocalAzureIpAddress(@Nullable Output useLocalAzureIpAddress) {
            $.useLocalAzureIpAddress = useLocalAzureIpAddress;
            return this;
        }

        /**
         * @param useLocalAzureIpAddress Use local azure ip to initiate connection.
         * 
         * @return builder
         * 
         */
        public Builder useLocalAzureIpAddress(Boolean useLocalAzureIpAddress) {
            return useLocalAzureIpAddress(Output.of(useLocalAzureIpAddress));
        }

        /**
         * @param usePolicyBasedTrafficSelectors Enable policy-based traffic selectors.
         * 
         * @return builder
         * 
         */
        public Builder usePolicyBasedTrafficSelectors(@Nullable Output usePolicyBasedTrafficSelectors) {
            $.usePolicyBasedTrafficSelectors = usePolicyBasedTrafficSelectors;
            return this;
        }

        /**
         * @param usePolicyBasedTrafficSelectors Enable policy-based traffic selectors.
         * 
         * @return builder
         * 
         */
        public Builder usePolicyBasedTrafficSelectors(Boolean usePolicyBasedTrafficSelectors) {
            return usePolicyBasedTrafficSelectors(Output.of(usePolicyBasedTrafficSelectors));
        }

        /**
         * @param vpnConnectionProtocolType Connection protocol used for this connection.
         * 
         * @return builder
         * 
         */
        public Builder vpnConnectionProtocolType(@Nullable Output> vpnConnectionProtocolType) {
            $.vpnConnectionProtocolType = vpnConnectionProtocolType;
            return this;
        }

        /**
         * @param vpnConnectionProtocolType Connection protocol used for this connection.
         * 
         * @return builder
         * 
         */
        public Builder vpnConnectionProtocolType(Either vpnConnectionProtocolType) {
            return vpnConnectionProtocolType(Output.of(vpnConnectionProtocolType));
        }

        /**
         * @param vpnConnectionProtocolType Connection protocol used for this connection.
         * 
         * @return builder
         * 
         */
        public Builder vpnConnectionProtocolType(String vpnConnectionProtocolType) {
            return vpnConnectionProtocolType(Either.ofLeft(vpnConnectionProtocolType));
        }

        /**
         * @param vpnConnectionProtocolType Connection protocol used for this connection.
         * 
         * @return builder
         * 
         */
        public Builder vpnConnectionProtocolType(VirtualNetworkGatewayConnectionProtocol vpnConnectionProtocolType) {
            return vpnConnectionProtocolType(Either.ofRight(vpnConnectionProtocolType));
        }

        /**
         * @param vpnLinkConnections List of all vpn site link connections to the gateway.
         * 
         * @return builder
         * 
         */
        public Builder vpnLinkConnections(@Nullable Output> vpnLinkConnections) {
            $.vpnLinkConnections = vpnLinkConnections;
            return this;
        }

        /**
         * @param vpnLinkConnections List of all vpn site link connections to the gateway.
         * 
         * @return builder
         * 
         */
        public Builder vpnLinkConnections(List vpnLinkConnections) {
            return vpnLinkConnections(Output.of(vpnLinkConnections));
        }

        /**
         * @param vpnLinkConnections List of all vpn site link connections to the gateway.
         * 
         * @return builder
         * 
         */
        public Builder vpnLinkConnections(VpnSiteLinkConnectionArgs... vpnLinkConnections) {
            return vpnLinkConnections(List.of(vpnLinkConnections));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy