Class IpAddressAvailabilityResultInner
java.lang.Object
com.azure.resourcemanager.network.fluent.models.IpAddressAvailabilityResultInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<IpAddressAvailabilityResultInner>
public final class IpAddressAvailabilityResultInner
extends Object
implements com.azure.json.JsonSerializable<IpAddressAvailabilityResultInner>
Response for CheckIPAddressAvailability API service call.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of IpAddressAvailabilityResultInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the available property: Private IP address availability.Get the availableIpAddresses property: Contains other available private IP addresses if the asked for address is taken.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IpAddressAvailabilityResultInner from the JsonReader.Get the isPlatformReserved property: Private IP address platform reserved.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAvailable(Boolean available) Set the available property: Private IP address availability.withAvailableIpAddresses(List<String> availableIpAddresses) Set the availableIpAddresses property: Contains other available private IP addresses if the asked for address is taken.withIsPlatformReserved(Boolean isPlatformReserved) Set the isPlatformReserved property: Private IP address platform reserved.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
-
IpAddressAvailabilityResultInner
public IpAddressAvailabilityResultInner()Creates an instance of IpAddressAvailabilityResultInner class.
-
-
Method Details
-
available
Get the available property: Private IP address availability.- Returns:
- the available value.
-
withAvailable
Set the available property: Private IP address availability.- Parameters:
available- the available value to set.- Returns:
- the IpAddressAvailabilityResultInner object itself.
-
availableIpAddresses
Get the availableIpAddresses property: Contains other available private IP addresses if the asked for address is taken.- Returns:
- the availableIpAddresses value.
-
withAvailableIpAddresses
Set the availableIpAddresses property: Contains other available private IP addresses if the asked for address is taken.- Parameters:
availableIpAddresses- the availableIpAddresses value to set.- Returns:
- the IpAddressAvailabilityResultInner object itself.
-
isPlatformReserved
Get the isPlatformReserved property: Private IP address platform reserved.- Returns:
- the isPlatformReserved value.
-
withIsPlatformReserved
Set the isPlatformReserved property: Private IP address platform reserved.- Parameters:
isPlatformReserved- the isPlatformReserved value to set.- Returns:
- the IpAddressAvailabilityResultInner 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<IpAddressAvailabilityResultInner>- Throws:
IOException
-
fromJson
public static IpAddressAvailabilityResultInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of IpAddressAvailabilityResultInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of IpAddressAvailabilityResultInner 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 IpAddressAvailabilityResultInner.
-