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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the addressPrefixes property: List of assigned IP address prefixes in the IpamPool of the associated resource.Get the createdAt property: Creation time of the association.Get the description property: The description property.static PoolAssociationInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PoolAssociationInner from the JsonReader.Get the numberOfReservedIpAddresses property: Total number of reserved IP addresses of the association.poolId()Get the poolId property: IpamPool id for which the resource is associated to.Get the reservationExpiresAt property: Expire time for IP addresses reserved.Get the reservedPrefixes property: List of reserved IP address prefixes in the IpamPool of the associated resource.Get the resourceId property: Resource id of the associated Azure resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the totalNumberOfIpAddresses property: Total number of assigned IP addresses of the association.voidvalidate()Validates the instance.withDescription(String description) Set the description property: The description property.withPoolId(String poolId) Set the poolId property: IpamPool id for which the resource is associated to.withResourceId(String resourceId) Set the resourceId property: Resource id of the associated Azure resource.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
-
PoolAssociationInner
public PoolAssociationInner()Creates an instance of PoolAssociationInner class.
-
-
Method Details
-
resourceId
Get the resourceId property: Resource id of the associated Azure resource.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: Resource id of the associated Azure resource.- Parameters:
resourceId- the resourceId value to set.- Returns:
- the PoolAssociationInner object itself.
-
poolId
Get the poolId property: IpamPool id for which the resource is associated to.- Returns:
- the poolId value.
-
withPoolId
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
Get the description property: The description property.- Returns:
- the description value.
-
withDescription
Set the description property: The description property.- Parameters:
description- the description value to set.- Returns:
- the PoolAssociationInner object itself.
-
addressPrefixes
Get the addressPrefixes property: List of assigned IP address prefixes in the IpamPool of the associated resource.- Returns:
- the addressPrefixes value.
-
reservedPrefixes
Get the reservedPrefixes property: List of reserved IP address prefixes in the IpamPool of the associated resource.- Returns:
- the reservedPrefixes value.
-
totalNumberOfIpAddresses
Get the totalNumberOfIpAddresses property: Total number of assigned IP addresses of the association.- Returns:
- the totalNumberOfIpAddresses value.
-
numberOfReservedIpAddresses
Get the numberOfReservedIpAddresses property: Total number of reserved IP addresses of the association.- Returns:
- the numberOfReservedIpAddresses value.
-
createdAt
Get the createdAt property: Creation time of the association.- Returns:
- the createdAt value.
-
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
- Specified by:
toJsonin interfacecom.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.
-