共用方式為


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.

List<IpamPoolPrefixAllocation> ipamPoolPrefixAllocations()

Get the ipamPoolPrefixAllocations property: A list of IPAM Pools allocating IP address prefixes.

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.

AddressSpace withIpamPoolPrefixAllocations(List<IpamPoolPrefixAllocation> ipamPoolPrefixAllocations)

Set the ipamPoolPrefixAllocations property: A list of IPAM Pools allocating IP address prefixes.

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.

ipamPoolPrefixAllocations

public List ipamPoolPrefixAllocations()

Get the ipamPoolPrefixAllocations property: A list of IPAM Pools allocating IP address prefixes.

Returns:

the ipamPoolPrefixAllocations value.

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.

withIpamPoolPrefixAllocations

public AddressSpace withIpamPoolPrefixAllocations(List ipamPoolPrefixAllocations)

Set the ipamPoolPrefixAllocations property: A list of IPAM Pools allocating IP address prefixes.

Parameters:

ipamPoolPrefixAllocations - the ipamPoolPrefixAllocations value to set.

Returns:

the AddressSpace object itself.

Applies to