Class VpnConnectionInner


  • public final class VpnConnectionInner
    extends com.azure.core.management.SubResource
    VpnConnection Resource.
    • Constructor Detail

      • VpnConnectionInner

        public VpnConnectionInner()
    • Method Detail

      • name

        public String name()
        Get the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.
        Returns:
        the name value.
      • withName

        public VpnConnectionInner withName​(String name)
        Set the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.
        Parameters:
        name - the name value to set.
        Returns:
        the VpnConnectionInner object itself.
      • etag

        public String etag()
        Get the etag property: A unique read-only string that changes whenever the resource is updated.
        Returns:
        the etag value.
      • withId

        public VpnConnectionInner withId​(String id)
        Overrides:
        withId in class com.azure.core.management.SubResource
      • remoteVpnSite

        public com.azure.core.management.SubResource remoteVpnSite()
        Get the remoteVpnSite property: Id of the connected vpn site.
        Returns:
        the remoteVpnSite value.
      • withRemoteVpnSite

        public VpnConnectionInner withRemoteVpnSite​(com.azure.core.management.SubResource remoteVpnSite)
        Set the remoteVpnSite property: Id of the connected vpn site.
        Parameters:
        remoteVpnSite - the remoteVpnSite value to set.
        Returns:
        the VpnConnectionInner object itself.
      • routingWeight

        public Integer routingWeight()
        Get the routingWeight property: Routing weight for vpn connection.
        Returns:
        the routingWeight value.
      • withRoutingWeight

        public VpnConnectionInner withRoutingWeight​(Integer routingWeight)
        Set the routingWeight property: Routing weight for vpn connection.
        Parameters:
        routingWeight - the routingWeight value to set.
        Returns:
        the VpnConnectionInner object itself.
      • dpdTimeoutSeconds

        public Integer dpdTimeoutSeconds()
        Get the dpdTimeoutSeconds property: DPD timeout in seconds for vpn connection.
        Returns:
        the dpdTimeoutSeconds value.
      • withDpdTimeoutSeconds

        public VpnConnectionInner withDpdTimeoutSeconds​(Integer dpdTimeoutSeconds)
        Set the dpdTimeoutSeconds property: DPD timeout in seconds for vpn connection.
        Parameters:
        dpdTimeoutSeconds - the dpdTimeoutSeconds value to set.
        Returns:
        the VpnConnectionInner object itself.
      • connectionStatus

        public VpnConnectionStatus connectionStatus()
        Get the connectionStatus property: The connection status.
        Returns:
        the connectionStatus value.
      • vpnConnectionProtocolType

        public VirtualNetworkGatewayConnectionProtocol vpnConnectionProtocolType()
        Get the vpnConnectionProtocolType property: Connection protocol used for this connection.
        Returns:
        the vpnConnectionProtocolType value.
      • withVpnConnectionProtocolType

        public VpnConnectionInner withVpnConnectionProtocolType​(VirtualNetworkGatewayConnectionProtocol vpnConnectionProtocolType)
        Set the vpnConnectionProtocolType property: Connection protocol used for this connection.
        Parameters:
        vpnConnectionProtocolType - the vpnConnectionProtocolType value to set.
        Returns:
        the VpnConnectionInner object itself.
      • ingressBytesTransferred

        public Long ingressBytesTransferred()
        Get the ingressBytesTransferred property: Ingress bytes transferred.
        Returns:
        the ingressBytesTransferred value.
      • egressBytesTransferred

        public Long egressBytesTransferred()
        Get the egressBytesTransferred property: Egress bytes transferred.
        Returns:
        the egressBytesTransferred value.
      • connectionBandwidth

        public Integer connectionBandwidth()
        Get the connectionBandwidth property: Expected bandwidth in MBPS.
        Returns:
        the connectionBandwidth value.
      • withConnectionBandwidth

        public VpnConnectionInner withConnectionBandwidth​(Integer connectionBandwidth)
        Set the connectionBandwidth property: Expected bandwidth in MBPS.
        Parameters:
        connectionBandwidth - the connectionBandwidth value to set.
        Returns:
        the VpnConnectionInner object itself.
      • sharedKey

        public String sharedKey()
        Get the sharedKey property: SharedKey for the vpn connection.
        Returns:
        the sharedKey value.
      • withSharedKey

        public VpnConnectionInner withSharedKey​(String sharedKey)
        Set the sharedKey property: SharedKey for the vpn connection.
        Parameters:
        sharedKey - the sharedKey value to set.
        Returns:
        the VpnConnectionInner object itself.
      • enableBgp

        public Boolean enableBgp()
        Get the enableBgp property: EnableBgp flag.
        Returns:
        the enableBgp value.
      • withEnableBgp

        public VpnConnectionInner withEnableBgp​(Boolean enableBgp)
        Set the enableBgp property: EnableBgp flag.
        Parameters:
        enableBgp - the enableBgp value to set.
        Returns:
        the VpnConnectionInner object itself.
      • usePolicyBasedTrafficSelectors

        public Boolean usePolicyBasedTrafficSelectors()
        Get the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.
        Returns:
        the usePolicyBasedTrafficSelectors value.
      • withUsePolicyBasedTrafficSelectors

        public VpnConnectionInner withUsePolicyBasedTrafficSelectors​(Boolean usePolicyBasedTrafficSelectors)
        Set the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.
        Parameters:
        usePolicyBasedTrafficSelectors - the usePolicyBasedTrafficSelectors value to set.
        Returns:
        the VpnConnectionInner object itself.
      • ipsecPolicies

        public List<IpsecPolicy> ipsecPolicies()
        Get the ipsecPolicies property: The IPSec Policies to be considered by this connection.
        Returns:
        the ipsecPolicies value.
      • withIpsecPolicies

        public VpnConnectionInner withIpsecPolicies​(List<IpsecPolicy> ipsecPolicies)
        Set the ipsecPolicies property: The IPSec Policies to be considered by this connection.
        Parameters:
        ipsecPolicies - the ipsecPolicies value to set.
        Returns:
        the VpnConnectionInner object itself.
      • trafficSelectorPolicies

        public List<TrafficSelectorPolicy> trafficSelectorPolicies()
        Get the trafficSelectorPolicies property: The Traffic Selector Policies to be considered by this connection.
        Returns:
        the trafficSelectorPolicies value.
      • withTrafficSelectorPolicies

        public VpnConnectionInner withTrafficSelectorPolicies​(List<TrafficSelectorPolicy> trafficSelectorPolicies)
        Set the trafficSelectorPolicies property: The Traffic Selector Policies to be considered by this connection.
        Parameters:
        trafficSelectorPolicies - the trafficSelectorPolicies value to set.
        Returns:
        the VpnConnectionInner object itself.
      • enableRateLimiting

        public Boolean enableRateLimiting()
        Get the enableRateLimiting property: EnableBgp flag.
        Returns:
        the enableRateLimiting value.
      • withEnableRateLimiting

        public VpnConnectionInner withEnableRateLimiting​(Boolean enableRateLimiting)
        Set the enableRateLimiting property: EnableBgp flag.
        Parameters:
        enableRateLimiting - the enableRateLimiting value to set.
        Returns:
        the VpnConnectionInner object itself.
      • enableInternetSecurity

        public Boolean enableInternetSecurity()
        Get the enableInternetSecurity property: Enable internet security.
        Returns:
        the enableInternetSecurity value.
      • withEnableInternetSecurity

        public VpnConnectionInner withEnableInternetSecurity​(Boolean enableInternetSecurity)
        Set the enableInternetSecurity property: Enable internet security.
        Parameters:
        enableInternetSecurity - the enableInternetSecurity value to set.
        Returns:
        the VpnConnectionInner object itself.
      • useLocalAzureIpAddress

        public Boolean useLocalAzureIpAddress()
        Get the useLocalAzureIpAddress property: Use local azure ip to initiate connection.
        Returns:
        the useLocalAzureIpAddress value.
      • withUseLocalAzureIpAddress

        public VpnConnectionInner withUseLocalAzureIpAddress​(Boolean useLocalAzureIpAddress)
        Set the useLocalAzureIpAddress property: Use local azure ip to initiate connection.
        Parameters:
        useLocalAzureIpAddress - the useLocalAzureIpAddress value to set.
        Returns:
        the VpnConnectionInner object itself.
      • provisioningState

        public ProvisioningState provisioningState()
        Get the provisioningState property: The provisioning state of the VPN connection resource.
        Returns:
        the provisioningState value.
      • vpnLinkConnections

        public List<VpnSiteLinkConnectionInner> vpnLinkConnections()
        Get the vpnLinkConnections property: List of all vpn site link connections to the gateway.
        Returns:
        the vpnLinkConnections value.
      • withVpnLinkConnections

        public VpnConnectionInner withVpnLinkConnections​(List<VpnSiteLinkConnectionInner> vpnLinkConnections)
        Set the vpnLinkConnections property: List of all vpn site link connections to the gateway.
        Parameters:
        vpnLinkConnections - the vpnLinkConnections value to set.
        Returns:
        the VpnConnectionInner object itself.
      • routingConfiguration

        public RoutingConfiguration routingConfiguration()
        Get the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.
        Returns:
        the routingConfiguration value.
      • withRoutingConfiguration

        public VpnConnectionInner withRoutingConfiguration​(RoutingConfiguration routingConfiguration)
        Set the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.
        Parameters:
        routingConfiguration - the routingConfiguration value to set.
        Returns:
        the VpnConnectionInner object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.