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 Details

    • IpamPoolPrefixAllocation

      public IpamPoolPrefixAllocation()
      Creates an instance of IpamPoolPrefixAllocation class.
  • Method Details

    • numberOfIpAddresses

      public String numberOfIpAddresses()
      Get the numberOfIpAddresses property: Number of IP addresses to allocate.
      Returns:
      the numberOfIpAddresses value.
    • 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.
    • allocatedAddressPrefixes

      public List<String> allocatedAddressPrefixes()
      Get the allocatedAddressPrefixes property: List of assigned IP address prefixes in the IpamPool of the associated resource.
      Returns:
      the allocatedAddressPrefixes value.
    • id

      public String id()
      Get the id property: Resource id of the associated Azure IpamPool resource.
      Returns:
      the id value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.