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

com.pulumi.azurenative.network.VirtualNetworkGatewayConnectionArgs Maven / Gradle / Ivy

// *** 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.VirtualNetworkGatewayConnectionMode;
import com.pulumi.azurenative.network.enums.VirtualNetworkGatewayConnectionProtocol;
import com.pulumi.azurenative.network.enums.VirtualNetworkGatewayConnectionType;
import com.pulumi.azurenative.network.inputs.GatewayCustomBgpIpAddressIpConfigurationArgs;
import com.pulumi.azurenative.network.inputs.IpsecPolicyArgs;
import com.pulumi.azurenative.network.inputs.LocalNetworkGatewayArgs;
import com.pulumi.azurenative.network.inputs.SubResourceArgs;
import com.pulumi.azurenative.network.inputs.TrafficSelectorPolicyArgs;
import com.pulumi.azurenative.network.inputs.VirtualNetworkGatewayArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final VirtualNetworkGatewayConnectionArgs Empty = new VirtualNetworkGatewayConnectionArgs();

    /**
     * The authorizationKey.
     * 
     */
    @Import(name="authorizationKey")
    private @Nullable Output authorizationKey;

    /**
     * @return The authorizationKey.
     * 
     */
    public Optional> authorizationKey() {
        return Optional.ofNullable(this.authorizationKey);
    }

    /**
     * The connection mode for this connection.
     * 
     */
    @Import(name="connectionMode")
    private @Nullable Output> connectionMode;

    /**
     * @return The connection mode for this connection.
     * 
     */
    public Optional>> connectionMode() {
        return Optional.ofNullable(this.connectionMode);
    }

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

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

    /**
     * Gateway connection type.
     * 
     */
    @Import(name="connectionType", required=true)
    private Output> connectionType;

    /**
     * @return Gateway connection type.
     * 
     */
    public Output> connectionType() {
        return this.connectionType;
    }

    /**
     * The dead peer detection timeout of this connection in seconds.
     * 
     */
    @Import(name="dpdTimeoutSeconds")
    private @Nullable Output dpdTimeoutSeconds;

    /**
     * @return The dead peer detection timeout of this connection in seconds.
     * 
     */
    public Optional> dpdTimeoutSeconds() {
        return Optional.ofNullable(this.dpdTimeoutSeconds);
    }

    /**
     * List of egress NatRules.
     * 
     */
    @Import(name="egressNatRules")
    private @Nullable Output> egressNatRules;

    /**
     * @return List of egress NatRules.
     * 
     */
    public Optional>> egressNatRules() {
        return Optional.ofNullable(this.egressNatRules);
    }

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

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

    /**
     * Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled.
     * 
     */
    @Import(name="enablePrivateLinkFastPath")
    private @Nullable Output enablePrivateLinkFastPath;

    /**
     * @return Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled.
     * 
     */
    public Optional> enablePrivateLinkFastPath() {
        return Optional.ofNullable(this.enablePrivateLinkFastPath);
    }

    /**
     * Bypass ExpressRoute Gateway for data forwarding.
     * 
     */
    @Import(name="expressRouteGatewayBypass")
    private @Nullable Output expressRouteGatewayBypass;

    /**
     * @return Bypass ExpressRoute Gateway for data forwarding.
     * 
     */
    public Optional> expressRouteGatewayBypass() {
        return Optional.ofNullable(this.expressRouteGatewayBypass);
    }

    /**
     * GatewayCustomBgpIpAddresses to be used for virtual network gateway Connection.
     * 
     */
    @Import(name="gatewayCustomBgpIpAddresses")
    private @Nullable Output> gatewayCustomBgpIpAddresses;

    /**
     * @return GatewayCustomBgpIpAddresses to be used for virtual network gateway Connection.
     * 
     */
    public Optional>> gatewayCustomBgpIpAddresses() {
        return Optional.ofNullable(this.gatewayCustomBgpIpAddresses);
    }

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

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

    /**
     * List of ingress NatRules.
     * 
     */
    @Import(name="ingressNatRules")
    private @Nullable Output> ingressNatRules;

    /**
     * @return List of ingress NatRules.
     * 
     */
    public Optional>> ingressNatRules() {
        return Optional.ofNullable(this.ingressNatRules);
    }

    /**
     * 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 reference to local network gateway resource.
     * 
     */
    @Import(name="localNetworkGateway2")
    private @Nullable Output localNetworkGateway2;

    /**
     * @return The reference to local network gateway resource.
     * 
     */
    public Optional> localNetworkGateway2() {
        return Optional.ofNullable(this.localNetworkGateway2);
    }

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

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

    /**
     * The reference to peerings resource.
     * 
     */
    @Import(name="peer")
    private @Nullable Output peer;

    /**
     * @return The reference to peerings resource.
     * 
     */
    public Optional> peer() {
        return Optional.ofNullable(this.peer);
    }

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

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

    /**
     * The routing weight.
     * 
     */
    @Import(name="routingWeight")
    private @Nullable Output routingWeight;

    /**
     * @return The routing weight.
     * 
     */
    public Optional> routingWeight() {
        return Optional.ofNullable(this.routingWeight);
    }

    /**
     * The IPSec shared key.
     * 
     */
    @Import(name="sharedKey")
    private @Nullable Output sharedKey;

    /**
     * @return The IPSec shared key.
     * 
     */
    public Optional> sharedKey() {
        return Optional.ofNullable(this.sharedKey);
    }

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

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

    /**
     * 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 private local Azure IP for the connection.
     * 
     */
    @Import(name="useLocalAzureIpAddress")
    private @Nullable Output useLocalAzureIpAddress;

    /**
     * @return Use private local Azure IP for the 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);
    }

    /**
     * The reference to virtual network gateway resource.
     * 
     */
    @Import(name="virtualNetworkGateway1", required=true)
    private Output virtualNetworkGateway1;

    /**
     * @return The reference to virtual network gateway resource.
     * 
     */
    public Output virtualNetworkGateway1() {
        return this.virtualNetworkGateway1;
    }

    /**
     * The reference to virtual network gateway resource.
     * 
     */
    @Import(name="virtualNetworkGateway2")
    private @Nullable Output virtualNetworkGateway2;

    /**
     * @return The reference to virtual network gateway resource.
     * 
     */
    public Optional> virtualNetworkGateway2() {
        return Optional.ofNullable(this.virtualNetworkGateway2);
    }

    /**
     * The name of the virtual network gateway connection.
     * 
     */
    @Import(name="virtualNetworkGatewayConnectionName")
    private @Nullable Output virtualNetworkGatewayConnectionName;

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

    private VirtualNetworkGatewayConnectionArgs() {}

    private VirtualNetworkGatewayConnectionArgs(VirtualNetworkGatewayConnectionArgs $) {
        this.authorizationKey = $.authorizationKey;
        this.connectionMode = $.connectionMode;
        this.connectionProtocol = $.connectionProtocol;
        this.connectionType = $.connectionType;
        this.dpdTimeoutSeconds = $.dpdTimeoutSeconds;
        this.egressNatRules = $.egressNatRules;
        this.enableBgp = $.enableBgp;
        this.enablePrivateLinkFastPath = $.enablePrivateLinkFastPath;
        this.expressRouteGatewayBypass = $.expressRouteGatewayBypass;
        this.gatewayCustomBgpIpAddresses = $.gatewayCustomBgpIpAddresses;
        this.id = $.id;
        this.ingressNatRules = $.ingressNatRules;
        this.ipsecPolicies = $.ipsecPolicies;
        this.localNetworkGateway2 = $.localNetworkGateway2;
        this.location = $.location;
        this.peer = $.peer;
        this.resourceGroupName = $.resourceGroupName;
        this.routingWeight = $.routingWeight;
        this.sharedKey = $.sharedKey;
        this.tags = $.tags;
        this.trafficSelectorPolicies = $.trafficSelectorPolicies;
        this.useLocalAzureIpAddress = $.useLocalAzureIpAddress;
        this.usePolicyBasedTrafficSelectors = $.usePolicyBasedTrafficSelectors;
        this.virtualNetworkGateway1 = $.virtualNetworkGateway1;
        this.virtualNetworkGateway2 = $.virtualNetworkGateway2;
        this.virtualNetworkGatewayConnectionName = $.virtualNetworkGatewayConnectionName;
    }

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

    public static final class Builder {
        private VirtualNetworkGatewayConnectionArgs $;

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

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

        /**
         * @param authorizationKey The authorizationKey.
         * 
         * @return builder
         * 
         */
        public Builder authorizationKey(@Nullable Output authorizationKey) {
            $.authorizationKey = authorizationKey;
            return this;
        }

        /**
         * @param authorizationKey The authorizationKey.
         * 
         * @return builder
         * 
         */
        public Builder authorizationKey(String authorizationKey) {
            return authorizationKey(Output.of(authorizationKey));
        }

        /**
         * @param connectionMode The connection mode for this connection.
         * 
         * @return builder
         * 
         */
        public Builder connectionMode(@Nullable Output> connectionMode) {
            $.connectionMode = connectionMode;
            return this;
        }

        /**
         * @param connectionMode The connection mode for this connection.
         * 
         * @return builder
         * 
         */
        public Builder connectionMode(Either connectionMode) {
            return connectionMode(Output.of(connectionMode));
        }

        /**
         * @param connectionMode The connection mode for this connection.
         * 
         * @return builder
         * 
         */
        public Builder connectionMode(String connectionMode) {
            return connectionMode(Either.ofLeft(connectionMode));
        }

        /**
         * @param connectionMode The connection mode for this connection.
         * 
         * @return builder
         * 
         */
        public Builder connectionMode(VirtualNetworkGatewayConnectionMode connectionMode) {
            return connectionMode(Either.ofRight(connectionMode));
        }

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

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

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

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

        /**
         * @param connectionType Gateway connection type.
         * 
         * @return builder
         * 
         */
        public Builder connectionType(Output> connectionType) {
            $.connectionType = connectionType;
            return this;
        }

        /**
         * @param connectionType Gateway connection type.
         * 
         * @return builder
         * 
         */
        public Builder connectionType(Either connectionType) {
            return connectionType(Output.of(connectionType));
        }

        /**
         * @param connectionType Gateway connection type.
         * 
         * @return builder
         * 
         */
        public Builder connectionType(String connectionType) {
            return connectionType(Either.ofLeft(connectionType));
        }

        /**
         * @param connectionType Gateway connection type.
         * 
         * @return builder
         * 
         */
        public Builder connectionType(VirtualNetworkGatewayConnectionType connectionType) {
            return connectionType(Either.ofRight(connectionType));
        }

        /**
         * @param dpdTimeoutSeconds The dead peer detection timeout of this connection in seconds.
         * 
         * @return builder
         * 
         */
        public Builder dpdTimeoutSeconds(@Nullable Output dpdTimeoutSeconds) {
            $.dpdTimeoutSeconds = dpdTimeoutSeconds;
            return this;
        }

        /**
         * @param dpdTimeoutSeconds The dead peer detection timeout of this connection in seconds.
         * 
         * @return builder
         * 
         */
        public Builder dpdTimeoutSeconds(Integer dpdTimeoutSeconds) {
            return dpdTimeoutSeconds(Output.of(dpdTimeoutSeconds));
        }

        /**
         * @param egressNatRules List of egress NatRules.
         * 
         * @return builder
         * 
         */
        public Builder egressNatRules(@Nullable Output> egressNatRules) {
            $.egressNatRules = egressNatRules;
            return this;
        }

        /**
         * @param egressNatRules List of egress NatRules.
         * 
         * @return builder
         * 
         */
        public Builder egressNatRules(List egressNatRules) {
            return egressNatRules(Output.of(egressNatRules));
        }

        /**
         * @param egressNatRules List of egress NatRules.
         * 
         * @return builder
         * 
         */
        public Builder egressNatRules(SubResourceArgs... egressNatRules) {
            return egressNatRules(List.of(egressNatRules));
        }

        /**
         * @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 enablePrivateLinkFastPath Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled.
         * 
         * @return builder
         * 
         */
        public Builder enablePrivateLinkFastPath(@Nullable Output enablePrivateLinkFastPath) {
            $.enablePrivateLinkFastPath = enablePrivateLinkFastPath;
            return this;
        }

        /**
         * @param enablePrivateLinkFastPath Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled.
         * 
         * @return builder
         * 
         */
        public Builder enablePrivateLinkFastPath(Boolean enablePrivateLinkFastPath) {
            return enablePrivateLinkFastPath(Output.of(enablePrivateLinkFastPath));
        }

        /**
         * @param expressRouteGatewayBypass Bypass ExpressRoute Gateway for data forwarding.
         * 
         * @return builder
         * 
         */
        public Builder expressRouteGatewayBypass(@Nullable Output expressRouteGatewayBypass) {
            $.expressRouteGatewayBypass = expressRouteGatewayBypass;
            return this;
        }

        /**
         * @param expressRouteGatewayBypass Bypass ExpressRoute Gateway for data forwarding.
         * 
         * @return builder
         * 
         */
        public Builder expressRouteGatewayBypass(Boolean expressRouteGatewayBypass) {
            return expressRouteGatewayBypass(Output.of(expressRouteGatewayBypass));
        }

        /**
         * @param gatewayCustomBgpIpAddresses GatewayCustomBgpIpAddresses to be used for virtual network gateway Connection.
         * 
         * @return builder
         * 
         */
        public Builder gatewayCustomBgpIpAddresses(@Nullable Output> gatewayCustomBgpIpAddresses) {
            $.gatewayCustomBgpIpAddresses = gatewayCustomBgpIpAddresses;
            return this;
        }

        /**
         * @param gatewayCustomBgpIpAddresses GatewayCustomBgpIpAddresses to be used for virtual network gateway Connection.
         * 
         * @return builder
         * 
         */
        public Builder gatewayCustomBgpIpAddresses(List gatewayCustomBgpIpAddresses) {
            return gatewayCustomBgpIpAddresses(Output.of(gatewayCustomBgpIpAddresses));
        }

        /**
         * @param gatewayCustomBgpIpAddresses GatewayCustomBgpIpAddresses to be used for virtual network gateway Connection.
         * 
         * @return builder
         * 
         */
        public Builder gatewayCustomBgpIpAddresses(GatewayCustomBgpIpAddressIpConfigurationArgs... gatewayCustomBgpIpAddresses) {
            return gatewayCustomBgpIpAddresses(List.of(gatewayCustomBgpIpAddresses));
        }

        /**
         * @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 ingressNatRules List of ingress NatRules.
         * 
         * @return builder
         * 
         */
        public Builder ingressNatRules(@Nullable Output> ingressNatRules) {
            $.ingressNatRules = ingressNatRules;
            return this;
        }

        /**
         * @param ingressNatRules List of ingress NatRules.
         * 
         * @return builder
         * 
         */
        public Builder ingressNatRules(List ingressNatRules) {
            return ingressNatRules(Output.of(ingressNatRules));
        }

        /**
         * @param ingressNatRules List of ingress NatRules.
         * 
         * @return builder
         * 
         */
        public Builder ingressNatRules(SubResourceArgs... ingressNatRules) {
            return ingressNatRules(List.of(ingressNatRules));
        }

        /**
         * @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 localNetworkGateway2 The reference to local network gateway resource.
         * 
         * @return builder
         * 
         */
        public Builder localNetworkGateway2(@Nullable Output localNetworkGateway2) {
            $.localNetworkGateway2 = localNetworkGateway2;
            return this;
        }

        /**
         * @param localNetworkGateway2 The reference to local network gateway resource.
         * 
         * @return builder
         * 
         */
        public Builder localNetworkGateway2(LocalNetworkGatewayArgs localNetworkGateway2) {
            return localNetworkGateway2(Output.of(localNetworkGateway2));
        }

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

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

        /**
         * @param peer The reference to peerings resource.
         * 
         * @return builder
         * 
         */
        public Builder peer(@Nullable Output peer) {
            $.peer = peer;
            return this;
        }

        /**
         * @param peer The reference to peerings resource.
         * 
         * @return builder
         * 
         */
        public Builder peer(SubResourceArgs peer) {
            return peer(Output.of(peer));
        }

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

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

        /**
         * @param routingWeight The routing weight.
         * 
         * @return builder
         * 
         */
        public Builder routingWeight(@Nullable Output routingWeight) {
            $.routingWeight = routingWeight;
            return this;
        }

        /**
         * @param routingWeight The routing weight.
         * 
         * @return builder
         * 
         */
        public Builder routingWeight(Integer routingWeight) {
            return routingWeight(Output.of(routingWeight));
        }

        /**
         * @param sharedKey The IPSec shared key.
         * 
         * @return builder
         * 
         */
        public Builder sharedKey(@Nullable Output sharedKey) {
            $.sharedKey = sharedKey;
            return this;
        }

        /**
         * @param sharedKey The IPSec shared key.
         * 
         * @return builder
         * 
         */
        public Builder sharedKey(String sharedKey) {
            return sharedKey(Output.of(sharedKey));
        }

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

        /**
         * @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 private local Azure IP for the connection.
         * 
         * @return builder
         * 
         */
        public Builder useLocalAzureIpAddress(@Nullable Output useLocalAzureIpAddress) {
            $.useLocalAzureIpAddress = useLocalAzureIpAddress;
            return this;
        }

        /**
         * @param useLocalAzureIpAddress Use private local Azure IP for the 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 virtualNetworkGateway1 The reference to virtual network gateway resource.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkGateway1(Output virtualNetworkGateway1) {
            $.virtualNetworkGateway1 = virtualNetworkGateway1;
            return this;
        }

        /**
         * @param virtualNetworkGateway1 The reference to virtual network gateway resource.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkGateway1(VirtualNetworkGatewayArgs virtualNetworkGateway1) {
            return virtualNetworkGateway1(Output.of(virtualNetworkGateway1));
        }

        /**
         * @param virtualNetworkGateway2 The reference to virtual network gateway resource.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkGateway2(@Nullable Output virtualNetworkGateway2) {
            $.virtualNetworkGateway2 = virtualNetworkGateway2;
            return this;
        }

        /**
         * @param virtualNetworkGateway2 The reference to virtual network gateway resource.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkGateway2(VirtualNetworkGatewayArgs virtualNetworkGateway2) {
            return virtualNetworkGateway2(Output.of(virtualNetworkGateway2));
        }

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

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

        public VirtualNetworkGatewayConnectionArgs build() {
            if ($.connectionType == null) {
                throw new MissingRequiredPropertyException("VirtualNetworkGatewayConnectionArgs", "connectionType");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("VirtualNetworkGatewayConnectionArgs", "resourceGroupName");
            }
            if ($.virtualNetworkGateway1 == null) {
                throw new MissingRequiredPropertyException("VirtualNetworkGatewayConnectionArgs", "virtualNetworkGateway1");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy