Class VpnSiteLinkConnectionInner
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.fluent.models.VpnSiteLinkConnectionInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
public final class VpnSiteLinkConnectionInner
extends com.azure.core.management.SubResource
VpnSiteLinkConnection Resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VpnSiteLinkConnectionInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the connectionBandwidth property: Expected bandwidth in MBPS.Get the connectionStatus property: The connection status.Get the dpdTimeoutSeconds property: Dead Peer Detection timeout in seconds for VpnLink connection.Get the egressBytesTransferred property: Egress bytes transferred.List<com.azure.core.management.SubResource> Get the egressNatRules property: List of egress NatRules.Get the enableBgp property: EnableBgp flag.Get the enableRateLimiting property: EnableBgp flag.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.static VpnSiteLinkConnectionInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VpnSiteLinkConnectionInner from the JsonReader.Get the ingressBytesTransferred property: Ingress bytes transferred.List<com.azure.core.management.SubResource> Get the ingressNatRules property: List of ingress NatRules.Get the ipsecPolicies property: The IPSec Policies to be considered by this connection.name()Get the name property: The name of the resource that is unique within a resource group.Get the provisioningState property: The provisioning state of the VPN site link connection resource.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) type()Get the type property: Resource type.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 vpnGatewayCustomBgpAddresses property: vpnGatewayCustomBgpAddresses used by this connection.Get the vpnLinkConnectionMode property: Vpn link connection mode.com.azure.core.management.SubResourceGet the vpnSiteLink property: Id of the connected vpn site link.withConnectionBandwidth(Integer connectionBandwidth) Set the connectionBandwidth property: Expected bandwidth in MBPS.withDpdTimeoutSeconds(Integer dpdTimeoutSeconds) Set the dpdTimeoutSeconds property: Dead Peer Detection timeout in seconds for VpnLink connection.withEgressNatRules(List<com.azure.core.management.SubResource> egressNatRules) Set the egressNatRules property: List of egress NatRules.withEnableBgp(Boolean enableBgp) Set the enableBgp property: EnableBgp flag.withEnableRateLimiting(Boolean enableRateLimiting) Set the enableRateLimiting property: EnableBgp flag.withIngressNatRules(List<com.azure.core.management.SubResource> ingressNatRules) Set the ingressNatRules property: List of ingress NatRules.withIpsecPolicies(List<IpsecPolicy> ipsecPolicies) Set the ipsecPolicies property: The IPSec Policies to be considered by this connection.Set the name property: The name of the resource that is unique within a resource group.withRoutingWeight(Integer routingWeight) Set the routingWeight property: Routing weight for vpn connection.withSharedKey(String sharedKey) Set the sharedKey property: SharedKey for the vpn 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.withVpnGatewayCustomBgpAddresses(List<GatewayCustomBgpIpAddressIpConfiguration> vpnGatewayCustomBgpAddresses) Set the vpnGatewayCustomBgpAddresses property: vpnGatewayCustomBgpAddresses used by this connection.withVpnLinkConnectionMode(VpnLinkConnectionMode vpnLinkConnectionMode) Set the vpnLinkConnectionMode property: Vpn link connection mode.withVpnSiteLink(com.azure.core.management.SubResource vpnSiteLink) Set the vpnSiteLink property: Id of the connected vpn site link.Methods inherited from class com.azure.core.management.SubResource
idMethods 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
-
VpnSiteLinkConnectionInner
public VpnSiteLinkConnectionInner()Creates an instance of VpnSiteLinkConnectionInner class.
-
-
Method Details
-
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
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.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
type
Get the type property: Resource type.- Returns:
- the type value.
-
withId
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
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 VpnSiteLinkConnectionInner 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 VpnSiteLinkConnectionInner 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 VpnSiteLinkConnectionInner object itself.
-
vpnLinkConnectionMode
Get the vpnLinkConnectionMode property: Vpn link connection mode.- Returns:
- the vpnLinkConnectionMode value.
-
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.
-
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 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.
-
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 VpnSiteLinkConnectionInner 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 VpnSiteLinkConnectionInner object itself.
-
vpnGatewayCustomBgpAddresses
Get the vpnGatewayCustomBgpAddresses property: vpnGatewayCustomBgpAddresses used by this connection.- Returns:
- the vpnGatewayCustomBgpAddresses value.
-
withVpnGatewayCustomBgpAddresses
public VpnSiteLinkConnectionInner withVpnGatewayCustomBgpAddresses(List<GatewayCustomBgpIpAddressIpConfiguration> vpnGatewayCustomBgpAddresses) Set the vpnGatewayCustomBgpAddresses property: vpnGatewayCustomBgpAddresses used by this connection.- Parameters:
vpnGatewayCustomBgpAddresses- the vpnGatewayCustomBgpAddresses value to set.- Returns:
- the VpnSiteLinkConnectionInner object itself.
-
usePolicyBasedTrafficSelectors
Get the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.- Returns:
- the usePolicyBasedTrafficSelectors value.
-
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.
-
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 VpnSiteLinkConnectionInner 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 VpnSiteLinkConnectionInner 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 VpnSiteLinkConnectionInner object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of the VPN site link connection resource.- Returns:
- the provisioningState value.
-
ingressNatRules
Get the ingressNatRules property: List of ingress NatRules.- Returns:
- the ingressNatRules value.
-
withIngressNatRules
public VpnSiteLinkConnectionInner 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 VpnSiteLinkConnectionInner object itself.
-
egressNatRules
Get the egressNatRules property: List of egress NatRules.- Returns:
- the egressNatRules value.
-
withEgressNatRules
public VpnSiteLinkConnectionInner 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 VpnSiteLinkConnectionInner object itself.
-
dpdTimeoutSeconds
Get the dpdTimeoutSeconds property: Dead Peer Detection timeout in seconds for VpnLink connection.- Returns:
- the dpdTimeoutSeconds value.
-
withDpdTimeoutSeconds
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.SubResource>- Overrides:
toJsonin classcom.azure.core.management.SubResource- Throws:
IOException
-
fromJson
public static VpnSiteLinkConnectionInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-