Class NameAvailabilityRequest
- java.lang.Object
-
- com.azure.resourcemanager.mysql.models.NameAvailabilityRequest
-
public final class NameAvailabilityRequest extends Object
Request from client to check resource name availability.
-
-
Constructor Summary
Constructors Constructor Description NameAvailabilityRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Get the name property: Resource name to verify.Stringtype()Get the type property: Resource type used for verification.voidvalidate()Validates the instance.NameAvailabilityRequestwithName(String name)Set the name property: Resource name to verify.NameAvailabilityRequestwithType(String type)Set the type property: Resource type used for verification.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Resource name to verify.- Returns:
- the name value.
-
withName
public NameAvailabilityRequest withName(String name)
Set the name property: Resource name to verify.- Parameters:
name- the name value to set.- Returns:
- the NameAvailabilityRequest object itself.
-
type
public String type()
Get the type property: Resource type used for verification.- Returns:
- the type value.
-
withType
public NameAvailabilityRequest withType(String type)
Set the type property: Resource type used for verification.- Parameters:
type- the type value to set.- Returns:
- the NameAvailabilityRequest object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-