Class NameAvailabilityResponseInner

java.lang.Object
com.azure.resourcemanager.datamigration.fluent.models.NameAvailabilityResponseInner

public final class NameAvailabilityResponseInner extends Object
Indicates whether a proposed resource name is available.
  • Constructor Details

    • NameAvailabilityResponseInner

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

    • nameAvailable

      public Boolean nameAvailable()
      Get the nameAvailable property: If true, the name is valid and available. If false, 'reason' describes why not.
      Returns:
      the nameAvailable value.
    • reason

      public NameCheckFailureReason reason()
      Get the reason property: The reason why the name is not available, if nameAvailable is false.
      Returns:
      the reason value.
    • message

      public String message()
      Get the message property: The localized reason why the name is not available, if nameAvailable is false.
      Returns:
      the message value.
    • validate

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