Partilhar via


VirtualNetworkInner Class

public final class VirtualNetworkInner
extends Resource

Virtual Network resource.

Constructor Summary

Constructor Description
VirtualNetworkInner()

Creates an instance of VirtualNetworkInner class.

Method Summary

Modifier and Type Method and Description
AddressSpace addressSpace()

Get the addressSpace property: The AddressSpace that contains an array of IP address ranges that can be used by subnets.

VirtualNetworkBgpCommunities bgpCommunities()

Get the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.

SubResource ddosProtectionPlan()

Get the ddosProtectionPlan property: The DDoS protection plan associated with the virtual network.

DhcpOptions dhcpOptions()

Get the dhcpOptions property: The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.

Boolean enableDdosProtection()

Get the enableDdosProtection property: Indicates if DDoS protection is enabled for all the protected resources in the virtual network.

Boolean enableVmProtection()

Get the enableVmProtection property: Indicates if VM protection is enabled for all the subnets in the virtual network.

VirtualNetworkEncryption encryption()

Get the encryption property: Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.

String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the virtual network.

List<FlowLogInner> flowLogs()

Get the flowLogs property: A collection of references to flow log resources.

Integer flowTimeoutInMinutes()

Get the flowTimeoutInMinutes property: The FlowTimeout value (in minutes) for the Virtual Network.

static VirtualNetworkInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkInner from the JsonReader.

String id()

Get the id property: Resource ID.

List<SubResource> ipAllocations()

Get the ipAllocations property: Array of IpAllocation which reference this VNET.

String name()

Get the name property: The name of the resource.

PrivateEndpointVNetPolicies privateEndpointVNetPolicies()

Get the privateEndpointVNetPolicies property: Private Endpoint VNet Policies.

ProvisioningState provisioningState()

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

String resourceGuid()

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

List<SubnetInner> subnets()

Get the subnets property: A list of subnets in a Virtual Network.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

List<VirtualNetworkPeeringInner> virtualNetworkPeerings()

Get the virtualNetworkPeerings property: A list of peerings in a Virtual Network.

VirtualNetworkInner withAddressSpace(AddressSpace addressSpace)

Set the addressSpace property: The AddressSpace that contains an array of IP address ranges that can be used by subnets.

VirtualNetworkInner withBgpCommunities(VirtualNetworkBgpCommunities bgpCommunities)

Set the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.

VirtualNetworkInner withDdosProtectionPlan(SubResource ddosProtectionPlan)

Set the ddosProtectionPlan property: The DDoS protection plan associated with the virtual network.

VirtualNetworkInner withDhcpOptions(DhcpOptions dhcpOptions)

Set the dhcpOptions property: The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.

VirtualNetworkInner withEnableDdosProtection(Boolean enableDdosProtection)

Set the enableDdosProtection property: Indicates if DDoS protection is enabled for all the protected resources in the virtual network.

VirtualNetworkInner withEnableVmProtection(Boolean enableVmProtection)

Set the enableVmProtection property: Indicates if VM protection is enabled for all the subnets in the virtual network.

VirtualNetworkInner withEncryption(VirtualNetworkEncryption encryption)

Set the encryption property: Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.

VirtualNetworkInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the virtual network.

VirtualNetworkInner withFlowTimeoutInMinutes(Integer flowTimeoutInMinutes)

Set the flowTimeoutInMinutes property: The FlowTimeout value (in minutes) for the Virtual Network.

VirtualNetworkInner withId(String id)

Set the id property: Resource ID.

VirtualNetworkInner withIpAllocations(List<SubResource> ipAllocations)

Set the ipAllocations property: Array of IpAllocation which reference this VNET.

VirtualNetworkInner withLocation(String location)
VirtualNetworkInner withPrivateEndpointVNetPolicies(PrivateEndpointVNetPolicies privateEndpointVNetPolicies)

Set the privateEndpointVNetPolicies property: Private Endpoint VNet Policies.

VirtualNetworkInner withSubnets(List<SubnetInner> subnets)

Set the subnets property: A list of subnets in a Virtual Network.

VirtualNetworkInner withTags(Map<String,String> tags)
VirtualNetworkInner withVirtualNetworkPeerings(List<VirtualNetworkPeeringInner> virtualNetworkPeerings)

Set the virtualNetworkPeerings property: A list of peerings in a Virtual Network.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

VirtualNetworkInner

public VirtualNetworkInner()

Creates an instance of VirtualNetworkInner class.

Method Details

addressSpace

public AddressSpace addressSpace()

Get the addressSpace property: The AddressSpace that contains an array of IP address ranges that can be used by subnets.

Returns:

the addressSpace value.

bgpCommunities

public VirtualNetworkBgpCommunities bgpCommunities()

Get the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.

Returns:

the bgpCommunities value.

ddosProtectionPlan

public SubResource ddosProtectionPlan()

Get the ddosProtectionPlan property: The DDoS protection plan associated with the virtual network.

Returns:

the ddosProtectionPlan value.

dhcpOptions

public DhcpOptions dhcpOptions()

Get the dhcpOptions property: The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.

Returns:

the dhcpOptions value.

enableDdosProtection

public Boolean enableDdosProtection()

Get the enableDdosProtection property: Indicates if DDoS protection is enabled for all the protected resources in the virtual network. It requires a DDoS protection plan associated with the resource.

Returns:

the enableDdosProtection value.

enableVmProtection

public Boolean enableVmProtection()

Get the enableVmProtection property: Indicates if VM protection is enabled for all the subnets in the virtual network.

Returns:

the enableVmProtection value.

encryption

public VirtualNetworkEncryption encryption()

Get the encryption property: Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.

Returns:

the encryption value.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

extendedLocation

public ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the virtual network.

Returns:

the extendedLocation value.

flowLogs

public List flowLogs()

Get the flowLogs property: A collection of references to flow log resources.

Returns:

the flowLogs value.

flowTimeoutInMinutes

public Integer flowTimeoutInMinutes()

Get the flowTimeoutInMinutes property: The FlowTimeout value (in minutes) for the Virtual Network.

Returns:

the flowTimeoutInMinutes value.

fromJson

public static VirtualNetworkInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualNetworkInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Resource ID.

Overrides:

VirtualNetworkInner.id()

Returns:

the id value.

ipAllocations

public List ipAllocations()

Get the ipAllocations property: Array of IpAllocation which reference this VNET.

Returns:

the ipAllocations value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

VirtualNetworkInner.name()

Returns:

the name value.

privateEndpointVNetPolicies

public PrivateEndpointVNetPolicies privateEndpointVNetPolicies()

Get the privateEndpointVNetPolicies property: Private Endpoint VNet Policies.

Returns:

the privateEndpointVNetPolicies value.

provisioningState

public ProvisioningState provisioningState()

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

Returns:

the provisioningState value.

resourceGuid

public String resourceGuid()

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

Returns:

the resourceGuid value.

subnets

public List subnets()

Get the subnets property: A list of subnets in a Virtual Network.

Returns:

the subnets value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VirtualNetworkInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

VirtualNetworkInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

virtualNetworkPeerings

public List virtualNetworkPeerings()

Get the virtualNetworkPeerings property: A list of peerings in a Virtual Network.

Returns:

the virtualNetworkPeerings value.

withAddressSpace

public VirtualNetworkInner withAddressSpace(AddressSpace addressSpace)

Set the addressSpace property: The AddressSpace that contains an array of IP address ranges that can be used by subnets.

Parameters:

addressSpace - the addressSpace value to set.

Returns:

the VirtualNetworkInner object itself.

withBgpCommunities

public VirtualNetworkInner withBgpCommunities(VirtualNetworkBgpCommunities bgpCommunities)

Set the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.

Parameters:

bgpCommunities - the bgpCommunities value to set.

Returns:

the VirtualNetworkInner object itself.

withDdosProtectionPlan

public VirtualNetworkInner withDdosProtectionPlan(SubResource ddosProtectionPlan)

Set the ddosProtectionPlan property: The DDoS protection plan associated with the virtual network.

Parameters:

ddosProtectionPlan - the ddosProtectionPlan value to set.

Returns:

the VirtualNetworkInner object itself.

withDhcpOptions

public VirtualNetworkInner withDhcpOptions(DhcpOptions dhcpOptions)

Set the dhcpOptions property: The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.

Parameters:

dhcpOptions - the dhcpOptions value to set.

Returns:

the VirtualNetworkInner object itself.

withEnableDdosProtection

public VirtualNetworkInner withEnableDdosProtection(Boolean enableDdosProtection)

Set the enableDdosProtection property: Indicates if DDoS protection is enabled for all the protected resources in the virtual network. It requires a DDoS protection plan associated with the resource.

Parameters:

enableDdosProtection - the enableDdosProtection value to set.

Returns:

the VirtualNetworkInner object itself.

withEnableVmProtection

public VirtualNetworkInner withEnableVmProtection(Boolean enableVmProtection)

Set the enableVmProtection property: Indicates if VM protection is enabled for all the subnets in the virtual network.

Parameters:

enableVmProtection - the enableVmProtection value to set.

Returns:

the VirtualNetworkInner object itself.

withEncryption

public VirtualNetworkInner withEncryption(VirtualNetworkEncryption encryption)

Set the encryption property: Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.

Parameters:

encryption - the encryption value to set.

Returns:

the VirtualNetworkInner object itself.

withExtendedLocation

public VirtualNetworkInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the virtual network.

Parameters:

extendedLocation - the extendedLocation value to set.

Returns:

the VirtualNetworkInner object itself.

withFlowTimeoutInMinutes

public VirtualNetworkInner withFlowTimeoutInMinutes(Integer flowTimeoutInMinutes)

Set the flowTimeoutInMinutes property: The FlowTimeout value (in minutes) for the Virtual Network.

Parameters:

flowTimeoutInMinutes - the flowTimeoutInMinutes value to set.

Returns:

the VirtualNetworkInner object itself.

withId

public VirtualNetworkInner withId(String id)

Set the id property: Resource ID.

Parameters:

id - the id value to set.

Returns:

the VirtualNetworkInner object itself.

withIpAllocations

public VirtualNetworkInner withIpAllocations(List ipAllocations)

Set the ipAllocations property: Array of IpAllocation which reference this VNET.

Parameters:

ipAllocations - the ipAllocations value to set.

Returns:

the VirtualNetworkInner object itself.

withLocation

public VirtualNetworkInner withLocation(String location)

Overrides:

VirtualNetworkInner.withLocation(String location)

Parameters:

location

withPrivateEndpointVNetPolicies

public VirtualNetworkInner withPrivateEndpointVNetPolicies(PrivateEndpointVNetPolicies privateEndpointVNetPolicies)

Set the privateEndpointVNetPolicies property: Private Endpoint VNet Policies.

Parameters:

privateEndpointVNetPolicies - the privateEndpointVNetPolicies value to set.

Returns:

the VirtualNetworkInner object itself.

withSubnets

public VirtualNetworkInner withSubnets(List subnets)

Set the subnets property: A list of subnets in a Virtual Network.

Parameters:

subnets - the subnets value to set.

Returns:

the VirtualNetworkInner object itself.

withTags

public VirtualNetworkInner withTags(Map tags)

Overrides:

VirtualNetworkInner.withTags(Map<String,String> tags)

Parameters:

tags

withVirtualNetworkPeerings

public VirtualNetworkInner withVirtualNetworkPeerings(List virtualNetworkPeerings)

Set the virtualNetworkPeerings property: A list of peerings in a Virtual Network.

Parameters:

virtualNetworkPeerings - the virtualNetworkPeerings value to set.

Returns:

the VirtualNetworkInner object itself.

Applies to