Share via


VirtualNetworkPeeringPropertiesFormat Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.VirtualNetworkPeeringPropertiesFormat

Implements

public final class VirtualNetworkPeeringPropertiesFormat
implements JsonSerializable<VirtualNetworkPeeringPropertiesFormat>

Properties of the virtual network peering.

Constructor Summary

Constructor Description
VirtualNetworkPeeringPropertiesFormat()

Creates an instance of VirtualNetworkPeeringPropertiesFormat class.

Method Summary

Modifier and Type Method and Description
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.

Boolean allowGatewayTransit()

Get the allowGatewayTransit property: If gateway links can be used in remote virtual networking to link to this virtual network.

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.

Boolean doNotVerifyRemoteGateways()

Get the doNotVerifyRemoteGateways property: If we need to verify the provisioning state of the remote gateway.

Boolean enableOnlyIPv6Peering()

Get the enableOnlyIPv6Peering property: Whether only Ipv6 address space is peered for subnet peering.

static VirtualNetworkPeeringPropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkPeeringPropertiesFormat from the JsonReader.

AddressSpace localAddressSpace()

Get the localAddressSpace property: The local address space of the local virtual network that is peered.

List<String> localSubnetNames()

Get the localSubnetNames property: List of local subnet names that are subnet peered with remote virtual network.

AddressSpace localVirtualNetworkAddressSpace()

Get the localVirtualNetworkAddressSpace property: The current local address space of the local virtual network that is peered.

Boolean peerCompleteVnets()

Get the peerCompleteVnets property: Whether complete virtual network address space is peered.

VirtualNetworkPeeringState peeringState()

Get the peeringState property: The status of the virtual network peering.

VirtualNetworkPeeringLevel peeringSyncLevel()

Get the peeringSyncLevel property: The peering sync status of the virtual network peering.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the virtual network peering resource.

AddressSpace remoteAddressSpace()

Get the remoteAddressSpace property: The reference to the address space peered with the remote virtual network.

VirtualNetworkBgpCommunities remoteBgpCommunities()

Get the remoteBgpCommunities property: The reference to the remote virtual network's Bgp Communities.

List<String> remoteSubnetNames()

Get the remoteSubnetNames property: List of remote subnet names from remote virtual network that are subnet peered.

SubResource remoteVirtualNetwork()

Get the remoteVirtualNetwork property: The reference to the remote virtual network.

AddressSpace remoteVirtualNetworkAddressSpace()

Get the remoteVirtualNetworkAddressSpace property: The reference to the current address space of the remote virtual network.

VirtualNetworkEncryption remoteVirtualNetworkEncryption()

Get the remoteVirtualNetworkEncryption property: The reference to the remote virtual network's encryption.

String resourceGuid()

Get the resourceGuid property: The resourceGuid property of the Virtual Network peering resource.

JsonWriter toJson(JsonWriter jsonWriter)
Boolean useRemoteGateways()

Get the useRemoteGateways property: If remote gateways can be used on this virtual network.

void validate()

Validates the instance.

VirtualNetworkPeeringPropertiesFormat 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.

VirtualNetworkPeeringPropertiesFormat withAllowGatewayTransit(Boolean allowGatewayTransit)

Set the allowGatewayTransit property: If gateway links can be used in remote virtual networking to link to this virtual network.

VirtualNetworkPeeringPropertiesFormat 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.

VirtualNetworkPeeringPropertiesFormat withDoNotVerifyRemoteGateways(Boolean doNotVerifyRemoteGateways)

Set the doNotVerifyRemoteGateways property: If we need to verify the provisioning state of the remote gateway.

VirtualNetworkPeeringPropertiesFormat withEnableOnlyIPv6Peering(Boolean enableOnlyIPv6Peering)

Set the enableOnlyIPv6Peering property: Whether only Ipv6 address space is peered for subnet peering.

VirtualNetworkPeeringPropertiesFormat withLocalAddressSpace(AddressSpace localAddressSpace)

Set the localAddressSpace property: The local address space of the local virtual network that is peered.

VirtualNetworkPeeringPropertiesFormat withLocalSubnetNames(List<String> localSubnetNames)

Set the localSubnetNames property: List of local subnet names that are subnet peered with remote virtual network.

VirtualNetworkPeeringPropertiesFormat withLocalVirtualNetworkAddressSpace(AddressSpace localVirtualNetworkAddressSpace)

Set the localVirtualNetworkAddressSpace property: The current local address space of the local virtual network that is peered.

VirtualNetworkPeeringPropertiesFormat withPeerCompleteVnets(Boolean peerCompleteVnets)

Set the peerCompleteVnets property: Whether complete virtual network address space is peered.

VirtualNetworkPeeringPropertiesFormat withPeeringState(VirtualNetworkPeeringState peeringState)

Set the peeringState property: The status of the virtual network peering.

VirtualNetworkPeeringPropertiesFormat withPeeringSyncLevel(VirtualNetworkPeeringLevel peeringSyncLevel)

Set the peeringSyncLevel property: The peering sync status of the virtual network peering.

VirtualNetworkPeeringPropertiesFormat withRemoteAddressSpace(AddressSpace remoteAddressSpace)

Set the remoteAddressSpace property: The reference to the address space peered with the remote virtual network.

VirtualNetworkPeeringPropertiesFormat withRemoteBgpCommunities(VirtualNetworkBgpCommunities remoteBgpCommunities)

Set the remoteBgpCommunities property: The reference to the remote virtual network's Bgp Communities.

VirtualNetworkPeeringPropertiesFormat withRemoteSubnetNames(List<String> remoteSubnetNames)

Set the remoteSubnetNames property: List of remote subnet names from remote virtual network that are subnet peered.

VirtualNetworkPeeringPropertiesFormat withRemoteVirtualNetwork(SubResource remoteVirtualNetwork)

Set the remoteVirtualNetwork property: The reference to the remote virtual network.

VirtualNetworkPeeringPropertiesFormat withRemoteVirtualNetworkAddressSpace(AddressSpace remoteVirtualNetworkAddressSpace)

Set the remoteVirtualNetworkAddressSpace property: The reference to the current address space of the remote virtual network.

VirtualNetworkPeeringPropertiesFormat withUseRemoteGateways(Boolean useRemoteGateways)

Set the useRemoteGateways property: If remote gateways can be used on this virtual network.

Methods inherited from java.lang.Object

Constructor Details

VirtualNetworkPeeringPropertiesFormat

public VirtualNetworkPeeringPropertiesFormat()

Creates an instance of VirtualNetworkPeeringPropertiesFormat 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:

the allowForwardedTraffic value.

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:

the allowGatewayTransit value.

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:

the allowVirtualNetworkAccess value.

doNotVerifyRemoteGateways

public Boolean doNotVerifyRemoteGateways()

Get the doNotVerifyRemoteGateways property: If we need to verify the provisioning state of the remote gateway.

Returns:

the doNotVerifyRemoteGateways value.

enableOnlyIPv6Peering

public Boolean enableOnlyIPv6Peering()

Get the enableOnlyIPv6Peering property: Whether only Ipv6 address space is peered for subnet peering.

Returns:

the enableOnlyIPv6Peering value.

fromJson

public static VirtualNetworkPeeringPropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkPeeringPropertiesFormat from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualNetworkPeeringPropertiesFormat 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 VirtualNetworkPeeringPropertiesFormat.

localAddressSpace

public AddressSpace localAddressSpace()

Get the localAddressSpace property: The local address space of the local virtual network that is peered.

Returns:

the localAddressSpace value.

localSubnetNames

public List<String> localSubnetNames()

Get the localSubnetNames property: List of local subnet names that are subnet peered with remote virtual network.

Returns:

the localSubnetNames value.

localVirtualNetworkAddressSpace

public AddressSpace localVirtualNetworkAddressSpace()

Get the localVirtualNetworkAddressSpace property: The current local address space of the local virtual network that is peered.

Returns:

the localVirtualNetworkAddressSpace value.

peerCompleteVnets

public Boolean peerCompleteVnets()

Get the peerCompleteVnets property: Whether complete virtual network address space is peered.

Returns:

the peerCompleteVnets value.

peeringState

public VirtualNetworkPeeringState peeringState()

Get the peeringState property: The status of the virtual network peering.

Returns:

the peeringState value.

peeringSyncLevel

public VirtualNetworkPeeringLevel peeringSyncLevel()

Get the peeringSyncLevel property: The peering sync status of the virtual network peering.

Returns:

the peeringSyncLevel value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the virtual network peering resource.

Returns:

the provisioningState value.

remoteAddressSpace

public AddressSpace remoteAddressSpace()

Get the remoteAddressSpace property: The reference to the address space peered with the remote virtual network.

Returns:

the remoteAddressSpace value.

remoteBgpCommunities

public VirtualNetworkBgpCommunities remoteBgpCommunities()

Get the remoteBgpCommunities property: The reference to the remote virtual network's Bgp Communities.

Returns:

the remoteBgpCommunities value.

remoteSubnetNames

public List<String> remoteSubnetNames()

Get the remoteSubnetNames property: List of remote subnet names from remote virtual network that are subnet peered.

Returns:

the remoteSubnetNames value.

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:

the remoteVirtualNetwork value.

remoteVirtualNetworkAddressSpace

public AddressSpace remoteVirtualNetworkAddressSpace()

Get the remoteVirtualNetworkAddressSpace property: The reference to the current address space of the remote virtual network.

Returns:

the remoteVirtualNetworkAddressSpace value.

remoteVirtualNetworkEncryption

public VirtualNetworkEncryption remoteVirtualNetworkEncryption()

Get the remoteVirtualNetworkEncryption property: The reference to the remote virtual network's encryption.

Returns:

the remoteVirtualNetworkEncryption value.

resourceGuid

public String resourceGuid()

Get the resourceGuid property: The resourceGuid property of the Virtual Network peering resource.

Returns:

the resourceGuid value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

the useRemoteGateways value.

validate

public void validate()

Validates the instance.

withAllowForwardedTraffic

public VirtualNetworkPeeringPropertiesFormat 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:

allowForwardedTraffic - the allowForwardedTraffic value to set.

Returns:

the VirtualNetworkPeeringPropertiesFormat object itself.

withAllowGatewayTransit

public VirtualNetworkPeeringPropertiesFormat withAllowGatewayTransit(Boolean allowGatewayTransit)

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 VirtualNetworkPeeringPropertiesFormat object itself.

withAllowVirtualNetworkAccess

public VirtualNetworkPeeringPropertiesFormat 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:

allowVirtualNetworkAccess - the allowVirtualNetworkAccess value to set.

Returns:

the VirtualNetworkPeeringPropertiesFormat object itself.

withDoNotVerifyRemoteGateways

public VirtualNetworkPeeringPropertiesFormat withDoNotVerifyRemoteGateways(Boolean doNotVerifyRemoteGateways)

Set the doNotVerifyRemoteGateways property: If we need to verify the provisioning state of the remote gateway.

Parameters:

doNotVerifyRemoteGateways - the doNotVerifyRemoteGateways value to set.

Returns:

the VirtualNetworkPeeringPropertiesFormat object itself.

withEnableOnlyIPv6Peering

public VirtualNetworkPeeringPropertiesFormat withEnableOnlyIPv6Peering(Boolean enableOnlyIPv6Peering)

Set the enableOnlyIPv6Peering property: Whether only Ipv6 address space is peered for subnet peering.

Parameters:

enableOnlyIPv6Peering - the enableOnlyIPv6Peering value to set.

Returns:

the VirtualNetworkPeeringPropertiesFormat object itself.

withLocalAddressSpace

public VirtualNetworkPeeringPropertiesFormat withLocalAddressSpace(AddressSpace localAddressSpace)

Set the localAddressSpace property: The local address space of the local virtual network that is peered.

Parameters:

localAddressSpace - the localAddressSpace value to set.

Returns:

the VirtualNetworkPeeringPropertiesFormat object itself.

withLocalSubnetNames

public VirtualNetworkPeeringPropertiesFormat withLocalSubnetNames(List<String> localSubnetNames)

Set the localSubnetNames property: List of local subnet names that are subnet peered with remote virtual network.

Parameters:

localSubnetNames - the localSubnetNames value to set.

Returns:

the VirtualNetworkPeeringPropertiesFormat object itself.

withLocalVirtualNetworkAddressSpace

public VirtualNetworkPeeringPropertiesFormat withLocalVirtualNetworkAddressSpace(AddressSpace localVirtualNetworkAddressSpace)

Set the localVirtualNetworkAddressSpace property: The current local address space of the local virtual network that is peered.

Parameters:

localVirtualNetworkAddressSpace - the localVirtualNetworkAddressSpace value to set.

Returns:

the VirtualNetworkPeeringPropertiesFormat object itself.

withPeerCompleteVnets

public VirtualNetworkPeeringPropertiesFormat withPeerCompleteVnets(Boolean peerCompleteVnets)

Set the peerCompleteVnets property: Whether complete virtual network address space is peered.

Parameters:

peerCompleteVnets - the peerCompleteVnets value to set.

Returns:

the VirtualNetworkPeeringPropertiesFormat object itself.

withPeeringState

public VirtualNetworkPeeringPropertiesFormat withPeeringState(VirtualNetworkPeeringState peeringState)

Set the peeringState property: The status of the virtual network peering.

Parameters:

peeringState - the peeringState value to set.

Returns:

the VirtualNetworkPeeringPropertiesFormat object itself.

withPeeringSyncLevel

public VirtualNetworkPeeringPropertiesFormat withPeeringSyncLevel(VirtualNetworkPeeringLevel peeringSyncLevel)

Set the peeringSyncLevel property: The peering sync status of the virtual network peering.

Parameters:

peeringSyncLevel - the peeringSyncLevel value to set.

Returns:

the VirtualNetworkPeeringPropertiesFormat object itself.

withRemoteAddressSpace

public VirtualNetworkPeeringPropertiesFormat withRemoteAddressSpace(AddressSpace remoteAddressSpace)

Set the remoteAddressSpace property: The reference to the address space peered with the remote virtual network.

Parameters:

remoteAddressSpace - the remoteAddressSpace value to set.

Returns:

the VirtualNetworkPeeringPropertiesFormat object itself.

withRemoteBgpCommunities

public VirtualNetworkPeeringPropertiesFormat withRemoteBgpCommunities(VirtualNetworkBgpCommunities remoteBgpCommunities)

Set the remoteBgpCommunities property: The reference to the remote virtual network's Bgp Communities.

Parameters:

remoteBgpCommunities - the remoteBgpCommunities value to set.

Returns:

the VirtualNetworkPeeringPropertiesFormat object itself.

withRemoteSubnetNames

public VirtualNetworkPeeringPropertiesFormat withRemoteSubnetNames(List<String> remoteSubnetNames)

Set the remoteSubnetNames property: List of remote subnet names from remote virtual network that are subnet peered.

Parameters:

remoteSubnetNames - the remoteSubnetNames value to set.

Returns:

the VirtualNetworkPeeringPropertiesFormat object itself.

withRemoteVirtualNetwork

public VirtualNetworkPeeringPropertiesFormat 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:

remoteVirtualNetwork - the remoteVirtualNetwork value to set.

Returns:

the VirtualNetworkPeeringPropertiesFormat object itself.

withRemoteVirtualNetworkAddressSpace

public VirtualNetworkPeeringPropertiesFormat withRemoteVirtualNetworkAddressSpace(AddressSpace remoteVirtualNetworkAddressSpace)

Set the remoteVirtualNetworkAddressSpace property: The reference to the current address space of the remote virtual network.

Parameters:

remoteVirtualNetworkAddressSpace - the remoteVirtualNetworkAddressSpace value to set.

Returns:

the VirtualNetworkPeeringPropertiesFormat object itself.

withUseRemoteGateways

public VirtualNetworkPeeringPropertiesFormat 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:

useRemoteGateways - the useRemoteGateways value to set.

Returns:

the VirtualNetworkPeeringPropertiesFormat object itself.

Applies to