VpnConnectionInner Class

public final class VpnConnectionInner
extends SubResource

VpnConnection Resource.

Constructor Summary

Constructor Description
VpnConnectionInner()

Creates an instance of VpnConnectionInner class.

Method Summary

Modifier and Type Method and Description
Integer connectionBandwidth()

Get the connectionBandwidth property: Expected bandwidth in MBPS.

VpnConnectionStatus connectionStatus()

Get the connectionStatus property: The connection status.

Integer dpdTimeoutSeconds()

Get the dpdTimeoutSeconds property: DPD timeout in seconds for vpn connection.

Long egressBytesTransferred()

Get the egressBytesTransferred property: Egress bytes transferred.

Boolean enableBgp()

Get the enableBgp property: EnableBgp flag.

Boolean enableInternetSecurity()

Get the enableInternetSecurity property: Enable internet security.

Boolean enableRateLimiting()

Get the enableRateLimiting property: EnableBgp flag.

String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static VpnConnectionInner fromJson(JsonReader jsonReader)

Reads an instance of VpnConnectionInner from the JsonReader.

Long ingressBytesTransferred()

Get the ingressBytesTransferred property: Ingress bytes transferred.

List<IpsecPolicy> ipsecPolicies()

Get the ipsecPolicies property: The IPSec Policies to be considered by this connection.

String name()

Get the name property: The name of the resource that is unique within a resource group.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the VPN connection resource.

SubResource remoteVpnSite()

Get the remoteVpnSite property: Id of the connected vpn site.

RoutingConfiguration routingConfiguration()

Get the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.

Integer routingWeight()

Get the routingWeight property: Routing weight for vpn connection.

String sharedKey()

Get the sharedKey property: SharedKey for the vpn connection.

JsonWriter toJson(JsonWriter jsonWriter)
List<TrafficSelectorPolicy> trafficSelectorPolicies()

Get the trafficSelectorPolicies property: The Traffic Selector Policies to be considered by this connection.

Boolean useLocalAzureIpAddress()

Get the useLocalAzureIpAddress property: Use local azure ip to initiate connection.

Boolean usePolicyBasedTrafficSelectors()

Get the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.

void validate()

Validates the instance.

VirtualNetworkGatewayConnectionProtocol vpnConnectionProtocolType()

Get the vpnConnectionProtocolType property: Connection protocol used for this connection.

List<VpnSiteLinkConnectionInner> vpnLinkConnections()

Get the vpnLinkConnections property: List of all vpn site link connections to the gateway.

VpnConnectionInner withConnectionBandwidth(Integer connectionBandwidth)

Set the connectionBandwidth property: Expected bandwidth in MBPS.

VpnConnectionInner withDpdTimeoutSeconds(Integer dpdTimeoutSeconds)

Set the dpdTimeoutSeconds property: DPD timeout in seconds for vpn connection.

VpnConnectionInner withEnableBgp(Boolean enableBgp)

Set the enableBgp property: EnableBgp flag.

VpnConnectionInner withEnableInternetSecurity(Boolean enableInternetSecurity)

Set the enableInternetSecurity property: Enable internet security.

VpnConnectionInner withEnableRateLimiting(Boolean enableRateLimiting)

Set the enableRateLimiting property: EnableBgp flag.

VpnConnectionInner withId(String id)
VpnConnectionInner withIpsecPolicies(List<IpsecPolicy> ipsecPolicies)

Set the ipsecPolicies property: The IPSec Policies to be considered by this connection.

VpnConnectionInner withName(String name)

Set the name property: The name of the resource that is unique within a resource group.

VpnConnectionInner withRemoteVpnSite(SubResource remoteVpnSite)

Set the remoteVpnSite property: Id of the connected vpn site.

VpnConnectionInner withRoutingConfiguration(RoutingConfiguration routingConfiguration)

Set the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.

VpnConnectionInner withRoutingWeight(Integer routingWeight)

Set the routingWeight property: Routing weight for vpn connection.

VpnConnectionInner withSharedKey(String sharedKey)

Set the sharedKey property: SharedKey for the vpn connection.

VpnConnectionInner withTrafficSelectorPolicies(List<TrafficSelectorPolicy> trafficSelectorPolicies)

Set the trafficSelectorPolicies property: The Traffic Selector Policies to be considered by this connection.

VpnConnectionInner withUseLocalAzureIpAddress(Boolean useLocalAzureIpAddress)

Set the useLocalAzureIpAddress property: Use local azure ip to initiate connection.

VpnConnectionInner withUsePolicyBasedTrafficSelectors(Boolean usePolicyBasedTrafficSelectors)

Set the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.

VpnConnectionInner withVpnConnectionProtocolType(VirtualNetworkGatewayConnectionProtocol vpnConnectionProtocolType)

Set the vpnConnectionProtocolType property: Connection protocol used for this connection.

VpnConnectionInner withVpnLinkConnections(List<VpnSiteLinkConnectionInner> vpnLinkConnections)

Set the vpnLinkConnections property: List of all vpn site link connections to the gateway.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

VpnConnectionInner

public VpnConnectionInner()

Creates an instance of VpnConnectionInner class.

Method Details

connectionBandwidth

public Integer connectionBandwidth()

Get the connectionBandwidth property: Expected bandwidth in MBPS.

Returns:

the connectionBandwidth value.

connectionStatus

public VpnConnectionStatus connectionStatus()

Get the connectionStatus property: The connection status.

Returns:

the connectionStatus value.

dpdTimeoutSeconds

public Integer dpdTimeoutSeconds()

Get the dpdTimeoutSeconds property: DPD timeout in seconds for vpn connection.

Returns:

the dpdTimeoutSeconds value.

egressBytesTransferred

public Long egressBytesTransferred()

Get the egressBytesTransferred property: Egress bytes transferred.

Returns:

the egressBytesTransferred value.

enableBgp

public Boolean enableBgp()

Get the enableBgp property: EnableBgp flag.

Returns:

the enableBgp value.

enableInternetSecurity

public Boolean enableInternetSecurity()

Get the enableInternetSecurity property: Enable internet security.

Returns:

the enableInternetSecurity value.

enableRateLimiting

public Boolean enableRateLimiting()

Get the enableRateLimiting property: EnableBgp flag.

Returns:

the enableRateLimiting value.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static VpnConnectionInner fromJson(JsonReader jsonReader)

Reads an instance of VpnConnectionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VpnConnectionInner 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 VpnConnectionInner.

ingressBytesTransferred

public Long ingressBytesTransferred()

Get the ingressBytesTransferred property: Ingress bytes transferred.

Returns:

the ingressBytesTransferred value.

ipsecPolicies

public List ipsecPolicies()

Get the ipsecPolicies property: The IPSec Policies to be considered by this connection.

Returns:

the ipsecPolicies value.

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.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the VPN connection resource.

Returns:

the provisioningState value.

remoteVpnSite

public SubResource remoteVpnSite()

Get the remoteVpnSite property: Id of the connected vpn site.

Returns:

the remoteVpnSite value.

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.

routingWeight

public Integer routingWeight()

Get the routingWeight property: Routing weight for vpn connection.

Returns:

the routingWeight value.

sharedKey

public String sharedKey()

Get the sharedKey property: SharedKey for the vpn connection.

Returns:

the sharedKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VpnConnectionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

trafficSelectorPolicies

public List trafficSelectorPolicies()

Get the trafficSelectorPolicies property: The Traffic Selector Policies to be considered by this connection.

Returns:

the trafficSelectorPolicies value.

useLocalAzureIpAddress

public Boolean useLocalAzureIpAddress()

Get the useLocalAzureIpAddress property: Use local azure ip to initiate connection.

Returns:

the useLocalAzureIpAddress value.

usePolicyBasedTrafficSelectors

public Boolean usePolicyBasedTrafficSelectors()

Get the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.

Returns:

the usePolicyBasedTrafficSelectors value.

validate

public void validate()

Validates the instance.

vpnConnectionProtocolType

public VirtualNetworkGatewayConnectionProtocol vpnConnectionProtocolType()

Get the vpnConnectionProtocolType property: Connection protocol used for this connection.

Returns:

the vpnConnectionProtocolType value.

vpnLinkConnections

public List vpnLinkConnections()

Get the vpnLinkConnections property: List of all vpn site link connections to the gateway.

Returns:

the vpnLinkConnections 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.

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.

withEnableBgp

public VpnConnectionInner withEnableBgp(Boolean enableBgp)

Set the enableBgp property: EnableBgp flag.

Parameters:

enableBgp - the enableBgp value to set.

Returns:

the VpnConnectionInner object itself.

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.

withEnableRateLimiting

public VpnConnectionInner withEnableRateLimiting(Boolean enableRateLimiting)

Set the enableRateLimiting property: EnableBgp flag.

Parameters:

enableRateLimiting - the enableRateLimiting value to set.

Returns:

the VpnConnectionInner object itself.

withId

public VpnConnectionInner withId(String id)

Overrides:

VpnConnectionInner.withId(String id)

Parameters:

id

withIpsecPolicies

public VpnConnectionInner withIpsecPolicies(List 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.

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.

withRemoteVpnSite

public VpnConnectionInner withRemoteVpnSite(SubResource remoteVpnSite)

Set the remoteVpnSite property: Id of the connected vpn site.

Parameters:

remoteVpnSite - the remoteVpnSite value to set.

Returns:

the VpnConnectionInner object itself.

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.

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.

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.

withTrafficSelectorPolicies

public VpnConnectionInner withTrafficSelectorPolicies(List 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.

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.

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.

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.

withVpnLinkConnections

public VpnConnectionInner withVpnLinkConnections(List 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.

Applies to