Class CheckNameAvailabilityResultInner

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

public final class CheckNameAvailabilityResultInner extends Object
The response payload for CheckNameAvailability API.
  • Constructor Details

    • CheckNameAvailabilityResultInner

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

    • message

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

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

      public Boolean nameAvailable()
      Get the nameAvailable property: Indicates if name is valid and available.
      Returns:
      the nameAvailable value.
    • withNameAvailable

      public CheckNameAvailabilityResultInner withNameAvailable(Boolean nameAvailable)
      Set the nameAvailable property: Indicates if name is valid and available.
      Parameters:
      nameAvailable - the nameAvailable value to set.
      Returns:
      the CheckNameAvailabilityResultInner object itself.
    • reason

      public Reason reason()
      Get the reason property: The reason the name is not available.
      Returns:
      the reason value.
    • withReason

      public CheckNameAvailabilityResultInner withReason(Reason reason)
      Set the reason property: The reason the name is not available.
      Parameters:
      reason - the reason value to set.
      Returns:
      the CheckNameAvailabilityResultInner object itself.
    • validate

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