Class CheckNameAvailabilityOutput


  • public final class CheckNameAvailabilityOutput
    extends Object
    Output of check name availability API.
    • Constructor Detail

      • CheckNameAvailabilityOutput

        public CheckNameAvailabilityOutput()
    • Method Detail

      • isNameAvailable

        public Boolean isNameAvailable()
        Get the isNameAvailable property: A value indicating whether the name is available.
        Returns:
        the isNameAvailable value.
      • reason

        public UnavailableNameReason reason()
        Get the reason property: The reason why the name is not available. 'Invalid' indicates the name provided does not match the naming requirements (incorrect length, unsupported characters, etc.). 'AlreadyExists' indicates that the name is already in use and is therefore unavailable.
        Returns:
        the reason value.
      • message

        public String message()
        Get the message property: A message that explains why the name is invalid and provides resource naming requirements. Available only if 'Invalid' is returned in the 'reason' property.
        Returns:
        the message value.
      • validate

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