Class CheckNameAvailability

java.lang.Object
com.azure.resourcemanager.relay.models.CheckNameAvailability

public final class CheckNameAvailability extends Object
Description of the check name availability request properties.
  • Constructor Details

    • CheckNameAvailability

      public CheckNameAvailability()
  • Method Details

    • name

      public String name()
      Get the name property: The namespace name to check for availability. The namespace name can contain only letters, numbers, and hyphens. The namespace must start with a letter, and it must end with a letter or number.
      Returns:
      the name value.
    • withName

      public CheckNameAvailability withName(String name)
      Set the name property: The namespace name to check for availability. The namespace name can contain only letters, numbers, and hyphens. The namespace must start with a letter, and it must end with a letter or number.
      Parameters:
      name - the name value to set.
      Returns:
      the CheckNameAvailability object itself.
    • validate

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