Class AddressSpace
- java.lang.Object
-
- com.azure.resourcemanager.network.models.AddressSpace
-
public final class AddressSpace extends Object
AddressSpace contains an array of IP address ranges that can be used by subnets of the virtual network.
-
-
Constructor Summary
Constructors Constructor Description AddressSpace()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>addressPrefixes()Get the addressPrefixes property: A list of address blocks reserved for this virtual network in CIDR notation.voidvalidate()Validates the instance.AddressSpacewithAddressPrefixes(List<String> addressPrefixes)Set the addressPrefixes property: A list of address blocks reserved for this virtual network in CIDR notation.
-
-
-
Method Detail
-
addressPrefixes
public List<String> addressPrefixes()
Get the addressPrefixes property: A list of address blocks reserved for this virtual network in CIDR notation.- Returns:
- the addressPrefixes value.
-
withAddressPrefixes
public AddressSpace withAddressPrefixes(List<String> addressPrefixes)
Set the addressPrefixes property: A list of address blocks reserved for this virtual network in CIDR notation.- Parameters:
addressPrefixes- the addressPrefixes value to set.- Returns:
- the AddressSpace object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-