Class CheckAvailabilityResponseInner
java.lang.Object
com.azure.resourcemanager.netapp.fluent.models.CheckAvailabilityResponseInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CheckAvailabilityResponseInner>
public final class CheckAvailabilityResponseInner
extends Object
implements com.azure.json.JsonSerializable<CheckAvailabilityResponseInner>
Information regarding availability of a resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CheckAvailabilityResponseInner class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CheckAvailabilityResponseInner from the JsonReader.Get the isAvailable property: <code>true</code> indicates name is valid and available.message()
Get the message property: If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name.reason()
Get the reason property: <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withIsAvailable
(Boolean isAvailable) Set the isAvailable property: <code>true</code> indicates name is valid and available.withMessage
(String message) Set the message property: If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name.withReason
(InAvailabilityReasonType reason) Set the reason property: <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CheckAvailabilityResponseInner
public CheckAvailabilityResponseInner()Creates an instance of CheckAvailabilityResponseInner class.
-
-
Method Details
-
isAvailable
Get the isAvailable property: <code>true</code> indicates name is valid and available. <code>false</code> indicates the name is invalid, unavailable, or both.- Returns:
- the isAvailable value.
-
withIsAvailable
Set the isAvailable property: <code>true</code> indicates name is valid and available. <code>false</code> indicates the name is invalid, unavailable, or both.- Parameters:
isAvailable
- the isAvailable value to set.- Returns:
- the CheckAvailabilityResponseInner object itself.
-
reason
Get the reason property: <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable.- Returns:
- the reason value.
-
withReason
Set the reason property: <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable.- Parameters:
reason
- the reason value to set.- Returns:
- the CheckAvailabilityResponseInner object itself.
-
message
Get the message property: If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name.- Returns:
- the message value.
-
withMessage
Set the message property: If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name.- Parameters:
message
- the message value to set.- Returns:
- the CheckAvailabilityResponseInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<CheckAvailabilityResponseInner>
- Throws:
IOException
-
fromJson
public static CheckAvailabilityResponseInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CheckAvailabilityResponseInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CheckAvailabilityResponseInner 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 CheckAvailabilityResponseInner.
-