Class PoolAssociationInner

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

public final class PoolAssociationInner extends Object implements com.azure.json.JsonSerializable<PoolAssociationInner>
IpamPool association information.
  • Constructor Details

    • PoolAssociationInner

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

    • resourceId

      public String resourceId()
      Get the resourceId property: Resource id of the associated Azure resource.
      Returns:
      the resourceId value.
    • withResourceId

      public PoolAssociationInner withResourceId(String resourceId)
      Set the resourceId property: Resource id of the associated Azure resource.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the PoolAssociationInner object itself.
    • poolId

      public String poolId()
      Get the poolId property: IpamPool id for which the resource is associated to.
      Returns:
      the poolId value.
    • withPoolId

      public PoolAssociationInner withPoolId(String poolId)
      Set the poolId property: IpamPool id for which the resource is associated to.
      Parameters:
      poolId - the poolId value to set.
      Returns:
      the PoolAssociationInner object itself.
    • description

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

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

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

      public List<String> reservedPrefixes()
      Get the reservedPrefixes property: List of reserved IP address prefixes in the IpamPool of the associated resource.
      Returns:
      the reservedPrefixes value.
    • totalNumberOfIpAddresses

      public String totalNumberOfIpAddresses()
      Get the totalNumberOfIpAddresses property: Total number of assigned IP addresses of the association.
      Returns:
      the totalNumberOfIpAddresses value.
    • numberOfReservedIpAddresses

      public String numberOfReservedIpAddresses()
      Get the numberOfReservedIpAddresses property: Total number of reserved IP addresses of the association.
      Returns:
      the numberOfReservedIpAddresses value.
    • createdAt

      public OffsetDateTime createdAt()
      Get the createdAt property: Creation time of the association.
      Returns:
      the createdAt value.
    • reservationExpiresAt

      public OffsetDateTime reservationExpiresAt()
      Get the reservationExpiresAt property: Expire time for IP addresses reserved.
      Returns:
      the reservationExpiresAt value.
    • 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<PoolAssociationInner>
      Throws:
      IOException
    • fromJson

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