VirtualNetworkPeeringInner Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. network. fluent. models. VirtualNetworkPeeringInner
- com.
- com.
public final class VirtualNetworkPeeringInner
extends SubResource
Peerings in a virtual network resource.
Constructor Summary
Constructor | Description |
---|---|
VirtualNetworkPeeringInner() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
allowForwardedTraffic()
Get the allow |
Boolean |
allowGatewayTransit()
Get the allow |
Boolean |
allowVirtualNetworkAccess()
Get the allow |
Boolean |
doNotVerifyRemoteGateways()
Get the do |
Boolean |
enableOnlyIPv6Peering()
Get the enable |
String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
Address |
localAddressSpace()
Get the local |
List<String> |
localSubnetNames()
Get the local |
Address |
localVirtualNetworkAddressSpace()
Get the local |
String |
name()
Get the name property: The name of the resource that is unique within a resource group. |
Boolean |
peerCompleteVnets()
Get the peer |
Virtual |
peeringState()
Get the peering |
Virtual |
peeringSyncLevel()
Get the peering |
Provisioning |
provisioningState()
Get the provisioning |
Address |
remoteAddressSpace()
Get the remote |
Virtual |
remoteBgpCommunities()
Get the remote |
List<String> |
remoteSubnetNames()
Get the remote |
Sub |
remoteVirtualNetwork()
Get the remote |
Address |
remoteVirtualNetworkAddressSpace()
Get the remote |
Virtual |
remoteVirtualNetworkEncryption()
Get the remote |
String |
resourceGuid()
Get the resource |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: Resource type. |
Boolean |
useRemoteGateways()
Get the use |
void |
validate()
Validates the instance. |
Virtual |
withAllowForwardedTraffic(Boolean allowForwardedTraffic)
Set the allow |
Virtual |
withAllowGatewayTransit(Boolean allowGatewayTransit)
Set the allow |
Virtual |
withAllowVirtualNetworkAccess(Boolean allowVirtualNetworkAccess)
Set the allow |
Virtual |
withDoNotVerifyRemoteGateways(Boolean doNotVerifyRemoteGateways)
Set the do |
Virtual |
withEnableOnlyIPv6Peering(Boolean enableOnlyIPv6Peering)
Set the enable |
Virtual |
withId(String id) |
Virtual |
withLocalAddressSpace(AddressSpace localAddressSpace)
Set the local |
Virtual |
withLocalSubnetNames(List<String> localSubnetNames)
Set the local |
Virtual |
withLocalVirtualNetworkAddressSpace(AddressSpace localVirtualNetworkAddressSpace)
Set the local |
Virtual |
withName(String name)
Set the name property: The name of the resource that is unique within a resource group. |
Virtual |
withPeerCompleteVnets(Boolean peerCompleteVnets)
Set the peer |
Virtual |
withPeeringState(VirtualNetworkPeeringState peeringState)
Set the peering |
Virtual |
withPeeringSyncLevel(VirtualNetworkPeeringLevel peeringSyncLevel)
Set the peering |
Virtual |
withRemoteAddressSpace(AddressSpace remoteAddressSpace)
Set the remote |
Virtual |
withRemoteBgpCommunities(VirtualNetworkBgpCommunities remoteBgpCommunities)
Set the remote |
Virtual |
withRemoteSubnetNames(List<String> remoteSubnetNames)
Set the remote |
Virtual |
withRemoteVirtualNetwork(SubResource remoteVirtualNetwork)
Set the remote |
Virtual |
withRemoteVirtualNetworkAddressSpace(AddressSpace remoteVirtualNetworkAddressSpace)
Set the remote |
Virtual |
withType(String type)
Set the type property: Resource type. |
Virtual |
withUseRemoteGateways(Boolean useRemoteGateways)
Set the use |
Methods inherited from SubResource
Methods inherited from java.lang.Object
Constructor Details
VirtualNetworkPeeringInner
public VirtualNetworkPeeringInner()
Creates an instance of VirtualNetworkPeeringInner class.
Method Details
allowForwardedTraffic
public Boolean 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:
allowGatewayTransit
public Boolean allowGatewayTransit()
Get the allowGatewayTransit property: If gateway links can be used in remote virtual networking to link to this virtual network.
Returns:
allowVirtualNetworkAccess
public Boolean 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:
doNotVerifyRemoteGateways
public Boolean doNotVerifyRemoteGateways()
Get the doNotVerifyRemoteGateways property: If we need to verify the provisioning state of the remote gateway.
Returns:
enableOnlyIPv6Peering
public Boolean enableOnlyIPv6Peering()
Get the enableOnlyIPv6Peering property: Whether only Ipv6 address space is peered for subnet peering.
Returns:
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Returns:
fromJson
public static VirtualNetworkPeeringInner fromJson(JsonReader jsonReader)
Reads an instance of VirtualNetworkPeeringInner from the JsonReader.
Parameters:
Returns:
Throws:
localAddressSpace
public AddressSpace localAddressSpace()
Get the localAddressSpace property: The local address space of the local virtual network that is peered.
Returns:
localSubnetNames
public List
Get the localSubnetNames property: List of local subnet names that are subnet peered with remote virtual network.
Returns:
localVirtualNetworkAddressSpace
public AddressSpace localVirtualNetworkAddressSpace()
Get the localVirtualNetworkAddressSpace property: The current local address space of the local virtual network that is peered.
Returns:
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:
peerCompleteVnets
public Boolean peerCompleteVnets()
Get the peerCompleteVnets property: Whether complete virtual network address space is peered.
Returns:
peeringState
public VirtualNetworkPeeringState peeringState()
Get the peeringState property: The status of the virtual network peering.
Returns:
peeringSyncLevel
public VirtualNetworkPeeringLevel peeringSyncLevel()
Get the peeringSyncLevel property: The peering sync status of the virtual network peering.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the virtual network peering resource.
Returns:
remoteAddressSpace
public AddressSpace remoteAddressSpace()
Get the remoteAddressSpace property: The reference to the address space peered with the remote virtual network.
Returns:
remoteBgpCommunities
public VirtualNetworkBgpCommunities remoteBgpCommunities()
Get the remoteBgpCommunities property: The reference to the remote virtual network's Bgp Communities.
Returns:
remoteSubnetNames
public List
Get the remoteSubnetNames property: List of remote subnet names from remote virtual network that are subnet peered.
Returns:
remoteVirtualNetwork
public SubResource remoteVirtualNetwork()
Get the remoteVirtualNetwork property: The reference to the remote virtual network. The remote virtual network can be in the same or different region (preview). See here to register for the preview and learn more (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering).
Returns:
remoteVirtualNetworkAddressSpace
public AddressSpace remoteVirtualNetworkAddressSpace()
Get the remoteVirtualNetworkAddressSpace property: The reference to the current address space of the remote virtual network.
Returns:
remoteVirtualNetworkEncryption
public VirtualNetworkEncryption remoteVirtualNetworkEncryption()
Get the remoteVirtualNetworkEncryption property: The reference to the remote virtual network's encryption.
Returns:
resourceGuid
public String resourceGuid()
Get the resourceGuid property: The resourceGuid property of the Virtual Network peering resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
VirtualNetworkPeeringInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Resource type.
Returns:
useRemoteGateways
public Boolean 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:
validate
public void validate()
Validates the instance.
withAllowForwardedTraffic
public VirtualNetworkPeeringInner 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.
Parameters:
Returns:
withAllowGatewayTransit
public VirtualNetworkPeeringInner withAllowGatewayTransit(Boolean allowGatewayTransit)
Set the allowGatewayTransit property: If gateway links can be used in remote virtual networking to link to this virtual network.
Parameters:
Returns:
withAllowVirtualNetworkAccess
public VirtualNetworkPeeringInner 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.
Parameters:
Returns:
withDoNotVerifyRemoteGateways
public VirtualNetworkPeeringInner withDoNotVerifyRemoteGateways(Boolean doNotVerifyRemoteGateways)
Set the doNotVerifyRemoteGateways property: If we need to verify the provisioning state of the remote gateway.
Parameters:
Returns:
withEnableOnlyIPv6Peering
public VirtualNetworkPeeringInner withEnableOnlyIPv6Peering(Boolean enableOnlyIPv6Peering)
Set the enableOnlyIPv6Peering property: Whether only Ipv6 address space is peered for subnet peering.
Parameters:
Returns:
withId
public VirtualNetworkPeeringInner withId(String id)
Overrides:
VirtualNetworkPeeringInner.withId(String id)Parameters:
withLocalAddressSpace
public VirtualNetworkPeeringInner withLocalAddressSpace(AddressSpace localAddressSpace)
Set the localAddressSpace property: The local address space of the local virtual network that is peered.
Parameters:
Returns:
withLocalSubnetNames
public VirtualNetworkPeeringInner withLocalSubnetNames(List
Set the localSubnetNames property: List of local subnet names that are subnet peered with remote virtual network.
Parameters:
Returns:
withLocalVirtualNetworkAddressSpace
public VirtualNetworkPeeringInner withLocalVirtualNetworkAddressSpace(AddressSpace localVirtualNetworkAddressSpace)
Set the localVirtualNetworkAddressSpace property: The current local address space of the local virtual network that is peered.
Parameters:
Returns:
withName
public VirtualNetworkPeeringInner 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:
Returns:
withPeerCompleteVnets
public VirtualNetworkPeeringInner withPeerCompleteVnets(Boolean peerCompleteVnets)
Set the peerCompleteVnets property: Whether complete virtual network address space is peered.
Parameters:
Returns:
withPeeringState
public VirtualNetworkPeeringInner withPeeringState(VirtualNetworkPeeringState peeringState)
Set the peeringState property: The status of the virtual network peering.
Parameters:
Returns:
withPeeringSyncLevel
public VirtualNetworkPeeringInner withPeeringSyncLevel(VirtualNetworkPeeringLevel peeringSyncLevel)
Set the peeringSyncLevel property: The peering sync status of the virtual network peering.
Parameters:
Returns:
withRemoteAddressSpace
public VirtualNetworkPeeringInner withRemoteAddressSpace(AddressSpace remoteAddressSpace)
Set the remoteAddressSpace property: The reference to the address space peered with the remote virtual network.
Parameters:
Returns:
withRemoteBgpCommunities
public VirtualNetworkPeeringInner withRemoteBgpCommunities(VirtualNetworkBgpCommunities remoteBgpCommunities)
Set the remoteBgpCommunities property: The reference to the remote virtual network's Bgp Communities.
Parameters:
Returns:
withRemoteSubnetNames
public VirtualNetworkPeeringInner withRemoteSubnetNames(List
Set the remoteSubnetNames property: List of remote subnet names from remote virtual network that are subnet peered.
Parameters:
Returns:
withRemoteVirtualNetwork
public VirtualNetworkPeeringInner withRemoteVirtualNetwork(SubResource remoteVirtualNetwork)
Set the remoteVirtualNetwork property: The reference to the remote virtual network. The remote virtual network can be in the same or different region (preview). See here to register for the preview and learn more (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering).
Parameters:
Returns:
withRemoteVirtualNetworkAddressSpace
public VirtualNetworkPeeringInner withRemoteVirtualNetworkAddressSpace(AddressSpace remoteVirtualNetworkAddressSpace)
Set the remoteVirtualNetworkAddressSpace property: The reference to the current address space of the remote virtual network.
Parameters:
Returns:
withType
public VirtualNetworkPeeringInner withType(String type)
Set the type property: Resource type.
Parameters:
Returns:
withUseRemoteGateways
public VirtualNetworkPeeringInner withUseRemoteGateways(Boolean useRemoteGateways)
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:
Returns:
Applies to
Azure SDK for Java