Class CheckNameAvailability
java.lang.Object
com.azure.resourcemanager.relay.models.CheckNameAvailability
Description of the check name availability request properties.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CheckNameAvailability
public CheckNameAvailability()
-
-
Method Details
-
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
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.
-