Class VirtualNetworkGatewayConnectionInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.network.fluent.models.VirtualNetworkGatewayConnectionInner
-
public final class VirtualNetworkGatewayConnectionInner extends com.azure.core.management.ResourceA common class for general resource information.
-
-
Constructor Summary
Constructors Constructor Description VirtualNetworkGatewayConnectionInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringauthorizationKey()Get the authorizationKey property: The authorizationKey.VirtualNetworkGatewayConnectionModeconnectionMode()Get the connectionMode property: The connection mode for this connection.VirtualNetworkGatewayConnectionProtocolconnectionProtocol()Get the connectionProtocol property: Connection protocol used for this connection.VirtualNetworkGatewayConnectionStatusconnectionStatus()Get the connectionStatus property: Virtual Network Gateway connection status.VirtualNetworkGatewayConnectionTypeconnectionType()Get the connectionType property: Gateway connection type.IntegerdpdTimeoutSeconds()Get the dpdTimeoutSeconds property: The dead peer detection timeout of this connection in seconds.LongegressBytesTransferred()Get the egressBytesTransferred property: The egress bytes transferred in this connection.List<com.azure.core.management.SubResource>egressNatRules()Get the egressNatRules property: List of egress NatRules.BooleanenableBgp()Get the enableBgp property: EnableBgp flag.Stringetag()Get the etag property: A unique read-only string that changes whenever the resource is updated.BooleanexpressRouteGatewayBypass()Get the expressRouteGatewayBypass property: Bypass ExpressRoute Gateway for data forwarding.Stringid()Get the id property: Resource ID.LongingressBytesTransferred()Get the ingressBytesTransferred property: The ingress bytes transferred in this connection.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.LocalNetworkGatewayInnerlocalNetworkGateway2()Get the localNetworkGateway2 property: The reference to local network gateway resource.com.azure.core.management.SubResourcepeer()Get the peer property: The reference to peerings resource.ProvisioningStateprovisioningState()Get the provisioningState property: The provisioning state of the virtual network gateway connection resource.StringresourceGuid()Get the resourceGuid property: The resource GUID property of the virtual network gateway connection resource.IntegerroutingWeight()Get the routingWeight property: The routing weight.StringsharedKey()Get the sharedKey property: The IPSec shared key.List<TrafficSelectorPolicy>trafficSelectorPolicies()Get the trafficSelectorPolicies property: The Traffic Selector Policies to be considered by this connection.List<TunnelConnectionHealth>tunnelConnectionStatus()Get the tunnelConnectionStatus property: Collection of all tunnels' connection health status.BooleanuseLocalAzureIpAddress()Get the useLocalAzureIpAddress property: Use private local Azure IP for the connection.BooleanusePolicyBasedTrafficSelectors()Get the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.voidvalidate()Validates the instance.VirtualNetworkGatewayInnervirtualNetworkGateway1()Get the virtualNetworkGateway1 property: The reference to virtual network gateway resource.VirtualNetworkGatewayInnervirtualNetworkGateway2()Get the virtualNetworkGateway2 property: The reference to virtual network gateway resource.VirtualNetworkGatewayConnectionInnerwithAuthorizationKey(String authorizationKey)Set the authorizationKey property: The authorizationKey.VirtualNetworkGatewayConnectionInnerwithConnectionMode(VirtualNetworkGatewayConnectionMode connectionMode)Set the connectionMode property: The connection mode for this connection.VirtualNetworkGatewayConnectionInnerwithConnectionProtocol(VirtualNetworkGatewayConnectionProtocol connectionProtocol)Set the connectionProtocol property: Connection protocol used for this connection.VirtualNetworkGatewayConnectionInnerwithConnectionType(VirtualNetworkGatewayConnectionType connectionType)Set the connectionType property: Gateway connection type.VirtualNetworkGatewayConnectionInnerwithDpdTimeoutSeconds(Integer dpdTimeoutSeconds)Set the dpdTimeoutSeconds property: The dead peer detection timeout of this connection in seconds.VirtualNetworkGatewayConnectionInnerwithEgressNatRules(List<com.azure.core.management.SubResource> egressNatRules)Set the egressNatRules property: List of egress NatRules.VirtualNetworkGatewayConnectionInnerwithEnableBgp(Boolean enableBgp)Set the enableBgp property: EnableBgp flag.VirtualNetworkGatewayConnectionInnerwithExpressRouteGatewayBypass(Boolean expressRouteGatewayBypass)Set the expressRouteGatewayBypass property: Bypass ExpressRoute Gateway for data forwarding.VirtualNetworkGatewayConnectionInnerwithId(String id)Set the id property: Resource ID.VirtualNetworkGatewayConnectionInnerwithIngressNatRules(List<com.azure.core.management.SubResource> ingressNatRules)Set the ingressNatRules property: List of ingress NatRules.VirtualNetworkGatewayConnectionInnerwithIpsecPolicies(List<IpsecPolicy> ipsecPolicies)Set the ipsecPolicies property: The IPSec Policies to be considered by this connection.VirtualNetworkGatewayConnectionInnerwithLocalNetworkGateway2(LocalNetworkGatewayInner localNetworkGateway2)Set the localNetworkGateway2 property: The reference to local network gateway resource.VirtualNetworkGatewayConnectionInnerwithLocation(String location)VirtualNetworkGatewayConnectionInnerwithPeer(com.azure.core.management.SubResource peer)Set the peer property: The reference to peerings resource.VirtualNetworkGatewayConnectionInnerwithRoutingWeight(Integer routingWeight)Set the routingWeight property: The routing weight.VirtualNetworkGatewayConnectionInnerwithSharedKey(String sharedKey)Set the sharedKey property: The IPSec shared key.VirtualNetworkGatewayConnectionInnerwithTags(Map<String,String> tags)VirtualNetworkGatewayConnectionInnerwithTrafficSelectorPolicies(List<TrafficSelectorPolicy> trafficSelectorPolicies)Set the trafficSelectorPolicies property: The Traffic Selector Policies to be considered by this connection.VirtualNetworkGatewayConnectionInnerwithUseLocalAzureIpAddress(Boolean useLocalAzureIpAddress)Set the useLocalAzureIpAddress property: Use private local Azure IP for the connection.VirtualNetworkGatewayConnectionInnerwithUsePolicyBasedTrafficSelectors(Boolean usePolicyBasedTrafficSelectors)Set the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.VirtualNetworkGatewayConnectionInnerwithVirtualNetworkGateway1(VirtualNetworkGatewayInner virtualNetworkGateway1)Set the virtualNetworkGateway1 property: The reference to virtual network gateway resource.VirtualNetworkGatewayConnectionInnerwithVirtualNetworkGateway2(VirtualNetworkGatewayInner virtualNetworkGateway2)Set the virtualNetworkGateway2 property: The reference to virtual network gateway resource.
-
-
-
Method Detail
-
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
id
public String id()
Get the id property: Resource ID.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withId
public VirtualNetworkGatewayConnectionInner withId(String id)
Set the id property: Resource ID.- Parameters:
id- the id value to set.- Returns:
- the VirtualNetworkGatewayConnectionInner object itself.
-
withLocation
public VirtualNetworkGatewayConnectionInner withLocation(String location)
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
public VirtualNetworkGatewayConnectionInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
authorizationKey
public String authorizationKey()
Get the authorizationKey property: The authorizationKey.- Returns:
- the authorizationKey value.
-
withAuthorizationKey
public VirtualNetworkGatewayConnectionInner withAuthorizationKey(String authorizationKey)
Set the authorizationKey property: The authorizationKey.- Parameters:
authorizationKey- the authorizationKey value to set.- Returns:
- the VirtualNetworkGatewayConnectionInner object itself.
-
virtualNetworkGateway1
public VirtualNetworkGatewayInner virtualNetworkGateway1()
Get the virtualNetworkGateway1 property: The reference to virtual network gateway resource.- Returns:
- the virtualNetworkGateway1 value.
-
withVirtualNetworkGateway1
public VirtualNetworkGatewayConnectionInner withVirtualNetworkGateway1(VirtualNetworkGatewayInner virtualNetworkGateway1)
Set the virtualNetworkGateway1 property: The reference to virtual network gateway resource.- Parameters:
virtualNetworkGateway1- the virtualNetworkGateway1 value to set.- Returns:
- the VirtualNetworkGatewayConnectionInner object itself.
-
virtualNetworkGateway2
public VirtualNetworkGatewayInner virtualNetworkGateway2()
Get the virtualNetworkGateway2 property: The reference to virtual network gateway resource.- Returns:
- the virtualNetworkGateway2 value.
-
withVirtualNetworkGateway2
public VirtualNetworkGatewayConnectionInner withVirtualNetworkGateway2(VirtualNetworkGatewayInner virtualNetworkGateway2)
Set the virtualNetworkGateway2 property: The reference to virtual network gateway resource.- Parameters:
virtualNetworkGateway2- the virtualNetworkGateway2 value to set.- Returns:
- the VirtualNetworkGatewayConnectionInner object itself.
-
localNetworkGateway2
public LocalNetworkGatewayInner localNetworkGateway2()
Get the localNetworkGateway2 property: The reference to local network gateway resource.- Returns:
- the localNetworkGateway2 value.
-
withLocalNetworkGateway2
public VirtualNetworkGatewayConnectionInner withLocalNetworkGateway2(LocalNetworkGatewayInner localNetworkGateway2)
Set the localNetworkGateway2 property: The reference to local network gateway resource.- Parameters:
localNetworkGateway2- the localNetworkGateway2 value to set.- Returns:
- the VirtualNetworkGatewayConnectionInner object itself.
-
ingressNatRules
public List<com.azure.core.management.SubResource> ingressNatRules()
Get the ingressNatRules property: List of ingress NatRules.- Returns:
- the ingressNatRules value.
-
withIngressNatRules
public VirtualNetworkGatewayConnectionInner 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 VirtualNetworkGatewayConnectionInner 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 VirtualNetworkGatewayConnectionInner 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 VirtualNetworkGatewayConnectionInner object itself.
-
connectionType
public VirtualNetworkGatewayConnectionType connectionType()
Get the connectionType property: Gateway connection type.- Returns:
- the connectionType value.
-
withConnectionType
public VirtualNetworkGatewayConnectionInner withConnectionType(VirtualNetworkGatewayConnectionType connectionType)
Set the connectionType property: Gateway connection type.- Parameters:
connectionType- the connectionType value to set.- Returns:
- the VirtualNetworkGatewayConnectionInner object itself.
-
connectionProtocol
public VirtualNetworkGatewayConnectionProtocol connectionProtocol()
Get the connectionProtocol property: Connection protocol used for this connection.- Returns:
- the connectionProtocol value.
-
withConnectionProtocol
public VirtualNetworkGatewayConnectionInner withConnectionProtocol(VirtualNetworkGatewayConnectionProtocol connectionProtocol)
Set the connectionProtocol property: Connection protocol used for this connection.- Parameters:
connectionProtocol- the connectionProtocol value to set.- Returns:
- the VirtualNetworkGatewayConnectionInner object itself.
-
routingWeight
public Integer routingWeight()
Get the routingWeight property: The routing weight.- Returns:
- the routingWeight value.
-
withRoutingWeight
public VirtualNetworkGatewayConnectionInner withRoutingWeight(Integer routingWeight)
Set the routingWeight property: The routing weight.- Parameters:
routingWeight- the routingWeight value to set.- Returns:
- the VirtualNetworkGatewayConnectionInner object itself.
-
dpdTimeoutSeconds
public Integer dpdTimeoutSeconds()
Get the dpdTimeoutSeconds property: The dead peer detection timeout of this connection in seconds.- Returns:
- the dpdTimeoutSeconds value.
-
withDpdTimeoutSeconds
public VirtualNetworkGatewayConnectionInner withDpdTimeoutSeconds(Integer dpdTimeoutSeconds)
Set the dpdTimeoutSeconds property: The dead peer detection timeout of this connection in seconds.- Parameters:
dpdTimeoutSeconds- the dpdTimeoutSeconds value to set.- Returns:
- the VirtualNetworkGatewayConnectionInner object itself.
-
connectionMode
public VirtualNetworkGatewayConnectionMode connectionMode()
Get the connectionMode property: The connection mode for this connection.- Returns:
- the connectionMode value.
-
withConnectionMode
public VirtualNetworkGatewayConnectionInner withConnectionMode(VirtualNetworkGatewayConnectionMode connectionMode)
Set the connectionMode property: The connection mode for this connection.- Parameters:
connectionMode- the connectionMode value to set.- Returns:
- the VirtualNetworkGatewayConnectionInner object itself.
-
sharedKey
public String sharedKey()
Get the sharedKey property: The IPSec shared key.- Returns:
- the sharedKey value.
-
withSharedKey
public VirtualNetworkGatewayConnectionInner withSharedKey(String sharedKey)
Set the sharedKey property: The IPSec shared key.- Parameters:
sharedKey- the sharedKey value to set.- Returns:
- the VirtualNetworkGatewayConnectionInner object itself.
-
connectionStatus
public VirtualNetworkGatewayConnectionStatus connectionStatus()
Get the connectionStatus property: Virtual Network Gateway connection status.- Returns:
- the connectionStatus value.
-
tunnelConnectionStatus
public List<TunnelConnectionHealth> tunnelConnectionStatus()
Get the tunnelConnectionStatus property: Collection of all tunnels' connection health status.- Returns:
- the tunnelConnectionStatus value.
-
egressBytesTransferred
public Long egressBytesTransferred()
Get the egressBytesTransferred property: The egress bytes transferred in this connection.- Returns:
- the egressBytesTransferred value.
-
ingressBytesTransferred
public Long ingressBytesTransferred()
Get the ingressBytesTransferred property: The ingress bytes transferred in this connection.- Returns:
- the ingressBytesTransferred value.
-
peer
public com.azure.core.management.SubResource peer()
Get the peer property: The reference to peerings resource.- Returns:
- the peer value.
-
withPeer
public VirtualNetworkGatewayConnectionInner withPeer(com.azure.core.management.SubResource peer)
Set the peer property: The reference to peerings resource.- Parameters:
peer- the peer value to set.- Returns:
- the VirtualNetworkGatewayConnectionInner object itself.
-
enableBgp
public Boolean enableBgp()
Get the enableBgp property: EnableBgp flag.- Returns:
- the enableBgp value.
-
withEnableBgp
public VirtualNetworkGatewayConnectionInner withEnableBgp(Boolean enableBgp)
Set the enableBgp property: EnableBgp flag.- Parameters:
enableBgp- the enableBgp value to set.- Returns:
- the VirtualNetworkGatewayConnectionInner object itself.
-
useLocalAzureIpAddress
public Boolean useLocalAzureIpAddress()
Get the useLocalAzureIpAddress property: Use private local Azure IP for the connection.- Returns:
- the useLocalAzureIpAddress value.
-
withUseLocalAzureIpAddress
public VirtualNetworkGatewayConnectionInner withUseLocalAzureIpAddress(Boolean useLocalAzureIpAddress)
Set the useLocalAzureIpAddress property: Use private local Azure IP for the connection.- Parameters:
useLocalAzureIpAddress- the useLocalAzureIpAddress value to set.- Returns:
- the VirtualNetworkGatewayConnectionInner object itself.
-
usePolicyBasedTrafficSelectors
public Boolean usePolicyBasedTrafficSelectors()
Get the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.- Returns:
- the usePolicyBasedTrafficSelectors value.
-
withUsePolicyBasedTrafficSelectors
public VirtualNetworkGatewayConnectionInner withUsePolicyBasedTrafficSelectors(Boolean usePolicyBasedTrafficSelectors)
Set the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.- Parameters:
usePolicyBasedTrafficSelectors- the usePolicyBasedTrafficSelectors value to set.- Returns:
- the VirtualNetworkGatewayConnectionInner 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 VirtualNetworkGatewayConnectionInner 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 VirtualNetworkGatewayConnectionInner object itself.
-
trafficSelectorPolicies
public List<TrafficSelectorPolicy> trafficSelectorPolicies()
Get the trafficSelectorPolicies property: The Traffic Selector Policies to be considered by this connection.- Returns:
- the trafficSelectorPolicies value.
-
withTrafficSelectorPolicies
public VirtualNetworkGatewayConnectionInner 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 VirtualNetworkGatewayConnectionInner object itself.
-
resourceGuid
public String resourceGuid()
Get the resourceGuid property: The resource GUID property of the virtual network gateway connection resource.- Returns:
- the resourceGuid value.
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the virtual network gateway connection resource.- Returns:
- the provisioningState value.
-
expressRouteGatewayBypass
public Boolean expressRouteGatewayBypass()
Get the expressRouteGatewayBypass property: Bypass ExpressRoute Gateway for data forwarding.- Returns:
- the expressRouteGatewayBypass value.
-
withExpressRouteGatewayBypass
public VirtualNetworkGatewayConnectionInner withExpressRouteGatewayBypass(Boolean expressRouteGatewayBypass)
Set the expressRouteGatewayBypass property: Bypass ExpressRoute Gateway for data forwarding.- Parameters:
expressRouteGatewayBypass- the expressRouteGatewayBypass value to set.- Returns:
- the VirtualNetworkGatewayConnectionInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-