Class CheckNameAvailabilityResponseInner
java.lang.Object
com.azure.resourcemanager.appcontainers.fluent.models.CheckNameAvailabilityResponseInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CheckNameAvailabilityResponseInner>
public final class CheckNameAvailabilityResponseInner
extends Object
implements com.azure.json.JsonSerializable<CheckNameAvailabilityResponseInner>
The check availability result.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CheckNameAvailabilityResponseInner class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CheckNameAvailabilityResponseInner from the JsonReader.message()
Get the message property: Detailed reason why the given name is available.Get the nameAvailable property: Indicates if the resource name is available.reason()
Get the reason property: The reason why the given name is not available.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withMessage
(String message) Set the message property: Detailed reason why the given name is available.withNameAvailable
(Boolean nameAvailable) Set the nameAvailable property: Indicates if the resource name is available.Set the reason property: The reason why the given name is not available.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
-
CheckNameAvailabilityResponseInner
public CheckNameAvailabilityResponseInner()Creates an instance of CheckNameAvailabilityResponseInner class.
-
-
Method Details
-
nameAvailable
Get the nameAvailable property: Indicates if the resource name is available.- Returns:
- the nameAvailable value.
-
withNameAvailable
Set the nameAvailable property: Indicates if the resource name is available.- Parameters:
nameAvailable
- the nameAvailable value to set.- Returns:
- the CheckNameAvailabilityResponseInner object itself.
-
reason
Get the reason property: The reason why the given name is not available.- Returns:
- the reason value.
-
withReason
Set the reason property: The reason why the given name is not available.- Parameters:
reason
- the reason value to set.- Returns:
- the CheckNameAvailabilityResponseInner object itself.
-
message
Get the message property: Detailed reason why the given name is available.- Returns:
- the message value.
-
withMessage
Set the message property: Detailed reason why the given name is available.- Parameters:
message
- the message value to set.- Returns:
- the CheckNameAvailabilityResponseInner 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<CheckNameAvailabilityResponseInner>
- Throws:
IOException
-
fromJson
public static CheckNameAvailabilityResponseInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CheckNameAvailabilityResponseInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CheckNameAvailabilityResponseInner 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 CheckNameAvailabilityResponseInner.
-