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.
  • Constructor Details

    • RegistryNameStatusInner

      public RegistryNameStatusInner()
      Creates an instance of RegistryNameStatusInner class.
  • Method Details

    • nameAvailable

      public Boolean nameAvailable()
      Get the nameAvailable property: The value that indicates whether the name is available.
      Returns:
      the nameAvailable value.
    • withNameAvailable

      public RegistryNameStatusInner withNameAvailable(Boolean nameAvailable)
      Set the nameAvailable property: The value that indicates whether the name is available.
      Parameters:
      nameAvailable - the nameAvailable value to set.
      Returns:
      the RegistryNameStatusInner object itself.
    • reason

      public String reason()
      Get the reason property: If any, the reason that the name is not available.
      Returns:
      the reason value.
    • withReason

      public RegistryNameStatusInner withReason(String reason)
      Set the reason property: If any, the reason that the name is not available.
      Parameters:
      reason - the reason value to set.
      Returns:
      the RegistryNameStatusInner object itself.
    • message

      public String 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.
    • withMessage

      public RegistryNameStatusInner withMessage(String message)
      Set the message property: If any, the error message that provides more detail for the reason that the name is not available.
      Parameters:
      message - the message value to set.
      Returns:
      the RegistryNameStatusInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.