Class VpnSiteLinkConnectionProperties

java.lang.Object
com.azure.resourcemanager.network.fluent.models.VpnSiteLinkConnectionProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<VpnSiteLinkConnectionProperties>

public final class VpnSiteLinkConnectionProperties extends Object implements com.azure.json.JsonSerializable<VpnSiteLinkConnectionProperties>
Parameters for VpnConnection.
  • Constructor Details

    • VpnSiteLinkConnectionProperties

      public VpnSiteLinkConnectionProperties()
      Creates an instance of VpnSiteLinkConnectionProperties class.
  • Method Details

    • vpnSiteLink

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

      public VpnSiteLinkConnectionProperties withVpnSiteLink(com.azure.core.management.SubResource vpnSiteLink)
      Set the vpnSiteLink property: Id of the connected vpn site link.
      Parameters:
      vpnSiteLink - the vpnSiteLink value to set.
      Returns:
      the VpnSiteLinkConnectionProperties object itself.
    • routingWeight

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

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

      public VpnLinkConnectionMode vpnLinkConnectionMode()
      Get the vpnLinkConnectionMode property: Vpn link connection mode.
      Returns:
      the vpnLinkConnectionMode value.
    • withVpnLinkConnectionMode

      public VpnSiteLinkConnectionProperties withVpnLinkConnectionMode(VpnLinkConnectionMode vpnLinkConnectionMode)
      Set the vpnLinkConnectionMode property: Vpn link connection mode.
      Parameters:
      vpnLinkConnectionMode - the vpnLinkConnectionMode value to set.
      Returns:
      the VpnSiteLinkConnectionProperties 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 VpnSiteLinkConnectionProperties withVpnConnectionProtocolType(VirtualNetworkGatewayConnectionProtocol vpnConnectionProtocolType)
      Set the vpnConnectionProtocolType property: Connection protocol used for this connection.
      Parameters:
      vpnConnectionProtocolType - the vpnConnectionProtocolType value to set.
      Returns:
      the VpnSiteLinkConnectionProperties 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 VpnSiteLinkConnectionProperties withConnectionBandwidth(Integer connectionBandwidth)
      Set the connectionBandwidth property: Expected bandwidth in MBPS.
      Parameters:
      connectionBandwidth - the connectionBandwidth value to set.
      Returns:
      the VpnSiteLinkConnectionProperties object itself.
    • sharedKey

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

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

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

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

      public List<GatewayCustomBgpIpAddressIpConfiguration> vpnGatewayCustomBgpAddresses()
      Get the vpnGatewayCustomBgpAddresses property: vpnGatewayCustomBgpAddresses used by this connection.
      Returns:
      the vpnGatewayCustomBgpAddresses value.
    • withVpnGatewayCustomBgpAddresses

      public VpnSiteLinkConnectionProperties withVpnGatewayCustomBgpAddresses(List<GatewayCustomBgpIpAddressIpConfiguration> vpnGatewayCustomBgpAddresses)
      Set the vpnGatewayCustomBgpAddresses property: vpnGatewayCustomBgpAddresses used by this connection.
      Parameters:
      vpnGatewayCustomBgpAddresses - the vpnGatewayCustomBgpAddresses value to set.
      Returns:
      the VpnSiteLinkConnectionProperties object itself.
    • usePolicyBasedTrafficSelectors

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

      public VpnSiteLinkConnectionProperties withUsePolicyBasedTrafficSelectors(Boolean usePolicyBasedTrafficSelectors)
      Set the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.
      Parameters:
      usePolicyBasedTrafficSelectors - the usePolicyBasedTrafficSelectors value to set.
      Returns:
      the VpnSiteLinkConnectionProperties 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 VpnSiteLinkConnectionProperties 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 VpnSiteLinkConnectionProperties object itself.
    • enableRateLimiting

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

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

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

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

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

      public List<com.azure.core.management.SubResource> ingressNatRules()
      Get the ingressNatRules property: List of ingress NatRules.
      Returns:
      the ingressNatRules value.
    • withIngressNatRules

      public VpnSiteLinkConnectionProperties withIngressNatRules(List<com.azure.core.management.SubResource> ingressNatRules)
      Set the ingressNatRules property: List of ingress NatRules.
      Parameters:
      ingressNatRules - the ingressNatRules value to set.
      Returns:
      the VpnSiteLinkConnectionProperties object itself.
    • egressNatRules

      public List<com.azure.core.management.SubResource> egressNatRules()
      Get the egressNatRules property: List of egress NatRules.
      Returns:
      the egressNatRules value.
    • withEgressNatRules

      public VpnSiteLinkConnectionProperties withEgressNatRules(List<com.azure.core.management.SubResource> egressNatRules)
      Set the egressNatRules property: List of egress NatRules.
      Parameters:
      egressNatRules - the egressNatRules value to set.
      Returns:
      the VpnSiteLinkConnectionProperties object itself.
    • dpdTimeoutSeconds

      public Integer dpdTimeoutSeconds()
      Get the dpdTimeoutSeconds property: Dead Peer Detection timeout in seconds for VpnLink connection.
      Returns:
      the dpdTimeoutSeconds value.
    • withDpdTimeoutSeconds

      public VpnSiteLinkConnectionProperties withDpdTimeoutSeconds(Integer dpdTimeoutSeconds)
      Set the dpdTimeoutSeconds property: Dead Peer Detection timeout in seconds for VpnLink connection.
      Parameters:
      dpdTimeoutSeconds - the dpdTimeoutSeconds value to set.
      Returns:
      the VpnSiteLinkConnectionProperties object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<VpnSiteLinkConnectionProperties>
      Throws:
      IOException
    • fromJson

      public static VpnSiteLinkConnectionProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VpnSiteLinkConnectionProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VpnSiteLinkConnectionProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the VpnSiteLinkConnectionProperties.