Class StaticCidrProperties

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

public final class StaticCidrProperties extends Object implements com.azure.json.JsonSerializable<StaticCidrProperties>
Properties of static CIDR resource.
  • Constructor Details

    • StaticCidrProperties

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

    • description

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

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

      public String numberOfIpAddressesToAllocate()
      Get the numberOfIpAddressesToAllocate property: Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
      Returns:
      the numberOfIpAddressesToAllocate value.
    • withNumberOfIpAddressesToAllocate

      public StaticCidrProperties withNumberOfIpAddressesToAllocate(String numberOfIpAddressesToAllocate)
      Set the numberOfIpAddressesToAllocate property: Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
      Parameters:
      numberOfIpAddressesToAllocate - the numberOfIpAddressesToAllocate value to set.
      Returns:
      the StaticCidrProperties 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 StaticCidrProperties 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 StaticCidrProperties object itself.
    • totalNumberOfIpAddresses

      public String totalNumberOfIpAddresses()
      Get the totalNumberOfIpAddresses property: Total number of IP addresses allocated for the static CIDR resource.
      Returns:
      the totalNumberOfIpAddresses value.
    • provisioningState

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

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

      public static StaticCidrProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of StaticCidrProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of StaticCidrProperties 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 StaticCidrProperties.