Class CheckNameAvailability
- java.lang.Object
-
- com.azure.resourcemanager.servicebus.models.CheckNameAvailability
-
public final class CheckNameAvailability extends Object
Description of a Check Name availability request properties.
-
-
Constructor Summary
Constructors Constructor Description CheckNameAvailability()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Get the name property: The Name to check the namespace name availability and The namespace name can contain only letters, numbers, and hyphens.voidvalidate()Validates the instance.CheckNameAvailabilitywithName(String name)Set the name property: The Name to check the namespace name availability and The namespace name can contain only letters, numbers, and hyphens.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The Name to check the namespace name availability and 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 Name to check the namespace name availability and 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.
-
-