java.lang.Object
com.azure.resourcemanager.mysqlflexibleserver.fluent.models.NameAvailabilityInner

public final class NameAvailabilityInner extends Object
Represents a resource name availability.
  • Constructor Details

    • NameAvailabilityInner

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

    • message

      public String message()
      Get the message property: Error Message.
      Returns:
      the message value.
    • withMessage

      public NameAvailabilityInner withMessage(String message)
      Set the message property: Error Message.
      Parameters:
      message - the message value to set.
      Returns:
      the NameAvailabilityInner object itself.
    • nameAvailable

      public Boolean nameAvailable()
      Get the nameAvailable property: Indicates whether the resource name is available.
      Returns:
      the nameAvailable value.
    • withNameAvailable

      public NameAvailabilityInner withNameAvailable(Boolean nameAvailable)
      Set the nameAvailable property: Indicates whether the resource name is available.
      Parameters:
      nameAvailable - the nameAvailable value to set.
      Returns:
      the NameAvailabilityInner object itself.
    • reason

      public String reason()
      Get the reason property: Reason for name being unavailable.
      Returns:
      the reason value.
    • withReason

      public NameAvailabilityInner withReason(String reason)
      Set the reason property: Reason for name being unavailable.
      Parameters:
      reason - the reason value to set.
      Returns:
      the NameAvailabilityInner object itself.
    • validate

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