Class VpnConnectionProperties
java.lang.Object
com.azure.resourcemanager.network.fluent.models.VpnConnectionProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VpnConnectionProperties>
public final class VpnConnectionProperties
extends Object
implements com.azure.json.JsonSerializable<VpnConnectionProperties>
Parameters for VpnConnection.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VpnConnectionProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the connectionBandwidth property: Expected bandwidth in MBPS.Get the connectionStatus property: The connection status.Get the dpdTimeoutSeconds property: DPD timeout in seconds for vpn connection.Get the egressBytesTransferred property: Egress bytes transferred.Get the enableBgp property: EnableBgp flag.Get the enableInternetSecurity property: Enable internet security.Get the enableRateLimiting property: EnableBgp flag.static VpnConnectionPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VpnConnectionProperties from the JsonReader.Get the ingressBytesTransferred property: Ingress bytes transferred.Get the ipsecPolicies property: The IPSec Policies to be considered by this connection.Get the provisioningState property: The provisioning state of the VPN connection resource.com.azure.core.management.SubResourceGet the remoteVpnSite property: Id of the connected vpn site.Get the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.Get the routingWeight property: Routing weight for vpn connection.Get the sharedKey property: SharedKey for the vpn connection.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the trafficSelectorPolicies property: The Traffic Selector Policies to be considered by this connection.Get the useLocalAzureIpAddress property: Use local azure ip to initiate connection.Get the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.voidvalidate()Validates the instance.Get the vpnConnectionProtocolType property: Connection protocol used for this connection.Get the vpnLinkConnections property: List of all vpn site link connections to the gateway.withConnectionBandwidth(Integer connectionBandwidth) Set the connectionBandwidth property: Expected bandwidth in MBPS.withDpdTimeoutSeconds(Integer dpdTimeoutSeconds) Set the dpdTimeoutSeconds property: DPD timeout in seconds for vpn connection.withEnableBgp(Boolean enableBgp) Set the enableBgp property: EnableBgp flag.withEnableInternetSecurity(Boolean enableInternetSecurity) Set the enableInternetSecurity property: Enable internet security.withEnableRateLimiting(Boolean enableRateLimiting) Set the enableRateLimiting property: EnableBgp flag.withIpsecPolicies(List<IpsecPolicy> ipsecPolicies) Set the ipsecPolicies property: The IPSec Policies to be considered by this connection.withRemoteVpnSite(com.azure.core.management.SubResource remoteVpnSite) Set the remoteVpnSite property: Id of the connected vpn site.withRoutingConfiguration(RoutingConfiguration routingConfiguration) Set the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.withRoutingWeight(Integer routingWeight) Set the routingWeight property: Routing weight for vpn connection.withSharedKey(String sharedKey) Set the sharedKey property: SharedKey for the vpn connection.withTrafficSelectorPolicies(List<TrafficSelectorPolicy> trafficSelectorPolicies) Set the trafficSelectorPolicies property: The Traffic Selector Policies to be considered by this connection.withUseLocalAzureIpAddress(Boolean useLocalAzureIpAddress) Set the useLocalAzureIpAddress property: Use local azure ip to initiate connection.withUsePolicyBasedTrafficSelectors(Boolean usePolicyBasedTrafficSelectors) Set the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.withVpnConnectionProtocolType(VirtualNetworkGatewayConnectionProtocol vpnConnectionProtocolType) Set the vpnConnectionProtocolType property: Connection protocol used for this connection.withVpnLinkConnections(List<VpnSiteLinkConnectionInner> vpnLinkConnections) Set the vpnLinkConnections property: List of all vpn site link connections to the gateway.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VpnConnectionProperties
public VpnConnectionProperties()Creates an instance of VpnConnectionProperties class.
-
-
Method Details
-
remoteVpnSite
public com.azure.core.management.SubResource remoteVpnSite()Get the remoteVpnSite property: Id of the connected vpn site.- Returns:
- the remoteVpnSite value.
-
withRemoteVpnSite
public VpnConnectionProperties 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 VpnConnectionProperties object itself.
-
routingWeight
Get the routingWeight property: Routing weight for vpn connection.- Returns:
- the routingWeight value.
-
withRoutingWeight
Set the routingWeight property: Routing weight for vpn connection.- Parameters:
routingWeight- the routingWeight value to set.- Returns:
- the VpnConnectionProperties object itself.
-
dpdTimeoutSeconds
Get the dpdTimeoutSeconds property: DPD timeout in seconds for vpn connection.- Returns:
- the dpdTimeoutSeconds value.
-
withDpdTimeoutSeconds
Set the dpdTimeoutSeconds property: DPD timeout in seconds for vpn connection.- Parameters:
dpdTimeoutSeconds- the dpdTimeoutSeconds value to set.- Returns:
- the VpnConnectionProperties object itself.
-
connectionStatus
Get the connectionStatus property: The connection status.- Returns:
- the connectionStatus value.
-
vpnConnectionProtocolType
Get the vpnConnectionProtocolType property: Connection protocol used for this connection.- Returns:
- the vpnConnectionProtocolType value.
-
withVpnConnectionProtocolType
public VpnConnectionProperties withVpnConnectionProtocolType(VirtualNetworkGatewayConnectionProtocol vpnConnectionProtocolType) Set the vpnConnectionProtocolType property: Connection protocol used for this connection.- Parameters:
vpnConnectionProtocolType- the vpnConnectionProtocolType value to set.- Returns:
- the VpnConnectionProperties object itself.
-
ingressBytesTransferred
Get the ingressBytesTransferred property: Ingress bytes transferred.- Returns:
- the ingressBytesTransferred value.
-
egressBytesTransferred
Get the egressBytesTransferred property: Egress bytes transferred.- Returns:
- the egressBytesTransferred value.
-
connectionBandwidth
Get the connectionBandwidth property: Expected bandwidth in MBPS.- Returns:
- the connectionBandwidth value.
-
withConnectionBandwidth
Set the connectionBandwidth property: Expected bandwidth in MBPS.- Parameters:
connectionBandwidth- the connectionBandwidth value to set.- Returns:
- the VpnConnectionProperties object itself.
-
enableBgp
Get the enableBgp property: EnableBgp flag.- Returns:
- the enableBgp value.
-
withEnableBgp
Set the enableBgp property: EnableBgp flag.- Parameters:
enableBgp- the enableBgp value to set.- Returns:
- the VpnConnectionProperties object itself.
-
usePolicyBasedTrafficSelectors
Get the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.- Returns:
- the usePolicyBasedTrafficSelectors value.
-
withUsePolicyBasedTrafficSelectors
public VpnConnectionProperties withUsePolicyBasedTrafficSelectors(Boolean usePolicyBasedTrafficSelectors) Set the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.- Parameters:
usePolicyBasedTrafficSelectors- the usePolicyBasedTrafficSelectors value to set.- Returns:
- the VpnConnectionProperties object itself.
-
ipsecPolicies
Get the ipsecPolicies property: The IPSec Policies to be considered by this connection.- Returns:
- the ipsecPolicies value.
-
withIpsecPolicies
Set the ipsecPolicies property: The IPSec Policies to be considered by this connection.- Parameters:
ipsecPolicies- the ipsecPolicies value to set.- Returns:
- the VpnConnectionProperties object itself.
-
trafficSelectorPolicies
Get the trafficSelectorPolicies property: The Traffic Selector Policies to be considered by this connection.- Returns:
- the trafficSelectorPolicies value.
-
withTrafficSelectorPolicies
public VpnConnectionProperties 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 VpnConnectionProperties object itself.
-
enableRateLimiting
Get the enableRateLimiting property: EnableBgp flag.- Returns:
- the enableRateLimiting value.
-
withEnableRateLimiting
Set the enableRateLimiting property: EnableBgp flag.- Parameters:
enableRateLimiting- the enableRateLimiting value to set.- Returns:
- the VpnConnectionProperties object itself.
-
enableInternetSecurity
Get the enableInternetSecurity property: Enable internet security.- Returns:
- the enableInternetSecurity value.
-
withEnableInternetSecurity
Set the enableInternetSecurity property: Enable internet security.- Parameters:
enableInternetSecurity- the enableInternetSecurity value to set.- Returns:
- the VpnConnectionProperties object itself.
-
useLocalAzureIpAddress
Get the useLocalAzureIpAddress property: Use local azure ip to initiate connection.- Returns:
- the useLocalAzureIpAddress value.
-
withUseLocalAzureIpAddress
Set the useLocalAzureIpAddress property: Use local azure ip to initiate connection.- Parameters:
useLocalAzureIpAddress- the useLocalAzureIpAddress value to set.- Returns:
- the VpnConnectionProperties object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of the VPN connection resource.- Returns:
- the provisioningState value.
-
vpnLinkConnections
Get the vpnLinkConnections property: List of all vpn site link connections to the gateway.- Returns:
- the vpnLinkConnections value.
-
withVpnLinkConnections
public VpnConnectionProperties 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 VpnConnectionProperties object itself.
-
routingConfiguration
Get the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.- Returns:
- the routingConfiguration value.
-
withRoutingConfiguration
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 VpnConnectionProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VpnConnectionProperties>- Throws:
IOException
-
fromJson
public static VpnConnectionProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VpnConnectionProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VpnConnectionProperties 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 VpnConnectionProperties.
-