VpnSiteLinkConnectionInner Class

public final class VpnSiteLinkConnectionInner
extends SubResource

VpnSiteLinkConnection Resource.

Constructor Summary

Constructor Description
VpnSiteLinkConnectionInner()

Creates an instance of VpnSiteLinkConnectionInner 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: Dead Peer Detection timeout in seconds for VpnLink connection.

Long egressBytesTransferred()

Get the egressBytesTransferred property: Egress bytes transferred.

List<SubResource> egressNatRules()

Get the egressNatRules property: List of egress NatRules.

Boolean enableBgp()

Get the enableBgp property: EnableBgp flag.

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 VpnSiteLinkConnectionInner fromJson(JsonReader jsonReader)

Reads an instance of VpnSiteLinkConnectionInner from the JsonReader.

Long ingressBytesTransferred()

Get the ingressBytesTransferred property: Ingress bytes transferred.

List<SubResource> ingressNatRules()

Get the ingressNatRules property: List of ingress NatRules.

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 site link connection resource.

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)
String type()

Get the type property: Resource type.

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<GatewayCustomBgpIpAddressIpConfiguration> vpnGatewayCustomBgpAddresses()

Get the vpnGatewayCustomBgpAddresses property: vpnGatewayCustomBgpAddresses used by this connection.

VpnLinkConnectionMode vpnLinkConnectionMode()

Get the vpnLinkConnectionMode property: Vpn link connection mode.

SubResource vpnSiteLink()

Get the vpnSiteLink property: Id of the connected vpn site link.

VpnSiteLinkConnectionInner withConnectionBandwidth(Integer connectionBandwidth)

Set the connectionBandwidth property: Expected bandwidth in MBPS.

VpnSiteLinkConnectionInner withDpdTimeoutSeconds(Integer dpdTimeoutSeconds)

Set the dpdTimeoutSeconds property: Dead Peer Detection timeout in seconds for VpnLink connection.

VpnSiteLinkConnectionInner withEgressNatRules(List<SubResource> egressNatRules)

Set the egressNatRules property: List of egress NatRules.

VpnSiteLinkConnectionInner withEnableBgp(Boolean enableBgp)

Set the enableBgp property: EnableBgp flag.

VpnSiteLinkConnectionInner withEnableRateLimiting(Boolean enableRateLimiting)

Set the enableRateLimiting property: EnableBgp flag.

VpnSiteLinkConnectionInner withId(String id)
VpnSiteLinkConnectionInner withIngressNatRules(List<SubResource> ingressNatRules)

Set the ingressNatRules property: List of ingress NatRules.

VpnSiteLinkConnectionInner withIpsecPolicies(List<IpsecPolicy> ipsecPolicies)

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

VpnSiteLinkConnectionInner withName(String name)

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

VpnSiteLinkConnectionInner withRoutingWeight(Integer routingWeight)

Set the routingWeight property: Routing weight for vpn connection.

VpnSiteLinkConnectionInner withSharedKey(String sharedKey)

Set the sharedKey property: SharedKey for the vpn connection.

VpnSiteLinkConnectionInner withUseLocalAzureIpAddress(Boolean useLocalAzureIpAddress)

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

VpnSiteLinkConnectionInner withUsePolicyBasedTrafficSelectors(Boolean usePolicyBasedTrafficSelectors)

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

VpnSiteLinkConnectionInner withVpnConnectionProtocolType(VirtualNetworkGatewayConnectionProtocol vpnConnectionProtocolType)

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

VpnSiteLinkConnectionInner withVpnGatewayCustomBgpAddresses(List<GatewayCustomBgpIpAddressIpConfiguration> vpnGatewayCustomBgpAddresses)

Set the vpnGatewayCustomBgpAddresses property: vpnGatewayCustomBgpAddresses used by this connection.

VpnSiteLinkConnectionInner withVpnLinkConnectionMode(VpnLinkConnectionMode vpnLinkConnectionMode)

Set the vpnLinkConnectionMode property: Vpn link connection mode.

VpnSiteLinkConnectionInner withVpnSiteLink(SubResource vpnSiteLink)

Set the vpnSiteLink property: Id of the connected vpn site link.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

VpnSiteLinkConnectionInner

public VpnSiteLinkConnectionInner()

Creates an instance of VpnSiteLinkConnectionInner 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: Dead Peer Detection timeout in seconds for VpnLink connection.

Returns:

the dpdTimeoutSeconds value.

egressBytesTransferred

public Long egressBytesTransferred()

Get the egressBytesTransferred property: Egress bytes transferred.

Returns:

the egressBytesTransferred value.

egressNatRules

public List egressNatRules()

Get the egressNatRules property: List of egress NatRules.

Returns:

the egressNatRules value.

enableBgp

public Boolean enableBgp()

Get the enableBgp property: EnableBgp flag.

Returns:

the enableBgp 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 VpnSiteLinkConnectionInner fromJson(JsonReader jsonReader)

Reads an instance of VpnSiteLinkConnectionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ingressBytesTransferred

public Long ingressBytesTransferred()

Get the ingressBytesTransferred property: Ingress bytes transferred.

Returns:

the ingressBytesTransferred value.

ingressNatRules

public List ingressNatRules()

Get the ingressNatRules property: List of ingress NatRules.

Returns:

the ingressNatRules 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 site link connection resource.

Returns:

the provisioningState 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:

VpnSiteLinkConnectionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Returns:

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

vpnGatewayCustomBgpAddresses

public List vpnGatewayCustomBgpAddresses()

Get the vpnGatewayCustomBgpAddresses property: vpnGatewayCustomBgpAddresses used by this connection.

Returns:

the vpnGatewayCustomBgpAddresses value.

vpnLinkConnectionMode

public VpnLinkConnectionMode vpnLinkConnectionMode()

Get the vpnLinkConnectionMode property: Vpn link connection mode.

Returns:

the vpnLinkConnectionMode value.

vpnSiteLink

public SubResource vpnSiteLink()

Get the vpnSiteLink property: Id of the connected vpn site link.

Returns:

the vpnSiteLink value.

withConnectionBandwidth

public VpnSiteLinkConnectionInner withConnectionBandwidth(Integer connectionBandwidth)

Set the connectionBandwidth property: Expected bandwidth in MBPS.

Parameters:

connectionBandwidth - the connectionBandwidth value to set.

Returns:

the VpnSiteLinkConnectionInner object itself.

withDpdTimeoutSeconds

public VpnSiteLinkConnectionInner 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 VpnSiteLinkConnectionInner object itself.

withEgressNatRules

public VpnSiteLinkConnectionInner withEgressNatRules(List egressNatRules)

Set the egressNatRules property: List of egress NatRules.

Parameters:

egressNatRules - the egressNatRules value to set.

Returns:

the VpnSiteLinkConnectionInner object itself.

withEnableBgp

public VpnSiteLinkConnectionInner withEnableBgp(Boolean enableBgp)

Set the enableBgp property: EnableBgp flag.

Parameters:

enableBgp - the enableBgp value to set.

Returns:

the VpnSiteLinkConnectionInner object itself.

withEnableRateLimiting

public VpnSiteLinkConnectionInner withEnableRateLimiting(Boolean enableRateLimiting)

Set the enableRateLimiting property: EnableBgp flag.

Parameters:

enableRateLimiting - the enableRateLimiting value to set.

Returns:

the VpnSiteLinkConnectionInner object itself.

withId

public VpnSiteLinkConnectionInner withId(String id)

Overrides:

VpnSiteLinkConnectionInner.withId(String id)

Parameters:

id

withIngressNatRules

public VpnSiteLinkConnectionInner withIngressNatRules(List ingressNatRules)

Set the ingressNatRules property: List of ingress NatRules.

Parameters:

ingressNatRules - the ingressNatRules value to set.

Returns:

the VpnSiteLinkConnectionInner object itself.

withIpsecPolicies

public VpnSiteLinkConnectionInner 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 VpnSiteLinkConnectionInner object itself.

withName

public VpnSiteLinkConnectionInner 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 VpnSiteLinkConnectionInner object itself.

withRoutingWeight

public VpnSiteLinkConnectionInner withRoutingWeight(Integer routingWeight)

Set the routingWeight property: Routing weight for vpn connection.

Parameters:

routingWeight - the routingWeight value to set.

Returns:

the VpnSiteLinkConnectionInner object itself.

withSharedKey

public VpnSiteLinkConnectionInner withSharedKey(String sharedKey)

Set the sharedKey property: SharedKey for the vpn connection.

Parameters:

sharedKey - the sharedKey value to set.

Returns:

the VpnSiteLinkConnectionInner object itself.

withUseLocalAzureIpAddress

public VpnSiteLinkConnectionInner withUseLocalAzureIpAddress(Boolean useLocalAzureIpAddress)

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

Parameters:

useLocalAzureIpAddress - the useLocalAzureIpAddress value to set.

Returns:

the VpnSiteLinkConnectionInner object itself.

withUsePolicyBasedTrafficSelectors

public VpnSiteLinkConnectionInner withUsePolicyBasedTrafficSelectors(Boolean usePolicyBasedTrafficSelectors)

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

Parameters:

usePolicyBasedTrafficSelectors - the usePolicyBasedTrafficSelectors value to set.

Returns:

the VpnSiteLinkConnectionInner object itself.

withVpnConnectionProtocolType

public VpnSiteLinkConnectionInner withVpnConnectionProtocolType(VirtualNetworkGatewayConnectionProtocol vpnConnectionProtocolType)

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

Parameters:

vpnConnectionProtocolType - the vpnConnectionProtocolType value to set.

Returns:

the VpnSiteLinkConnectionInner object itself.

withVpnGatewayCustomBgpAddresses

public VpnSiteLinkConnectionInner withVpnGatewayCustomBgpAddresses(List vpnGatewayCustomBgpAddresses)

Set the vpnGatewayCustomBgpAddresses property: vpnGatewayCustomBgpAddresses used by this connection.

Parameters:

vpnGatewayCustomBgpAddresses - the vpnGatewayCustomBgpAddresses value to set.

Returns:

the VpnSiteLinkConnectionInner object itself.

withVpnLinkConnectionMode

public VpnSiteLinkConnectionInner withVpnLinkConnectionMode(VpnLinkConnectionMode vpnLinkConnectionMode)

Set the vpnLinkConnectionMode property: Vpn link connection mode.

Parameters:

vpnLinkConnectionMode - the vpnLinkConnectionMode value to set.

Returns:

the VpnSiteLinkConnectionInner object itself.

withVpnSiteLink

public VpnSiteLinkConnectionInner withVpnSiteLink(SubResource vpnSiteLink)

Set the vpnSiteLink property: Id of the connected vpn site link.

Parameters:

vpnSiteLink - the vpnSiteLink value to set.

Returns:

the VpnSiteLinkConnectionInner object itself.

Applies to