Class RegistryNameStatusInner
java.lang.Object
com.azure.resourcemanager.containerregistry.fluent.models.RegistryNameStatusInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RegistryNameStatusInner>
public final class RegistryNameStatusInner
extends Object
implements com.azure.json.JsonSerializable<RegistryNameStatusInner>
The result of a request to check the availability of a container registry name.
-
Method Summary
Modifier and TypeMethodDescriptionstatic RegistryNameStatusInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RegistryNameStatusInner from the JsonReader.message()Get the message property: If any, the error message that provides more detail for the reason that the name is not available.Get the nameAvailable property: The value that indicates whether the name is available.reason()Get the reason property: If any, the reason that the name is not available.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
nameAvailable
Get the nameAvailable property: The value that indicates whether the name is available.- Returns:
- the nameAvailable value.
-
reason
Get the reason property: If any, the reason that the name is not available.- Returns:
- the reason value.
-
message
Get the message property: If any, the error message that provides more detail for the reason that the name is not available.- Returns:
- the message value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RegistryNameStatusInner>- Throws:
IOException
-
fromJson
public static RegistryNameStatusInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RegistryNameStatusInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RegistryNameStatusInner 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 RegistryNameStatusInner.
-