java.lang.Object
com.azure.resourcemanager.deviceprovisioningservices.fluent.models.NameAvailabilityInfoInner

public final class NameAvailabilityInfoInner extends Object
Description of name availability.
  • Constructor Details

    • NameAvailabilityInfoInner

      public NameAvailabilityInfoInner()
  • Method Details

    • nameAvailable

      public Boolean nameAvailable()
      Get the nameAvailable property: specifies if a name is available or not.
      Returns:
      the nameAvailable value.
    • withNameAvailable

      public NameAvailabilityInfoInner withNameAvailable(Boolean nameAvailable)
      Set the nameAvailable property: specifies if a name is available or not.
      Parameters:
      nameAvailable - the nameAvailable value to set.
      Returns:
      the NameAvailabilityInfoInner object itself.
    • reason

      public NameUnavailabilityReason reason()
      Get the reason property: specifies the reason a name is unavailable.
      Returns:
      the reason value.
    • withReason

      Set the reason property: specifies the reason a name is unavailable.
      Parameters:
      reason - the reason value to set.
      Returns:
      the NameAvailabilityInfoInner object itself.
    • message

      public String message()
      Get the message property: message containing a detailed reason name is unavailable.
      Returns:
      the message value.
    • withMessage

      public NameAvailabilityInfoInner withMessage(String message)
      Set the message property: message containing a detailed reason name is unavailable.
      Parameters:
      message - the message value to set.
      Returns:
      the NameAvailabilityInfoInner object itself.
    • validate

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