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 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.static StaticCidrPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of StaticCidrProperties from the JsonReader.Get the numberOfIpAddressesToAllocate property: Number of IP addresses to allocate for a static CIDR resource.Get the provisioningState property: Provisioning states of a resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the totalNumberOfIpAddresses property: Total number of IP addresses allocated for the static CIDR resource.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.withNumberOfIpAddressesToAllocate(String numberOfIpAddressesToAllocate) Set the numberOfIpAddressesToAllocate property: Number of IP addresses to allocate for a static CIDR resource.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
-
StaticCidrProperties
public StaticCidrProperties()Creates an instance of StaticCidrProperties 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 StaticCidrProperties object itself.
-
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
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
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 StaticCidrProperties object itself.
-
totalNumberOfIpAddresses
Get the totalNumberOfIpAddresses property: Total number of IP addresses allocated for the static CIDR resource.- Returns:
- the totalNumberOfIpAddresses value.
-
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 StaticCidrProperties 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<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.
-