Class VpnSiteLinkConnectionInner
- java.lang.Object
-
- com.azure.core.management.SubResource
-
- com.azure.resourcemanager.network.fluent.models.VpnSiteLinkConnectionInner
-
public final class VpnSiteLinkConnectionInner extends com.azure.core.management.SubResourceVpnSiteLinkConnection Resource.
-
-
Constructor Summary
Constructors Constructor Description VpnSiteLinkConnectionInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerconnectionBandwidth()Get the connectionBandwidth property: Expected bandwidth in MBPS.VpnConnectionStatusconnectionStatus()Get the connectionStatus property: The connection status.LongegressBytesTransferred()Get the egressBytesTransferred property: Egress bytes transferred.List<com.azure.core.management.SubResource>egressNatRules()Get the egressNatRules property: List of egress NatRules.BooleanenableBgp()Get the enableBgp property: EnableBgp flag.BooleanenableRateLimiting()Get the enableRateLimiting property: EnableBgp flag.Stringetag()Get the etag property: A unique read-only string that changes whenever the resource is updated.LongingressBytesTransferred()Get the ingressBytesTransferred property: Ingress bytes transferred.List<com.azure.core.management.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.Stringname()Get the name property: The name of the resource that is unique within a resource group.ProvisioningStateprovisioningState()Get the provisioningState property: The provisioning state of the VPN site link connection resource.IntegerroutingWeight()Get the routingWeight property: Routing weight for vpn connection.StringsharedKey()Get the sharedKey property: SharedKey for the vpn connection.Stringtype()Get the type property: Resource type.BooleanuseLocalAzureIpAddress()Get the useLocalAzureIpAddress property: Use local azure ip to initiate connection.BooleanusePolicyBasedTrafficSelectors()Get the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.voidvalidate()Validates the instance.VirtualNetworkGatewayConnectionProtocolvpnConnectionProtocolType()Get the vpnConnectionProtocolType property: Connection protocol used for this connection.VpnLinkConnectionModevpnLinkConnectionMode()Get the vpnLinkConnectionMode property: Vpn link connection mode.com.azure.core.management.SubResourcevpnSiteLink()Get the vpnSiteLink property: Id of the connected vpn site link.VpnSiteLinkConnectionInnerwithConnectionBandwidth(Integer connectionBandwidth)Set the connectionBandwidth property: Expected bandwidth in MBPS.VpnSiteLinkConnectionInnerwithEgressNatRules(List<com.azure.core.management.SubResource> egressNatRules)Set the egressNatRules property: List of egress NatRules.VpnSiteLinkConnectionInnerwithEnableBgp(Boolean enableBgp)Set the enableBgp property: EnableBgp flag.VpnSiteLinkConnectionInnerwithEnableRateLimiting(Boolean enableRateLimiting)Set the enableRateLimiting property: EnableBgp flag.VpnSiteLinkConnectionInnerwithId(String id)VpnSiteLinkConnectionInnerwithIngressNatRules(List<com.azure.core.management.SubResource> ingressNatRules)Set the ingressNatRules property: List of ingress NatRules.VpnSiteLinkConnectionInnerwithIpsecPolicies(List<IpsecPolicy> ipsecPolicies)Set the ipsecPolicies property: The IPSec Policies to be considered by this connection.VpnSiteLinkConnectionInnerwithName(String name)Set the name property: The name of the resource that is unique within a resource group.VpnSiteLinkConnectionInnerwithRoutingWeight(Integer routingWeight)Set the routingWeight property: Routing weight for vpn connection.VpnSiteLinkConnectionInnerwithSharedKey(String sharedKey)Set the sharedKey property: SharedKey for the vpn connection.VpnSiteLinkConnectionInnerwithUseLocalAzureIpAddress(Boolean useLocalAzureIpAddress)Set the useLocalAzureIpAddress property: Use local azure ip to initiate connection.VpnSiteLinkConnectionInnerwithUsePolicyBasedTrafficSelectors(Boolean usePolicyBasedTrafficSelectors)Set the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.VpnSiteLinkConnectionInnerwithVpnConnectionProtocolType(VirtualNetworkGatewayConnectionProtocol vpnConnectionProtocolType)Set the vpnConnectionProtocolType property: Connection protocol used for this connection.VpnSiteLinkConnectionInnerwithVpnLinkConnectionMode(VpnLinkConnectionMode vpnLinkConnectionMode)Set the vpnLinkConnectionMode property: Vpn link connection mode.VpnSiteLinkConnectionInnerwithVpnSiteLink(com.azure.core.management.SubResource vpnSiteLink)Set the vpnSiteLink property: Id of the connected vpn site link.
-
-
-
Method Detail
-
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.
-
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.
-
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
type
public String type()
Get the type property: Resource type.- Returns:
- the type value.
-
withId
public VpnSiteLinkConnectionInner withId(String id)
- 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
public Integer routingWeight()
Get the routingWeight property: Routing weight for vpn connection.- Returns:
- the routingWeight value.
-
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.
-
vpnLinkConnectionMode
public VpnLinkConnectionMode 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
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 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
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 VpnSiteLinkConnectionInner withConnectionBandwidth(Integer connectionBandwidth)
Set the connectionBandwidth property: Expected bandwidth in MBPS.- Parameters:
connectionBandwidth- the connectionBandwidth value to set.- Returns:
- the VpnSiteLinkConnectionInner object itself.
-
sharedKey
public String sharedKey()
Get the sharedKey property: SharedKey for the vpn connection.- Returns:
- the sharedKey value.
-
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.
-
enableBgp
public Boolean enableBgp()
Get the enableBgp property: EnableBgp flag.- Returns:
- the enableBgp value.
-
withEnableBgp
public VpnSiteLinkConnectionInner withEnableBgp(Boolean enableBgp)
Set the enableBgp property: EnableBgp flag.- Parameters:
enableBgp- the enableBgp value to set.- Returns:
- the VpnSiteLinkConnectionInner object itself.
-
usePolicyBasedTrafficSelectors
public Boolean 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
public List<IpsecPolicy> ipsecPolicies()
Get the ipsecPolicies property: The IPSec Policies to be considered by this connection.- Returns:
- the ipsecPolicies value.
-
withIpsecPolicies
public VpnSiteLinkConnectionInner 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 VpnSiteLinkConnectionInner object itself.
-
enableRateLimiting
public Boolean enableRateLimiting()
Get the enableRateLimiting property: EnableBgp flag.- Returns:
- the enableRateLimiting value.
-
withEnableRateLimiting
public VpnSiteLinkConnectionInner withEnableRateLimiting(Boolean enableRateLimiting)
Set the enableRateLimiting property: EnableBgp flag.- Parameters:
enableRateLimiting- the enableRateLimiting value to set.- Returns:
- the VpnSiteLinkConnectionInner object itself.
-
useLocalAzureIpAddress
public Boolean useLocalAzureIpAddress()
Get the useLocalAzureIpAddress property: Use local azure ip to initiate connection.- Returns:
- the useLocalAzureIpAddress value.
-
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.
-
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 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
public List<com.azure.core.management.SubResource> 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-