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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the addressPrefixes property: List of IP address prefixes of the resource.Get the description property: The description property.Get the displayName property: String representing a friendly name for the resource.static IpamPoolPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IpamPoolProperties from the JsonReader.Get the ipAddressType property: List of IP address type for the IpamPool.Get the parentPoolName property: String representing parent IpamPool resource name.Get the provisioningState property: Provisioning states of a resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAddressPrefixes(List<String> addressPrefixes) Set the addressPrefixes property: List of IP address prefixes of the resource.withDescription(String description) Set the description property: The description property.withDisplayName(String displayName) Set the displayName property: String representing a friendly name for the resource.withParentPoolName(String parentPoolName) Set the parentPoolName property: String representing parent IpamPool resource name.withProvisioningState(ProvisioningState provisioningState) Set the provisioningState property: Provisioning states of a 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
-
IpamPoolProperties
public IpamPoolProperties()Creates an instance of IpamPoolProperties class.
-
-
Method Details
-
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 IpamPoolProperties object itself.
-
displayName
Get the displayName property: String representing a friendly name for the resource.- Returns:
- the displayName value.
-
withDisplayName
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
Get the ipAddressType property: List of IP address type for the IpamPool.- Returns:
- the ipAddressType value.
-
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
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
Get the addressPrefixes property: List of IP address prefixes of the resource.- Returns:
- the addressPrefixes value.
-
withAddressPrefixes
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
Get the provisioningState property: Provisioning states of a resource.- Returns:
- the provisioningState value.
-
withProvisioningState
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<IpamPoolProperties>- Throws:
IOException
-
fromJson
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.
-