Class IpamPoolPrefixAllocation
java.lang.Object
com.azure.resourcemanager.network.models.IpamPoolPrefixAllocation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<IpamPoolPrefixAllocation>
public final class IpamPoolPrefixAllocation
extends Object
implements com.azure.json.JsonSerializable<IpamPoolPrefixAllocation>
IpamPool prefix allocation reference.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of IpamPoolPrefixAllocation class. -
Method Summary
Modifier and TypeMethodDescriptionGet the allocatedAddressPrefixes property: List of assigned IP address prefixes in the IpamPool of the associated resource.static IpamPoolPrefixAllocationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IpamPoolPrefixAllocation from the JsonReader.id()Get the id property: Resource id of the associated Azure IpamPool resource.Get the numberOfIpAddresses property: Number of IP addresses to allocate.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the id property: Resource id of the associated Azure IpamPool resource.withNumberOfIpAddresses(String numberOfIpAddresses) Set the numberOfIpAddresses property: Number of IP addresses to allocate.Methods 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
-
IpamPoolPrefixAllocation
public IpamPoolPrefixAllocation()Creates an instance of IpamPoolPrefixAllocation class.
-
-
Method Details
-
numberOfIpAddresses
Get the numberOfIpAddresses property: Number of IP addresses to allocate.- Returns:
- the numberOfIpAddresses value.
-
withNumberOfIpAddresses
Set the numberOfIpAddresses property: Number of IP addresses to allocate.- Parameters:
numberOfIpAddresses- the numberOfIpAddresses value to set.- Returns:
- the IpamPoolPrefixAllocation object itself.
-
allocatedAddressPrefixes
Get the allocatedAddressPrefixes property: List of assigned IP address prefixes in the IpamPool of the associated resource.- Returns:
- the allocatedAddressPrefixes value.
-
id
Get the id property: Resource id of the associated Azure IpamPool resource.- Returns:
- the id value.
-
withId
Set the id property: Resource id of the associated Azure IpamPool resource.- Parameters:
id- the id value to set.- Returns:
- the IpamPoolPrefixAllocation 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<IpamPoolPrefixAllocation>- Throws:
IOException
-
fromJson
public static IpamPoolPrefixAllocation fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-