Class VirtualNetworkInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.network.fluent.models.VirtualNetworkInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class VirtualNetworkInner
extends com.azure.core.management.Resource
Virtual Network resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the addressSpace property: The AddressSpace that contains an array of IP address ranges that can be used by subnets.Get the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.com.azure.core.management.SubResourceGet the ddosProtectionPlan property: The DDoS protection plan associated with the virtual network.Get the dhcpOptions property: The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.Get the enableDdosProtection property: Indicates if DDoS protection is enabled for all the protected resources in the virtual network.Get the enableVmProtection property: Indicates if VM protection is enabled for all the subnets in the virtual network.Get the encryption property: Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.Get the extendedLocation property: The extended location of the virtual network.flowLogs()Get the flowLogs property: A collection of references to flow log resources.Get the flowTimeoutInMinutes property: The FlowTimeout value (in minutes) for the Virtual Network.static VirtualNetworkInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualNetworkInner from the JsonReader.id()Get the id property: Resource ID.List<com.azure.core.management.SubResource> Get the ipAllocations property: Array of IpAllocation which reference this VNET.name()Get the name property: The name of the resource.Get the privateEndpointVNetPolicies property: Private Endpoint VNet Policies.Get the provisioningState property: The provisioning state of the virtual network resource.Get the resourceGuid property: The resourceGuid property of the Virtual Network resource.subnets()Get the subnets property: A list of subnets in a Virtual Network.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.Get the virtualNetworkPeerings property: A list of peerings in a Virtual Network.withAddressSpace(AddressSpace addressSpace) Set the addressSpace property: The AddressSpace that contains an array of IP address ranges that can be used by subnets.withBgpCommunities(VirtualNetworkBgpCommunities bgpCommunities) Set the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.withDdosProtectionPlan(com.azure.core.management.SubResource ddosProtectionPlan) Set the ddosProtectionPlan property: The DDoS protection plan associated with the virtual network.withDhcpOptions(DhcpOptions dhcpOptions) Set the dhcpOptions property: The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.withEnableDdosProtection(Boolean enableDdosProtection) Set the enableDdosProtection property: Indicates if DDoS protection is enabled for all the protected resources in the virtual network.withEnableVmProtection(Boolean enableVmProtection) Set the enableVmProtection property: Indicates if VM protection is enabled for all the subnets in the virtual network.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.withExtendedLocation(ExtendedLocation extendedLocation) Set the extendedLocation property: The extended location of the virtual network.withFlowTimeoutInMinutes(Integer flowTimeoutInMinutes) Set the flowTimeoutInMinutes property: The FlowTimeout value (in minutes) for the Virtual Network.Set the id property: Resource ID.withIpAllocations(List<com.azure.core.management.SubResource> ipAllocations) Set the ipAllocations property: Array of IpAllocation which reference this VNET.withLocation(String location) withPrivateEndpointVNetPolicies(PrivateEndpointVNetPolicies privateEndpointVNetPolicies) Set the privateEndpointVNetPolicies property: Private Endpoint VNet Policies.withSubnets(List<SubnetInner> subnets) Set the subnets property: A list of subnets in a Virtual Network.withVirtualNetworkPeerings(List<VirtualNetworkPeeringInner> virtualNetworkPeerings) Set the virtualNetworkPeerings property: A list of peerings in a Virtual Network.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VirtualNetworkInner
public VirtualNetworkInner()Creates an instance of VirtualNetworkInner class.
-
-
Method Details
-
extendedLocation
Get the extendedLocation property: The extended location of the virtual network.- Returns:
- the extendedLocation value.
-
withExtendedLocation
Set the extendedLocation property: The extended location of the virtual network.- Parameters:
extendedLocation- the extendedLocation value to set.- Returns:
- the VirtualNetworkInner object itself.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
id
Get the id property: Resource ID.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withId
Set the id property: Resource ID.- Parameters:
id- the id value to set.- Returns:
- the VirtualNetworkInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
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.
-
withAddressSpace
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.
-
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.
-
withDhcpOptions
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.
-
flowTimeoutInMinutes
Get the flowTimeoutInMinutes property: The FlowTimeout value (in minutes) for the Virtual Network.- Returns:
- the flowTimeoutInMinutes value.
-
withFlowTimeoutInMinutes
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.
-
subnets
Get the subnets property: A list of subnets in a Virtual Network.- Returns:
- the subnets value.
-
withSubnets
Set the subnets property: A list of subnets in a Virtual Network.- Parameters:
subnets- the subnets value to set.- Returns:
- the VirtualNetworkInner object itself.
-
virtualNetworkPeerings
Get the virtualNetworkPeerings property: A list of peerings in a Virtual Network.- Returns:
- the virtualNetworkPeerings value.
-
withVirtualNetworkPeerings
public VirtualNetworkInner withVirtualNetworkPeerings(List<VirtualNetworkPeeringInner> 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.
-
resourceGuid
Get the resourceGuid property: The resourceGuid property of the Virtual Network resource.- Returns:
- the resourceGuid value.
-
provisioningState
Get the provisioningState property: The provisioning state of the virtual network resource.- Returns:
- the provisioningState value.
-
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.
-
withEnableDdosProtection
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.
-
enableVmProtection
Get the enableVmProtection property: Indicates if VM protection is enabled for all the subnets in the virtual network.- Returns:
- the enableVmProtection value.
-
withEnableVmProtection
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.
-
ddosProtectionPlan
public com.azure.core.management.SubResource ddosProtectionPlan()Get the ddosProtectionPlan property: The DDoS protection plan associated with the virtual network.- Returns:
- the ddosProtectionPlan value.
-
withDdosProtectionPlan
public VirtualNetworkInner withDdosProtectionPlan(com.azure.core.management.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.
-
bgpCommunities
Get the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.- Returns:
- the bgpCommunities value.
-
withBgpCommunities
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.
-
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.
-
withEncryption
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.
-
ipAllocations
Get the ipAllocations property: Array of IpAllocation which reference this VNET.- Returns:
- the ipAllocations value.
-
withIpAllocations
public VirtualNetworkInner withIpAllocations(List<com.azure.core.management.SubResource> ipAllocations) Set the ipAllocations property: Array of IpAllocation which reference this VNET.- Parameters:
ipAllocations- the ipAllocations value to set.- Returns:
- the VirtualNetworkInner object itself.
-
flowLogs
Get the flowLogs property: A collection of references to flow log resources.- Returns:
- the flowLogs value.
-
privateEndpointVNetPolicies
Get the privateEndpointVNetPolicies property: Private Endpoint VNet Policies.- Returns:
- the privateEndpointVNetPolicies value.
-
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the VirtualNetworkInner.
-