Class CheckNameAvailabilityResultInner

java.lang.Object
com.azure.resourcemanager.recoveryservices.fluent.models.CheckNameAvailabilityResultInner

public final class CheckNameAvailabilityResultInner extends Object
Response for check name availability API. Resource provider will set availability as true | false.
  • Constructor Details

    • CheckNameAvailabilityResultInner

      public CheckNameAvailabilityResultInner()
  • Method Details

    • nameAvailable

      public Boolean nameAvailable()
      Get the nameAvailable property: The nameAvailable property.
      Returns:
      the nameAvailable value.
    • withNameAvailable

      public CheckNameAvailabilityResultInner withNameAvailable(Boolean nameAvailable)
      Set the nameAvailable property: The nameAvailable property.
      Parameters:
      nameAvailable - the nameAvailable value to set.
      Returns:
      the CheckNameAvailabilityResultInner object itself.
    • reason

      public String reason()
      Get the reason property: The reason property.
      Returns:
      the reason value.
    • withReason

      public CheckNameAvailabilityResultInner withReason(String reason)
      Set the reason property: The reason property.
      Parameters:
      reason - the reason value to set.
      Returns:
      the CheckNameAvailabilityResultInner object itself.
    • message

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

      public CheckNameAvailabilityResultInner withMessage(String message)
      Set the message property: The message property.
      Parameters:
      message - the message value to set.
      Returns:
      the CheckNameAvailabilityResultInner object itself.
    • validate

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