Class IpamPoolProperties

java.lang.Object
com.azure.resourcemanager.network.models.IpamPoolProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<IpamPoolProperties>

public final class IpamPoolProperties extends Object implements com.azure.json.JsonSerializable<IpamPoolProperties>
Properties of IpamPool resource properties which are specific to the Pool resource.
  • Constructor Details

    • IpamPoolProperties

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

    • description

      public String description()
      Get the description property: The description property.
      Returns:
      the description value.
    • withDescription

      public IpamPoolProperties withDescription(String description)
      Set the description property: The description property.
      Parameters:
      description - the description value to set.
      Returns:
      the IpamPoolProperties object itself.
    • displayName

      public String displayName()
      Get the displayName property: String representing a friendly name for the resource.
      Returns:
      the displayName value.
    • withDisplayName

      public IpamPoolProperties withDisplayName(String displayName)
      Set the displayName property: String representing a friendly name for the resource.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the IpamPoolProperties object itself.
    • ipAddressType

      public List<IpType> ipAddressType()
      Get the ipAddressType property: List of IP address type for the IpamPool.
      Returns:
      the ipAddressType value.
    • parentPoolName

      public String parentPoolName()
      Get the parentPoolName property: String representing parent IpamPool resource name. If empty the IpamPool will be a root pool.
      Returns:
      the parentPoolName value.
    • withParentPoolName

      public IpamPoolProperties withParentPoolName(String parentPoolName)
      Set the parentPoolName property: String representing parent IpamPool resource name. If empty the IpamPool will be a root pool.
      Parameters:
      parentPoolName - the parentPoolName value to set.
      Returns:
      the IpamPoolProperties object itself.
    • addressPrefixes

      public List<String> addressPrefixes()
      Get the addressPrefixes property: List of IP address prefixes of the resource.
      Returns:
      the addressPrefixes value.
    • withAddressPrefixes

      public IpamPoolProperties withAddressPrefixes(List<String> addressPrefixes)
      Set the addressPrefixes property: List of IP address prefixes of the resource.
      Parameters:
      addressPrefixes - the addressPrefixes value to set.
      Returns:
      the IpamPoolProperties object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: Provisioning states of a resource.
      Returns:
      the provisioningState value.
    • withProvisioningState

      public IpamPoolProperties withProvisioningState(ProvisioningState provisioningState)
      Set the provisioningState property: Provisioning states of a resource.
      Parameters:
      provisioningState - the provisioningState value to set.
      Returns:
      the IpamPoolProperties 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<IpamPoolProperties>
      Throws:
      IOException
    • fromJson

      public static IpamPoolProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of IpamPoolProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of IpamPoolProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the IpamPoolProperties.