Partilhar via


IpamPoolPrefixAllocation Class

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

Implements

public final class IpamPoolPrefixAllocation
implements JsonSerializable<IpamPoolPrefixAllocation>

IpamPool prefix allocation reference.

Constructor Summary

Constructor Description
IpamPoolPrefixAllocation()

Creates an instance of IpamPoolPrefixAllocation class.

Method Summary

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

Get the allocatedAddressPrefixes property: List of assigned IP address prefixes in the IpamPool of the associated resource.

static IpamPoolPrefixAllocation fromJson(JsonReader jsonReader)

Reads an instance of IpamPoolPrefixAllocation from the JsonReader.

String id()

Get the id property: Resource id of the associated Azure IpamPool resource.

String numberOfIpAddresses()

Get the numberOfIpAddresses property: Number of IP addresses to allocate.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

IpamPoolPrefixAllocation withId(String id)

Set the id property: Resource id of the associated Azure IpamPool resource.

IpamPoolPrefixAllocation withNumberOfIpAddresses(String numberOfIpAddresses)

Set the numberOfIpAddresses property: Number of IP addresses to allocate.

Methods inherited from java.lang.Object

Constructor Details

IpamPoolPrefixAllocation

public IpamPoolPrefixAllocation()

Creates an instance of IpamPoolPrefixAllocation class.

Method Details

allocatedAddressPrefixes

public List allocatedAddressPrefixes()

Get the allocatedAddressPrefixes property: List of assigned IP address prefixes in the IpamPool of the associated resource.

Returns:

the allocatedAddressPrefixes value.

fromJson

public static IpamPoolPrefixAllocation fromJson(JsonReader jsonReader)

Reads an instance of IpamPoolPrefixAllocation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Resource id of the associated Azure IpamPool resource.

Returns:

the id value.

numberOfIpAddresses

public String numberOfIpAddresses()

Get the numberOfIpAddresses property: Number of IP addresses to allocate.

Returns:

the numberOfIpAddresses value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public IpamPoolPrefixAllocation withId(String id)

Set the id property: Resource id of the associated Azure IpamPool resource.

Parameters:

id - the id value to set.

Returns:

the IpamPoolPrefixAllocation object itself.

withNumberOfIpAddresses

public IpamPoolPrefixAllocation withNumberOfIpAddresses(String numberOfIpAddresses)

Set the numberOfIpAddresses property: Number of IP addresses to allocate.

Parameters:

numberOfIpAddresses - the numberOfIpAddresses value to set.

Returns:

the IpamPoolPrefixAllocation object itself.

Applies to