Partager via


AddressSpace Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.AddressSpace

Implements

public final class AddressSpace
implements JsonSerializable<AddressSpace>

AddressSpace contains an array of IP address ranges that can be used by subnets of the virtual network.

Constructor Summary

Constructor Description
AddressSpace()

Creates an instance of AddressSpace class.

Method Summary

Modifier and Type Method and Description
List<String> addressPrefixes()

Get the addressPrefixes property: A list of address blocks reserved for this virtual network in CIDR notation.

static AddressSpace fromJson(JsonReader jsonReader)

Reads an instance of AddressSpace from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AddressSpace withAddressPrefixes(List<String> addressPrefixes)

Set the addressPrefixes property: A list of address blocks reserved for this virtual network in CIDR notation.

Methods inherited from java.lang.Object

Constructor Details

AddressSpace

public AddressSpace()

Creates an instance of AddressSpace class.

Method Details

addressPrefixes

public List addressPrefixes()

Get the addressPrefixes property: A list of address blocks reserved for this virtual network in CIDR notation.

Returns:

the addressPrefixes value.

fromJson

public static AddressSpace fromJson(JsonReader jsonReader)

Reads an instance of AddressSpace from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAddressPrefixes

public AddressSpace withAddressPrefixes(List 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.

Applies to