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

com.pulumi.azurenative.network.inputs.VpnSiteLinkConnectionArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.inputs;

import com.pulumi.azurenative.network.enums.VirtualNetworkGatewayConnectionProtocol;
import com.pulumi.azurenative.network.enums.VpnLinkConnectionMode;
import com.pulumi.azurenative.network.inputs.GatewayCustomBgpIpAddressIpConfigurationArgs;
import com.pulumi.azurenative.network.inputs.IpsecPolicyArgs;
import com.pulumi.azurenative.network.inputs.SubResourceArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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;


/**
 * VpnSiteLinkConnection Resource.
 * 
 */
public final class VpnSiteLinkConnectionArgs extends com.pulumi.resources.ResourceArgs {

    public static final VpnSiteLinkConnectionArgs Empty = new VpnSiteLinkConnectionArgs();

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

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

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

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

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

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

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

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

    /**
     * vpnGatewayCustomBgpAddresses used by this connection.
     * 
     */
    @Import(name="vpnGatewayCustomBgpAddresses")
    private @Nullable Output> vpnGatewayCustomBgpAddresses;

    /**
     * @return vpnGatewayCustomBgpAddresses used by this connection.
     * 
     */
    public Optional>> vpnGatewayCustomBgpAddresses() {
        return Optional.ofNullable(this.vpnGatewayCustomBgpAddresses);
    }

    /**
     * Vpn link connection mode.
     * 
     */
    @Import(name="vpnLinkConnectionMode")
    private @Nullable Output> vpnLinkConnectionMode;

    /**
     * @return Vpn link connection mode.
     * 
     */
    public Optional>> vpnLinkConnectionMode() {
        return Optional.ofNullable(this.vpnLinkConnectionMode);
    }

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

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

    private VpnSiteLinkConnectionArgs() {}

    private VpnSiteLinkConnectionArgs(VpnSiteLinkConnectionArgs $) {
        this.connectionBandwidth = $.connectionBandwidth;
        this.egressNatRules = $.egressNatRules;
        this.enableBgp = $.enableBgp;
        this.enableRateLimiting = $.enableRateLimiting;
        this.id = $.id;
        this.ingressNatRules = $.ingressNatRules;
        this.ipsecPolicies = $.ipsecPolicies;
        this.name = $.name;
        this.routingWeight = $.routingWeight;
        this.sharedKey = $.sharedKey;
        this.useLocalAzureIpAddress = $.useLocalAzureIpAddress;
        this.usePolicyBasedTrafficSelectors = $.usePolicyBasedTrafficSelectors;
        this.vpnConnectionProtocolType = $.vpnConnectionProtocolType;
        this.vpnGatewayCustomBgpAddresses = $.vpnGatewayCustomBgpAddresses;
        this.vpnLinkConnectionMode = $.vpnLinkConnectionMode;
        this.vpnSiteLink = $.vpnSiteLink;
    }

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

    public static final class Builder {
        private VpnSiteLinkConnectionArgs $;

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

        public Builder(VpnSiteLinkConnectionArgs defaults) {
            $ = new VpnSiteLinkConnectionArgs(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 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 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 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 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 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 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 vpnGatewayCustomBgpAddresses vpnGatewayCustomBgpAddresses used by this connection.
         * 
         * @return builder
         * 
         */
        public Builder vpnGatewayCustomBgpAddresses(@Nullable Output> vpnGatewayCustomBgpAddresses) {
            $.vpnGatewayCustomBgpAddresses = vpnGatewayCustomBgpAddresses;
            return this;
        }

        /**
         * @param vpnGatewayCustomBgpAddresses vpnGatewayCustomBgpAddresses used by this connection.
         * 
         * @return builder
         * 
         */
        public Builder vpnGatewayCustomBgpAddresses(List vpnGatewayCustomBgpAddresses) {
            return vpnGatewayCustomBgpAddresses(Output.of(vpnGatewayCustomBgpAddresses));
        }

        /**
         * @param vpnGatewayCustomBgpAddresses vpnGatewayCustomBgpAddresses used by this connection.
         * 
         * @return builder
         * 
         */
        public Builder vpnGatewayCustomBgpAddresses(GatewayCustomBgpIpAddressIpConfigurationArgs... vpnGatewayCustomBgpAddresses) {
            return vpnGatewayCustomBgpAddresses(List.of(vpnGatewayCustomBgpAddresses));
        }

        /**
         * @param vpnLinkConnectionMode Vpn link connection mode.
         * 
         * @return builder
         * 
         */
        public Builder vpnLinkConnectionMode(@Nullable Output> vpnLinkConnectionMode) {
            $.vpnLinkConnectionMode = vpnLinkConnectionMode;
            return this;
        }

        /**
         * @param vpnLinkConnectionMode Vpn link connection mode.
         * 
         * @return builder
         * 
         */
        public Builder vpnLinkConnectionMode(Either vpnLinkConnectionMode) {
            return vpnLinkConnectionMode(Output.of(vpnLinkConnectionMode));
        }

        /**
         * @param vpnLinkConnectionMode Vpn link connection mode.
         * 
         * @return builder
         * 
         */
        public Builder vpnLinkConnectionMode(String vpnLinkConnectionMode) {
            return vpnLinkConnectionMode(Either.ofLeft(vpnLinkConnectionMode));
        }

        /**
         * @param vpnLinkConnectionMode Vpn link connection mode.
         * 
         * @return builder
         * 
         */
        public Builder vpnLinkConnectionMode(VpnLinkConnectionMode vpnLinkConnectionMode) {
            return vpnLinkConnectionMode(Either.ofRight(vpnLinkConnectionMode));
        }

        /**
         * @param vpnSiteLink Id of the connected vpn site link.
         * 
         * @return builder
         * 
         */
        public Builder vpnSiteLink(@Nullable Output vpnSiteLink) {
            $.vpnSiteLink = vpnSiteLink;
            return this;
        }

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

        public VpnSiteLinkConnectionArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy