Class VirtualNetworkPeeringInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.databricks.fluent.models.VirtualNetworkPeeringInner
public final class VirtualNetworkPeeringInner
extends com.azure.core.management.ProxyResource
Peerings in a VirtualNetwork resource.
-
Constructor Summary
ConstructorDescriptionCreates an instance of VirtualNetworkPeeringInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the allowForwardedTraffic property: Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network.Get the allowGatewayTransit property: If gateway links can be used in remote virtual networking to link to this virtual network.Get the allowVirtualNetworkAccess property: Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space.Get the databricksAddressSpace property: The reference to the databricks virtual network address space.Get the databricksVirtualNetwork property: The remote virtual network should be in the same region.Get the peeringState property: The status of the virtual network peering.Get the provisioningState property: The provisioning state of the virtual network peering resource.Get the remoteAddressSpace property: The reference to the remote virtual network address space.Get the remoteVirtualNetwork property: The remote virtual network should be in the same region.Get the useRemoteGateways property: If remote gateways can be used on this virtual network.void
validate()
Validates the instance.withAllowForwardedTraffic
(Boolean allowForwardedTraffic) Set the allowForwardedTraffic property: Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network.withAllowGatewayTransit
(Boolean allowGatewayTransit) Set the allowGatewayTransit property: If gateway links can be used in remote virtual networking to link to this virtual network.withAllowVirtualNetworkAccess
(Boolean allowVirtualNetworkAccess) Set the allowVirtualNetworkAccess property: Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space.withDatabricksAddressSpace
(AddressSpace databricksAddressSpace) Set the databricksAddressSpace property: The reference to the databricks virtual network address space.withDatabricksVirtualNetwork
(VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork databricksVirtualNetwork) Set the databricksVirtualNetwork property: The remote virtual network should be in the same region.withRemoteAddressSpace
(AddressSpace remoteAddressSpace) Set the remoteAddressSpace property: The reference to the remote virtual network address space.withRemoteVirtualNetwork
(VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork remoteVirtualNetwork) Set the remoteVirtualNetwork property: The remote virtual network should be in the same region.withUseRemoteGateways
(Boolean useRemoteGateways) Set the useRemoteGateways property: If remote gateways can be used on this virtual network.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
VirtualNetworkPeeringInner
public VirtualNetworkPeeringInner()Creates an instance of VirtualNetworkPeeringInner class.
-
-
Method Details
-
allowVirtualNetworkAccess
Get the allowVirtualNetworkAccess property: Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space.- Returns:
- the allowVirtualNetworkAccess value.
-
withAllowVirtualNetworkAccess
Set the allowVirtualNetworkAccess property: Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space.- Parameters:
allowVirtualNetworkAccess
- the allowVirtualNetworkAccess value to set.- Returns:
- the VirtualNetworkPeeringInner object itself.
-
allowForwardedTraffic
Get the allowForwardedTraffic property: Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network.- Returns:
- the allowForwardedTraffic value.
-
withAllowForwardedTraffic
Set the allowForwardedTraffic property: Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network.- Parameters:
allowForwardedTraffic
- the allowForwardedTraffic value to set.- Returns:
- the VirtualNetworkPeeringInner object itself.
-
allowGatewayTransit
Get the allowGatewayTransit property: If gateway links can be used in remote virtual networking to link to this virtual network.- Returns:
- the allowGatewayTransit value.
-
withAllowGatewayTransit
Set the allowGatewayTransit property: If gateway links can be used in remote virtual networking to link to this virtual network.- Parameters:
allowGatewayTransit
- the allowGatewayTransit value to set.- Returns:
- the VirtualNetworkPeeringInner object itself.
-
useRemoteGateways
Get the useRemoteGateways property: If remote gateways can be used on this virtual network. If the flag is set to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway.- Returns:
- the useRemoteGateways value.
-
withUseRemoteGateways
Set the useRemoteGateways property: If remote gateways can be used on this virtual network. If the flag is set to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway.- Parameters:
useRemoteGateways
- the useRemoteGateways value to set.- Returns:
- the VirtualNetworkPeeringInner object itself.
-
databricksVirtualNetwork
Get the databricksVirtualNetwork property: The remote virtual network should be in the same region. See here to learn more (https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering).- Returns:
- the databricksVirtualNetwork value.
-
withDatabricksVirtualNetwork
public VirtualNetworkPeeringInner withDatabricksVirtualNetwork(VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork databricksVirtualNetwork) Set the databricksVirtualNetwork property: The remote virtual network should be in the same region. See here to learn more (https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering).- Parameters:
databricksVirtualNetwork
- the databricksVirtualNetwork value to set.- Returns:
- the VirtualNetworkPeeringInner object itself.
-
databricksAddressSpace
Get the databricksAddressSpace property: The reference to the databricks virtual network address space.- Returns:
- the databricksAddressSpace value.
-
withDatabricksAddressSpace
Set the databricksAddressSpace property: The reference to the databricks virtual network address space.- Parameters:
databricksAddressSpace
- the databricksAddressSpace value to set.- Returns:
- the VirtualNetworkPeeringInner object itself.
-
remoteVirtualNetwork
Get the remoteVirtualNetwork property: The remote virtual network should be in the same region. See here to learn more (https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering).- Returns:
- the remoteVirtualNetwork value.
-
withRemoteVirtualNetwork
public VirtualNetworkPeeringInner withRemoteVirtualNetwork(VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork remoteVirtualNetwork) Set the remoteVirtualNetwork property: The remote virtual network should be in the same region. See here to learn more (https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering).- Parameters:
remoteVirtualNetwork
- the remoteVirtualNetwork value to set.- Returns:
- the VirtualNetworkPeeringInner object itself.
-
remoteAddressSpace
Get the remoteAddressSpace property: The reference to the remote virtual network address space.- Returns:
- the remoteAddressSpace value.
-
withRemoteAddressSpace
Set the remoteAddressSpace property: The reference to the remote virtual network address space.- Parameters:
remoteAddressSpace
- the remoteAddressSpace value to set.- Returns:
- the VirtualNetworkPeeringInner object itself.
-
peeringState
Get the peeringState property: The status of the virtual network peering.- Returns:
- the peeringState value.
-
provisioningState
Get the provisioningState property: The provisioning state of the virtual network peering resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-