Class NameAvailabilityRequest
java.lang.Object
com.azure.resourcemanager.mariadb.models.NameAvailabilityRequest
Request from client to check resource name availability.
-
Constructor Summary
ConstructorDescriptionCreates an instance of NameAvailabilityRequest class. -
Method Summary
Modifier and TypeMethodDescriptionname()
Get the name property: Resource name to verify.type()
Get the type property: Resource type used for verification.void
validate()
Validates the instance.Set the name property: Resource name to verify.Set the type property: Resource type used for verification.
-
Constructor Details
-
NameAvailabilityRequest
public NameAvailabilityRequest()Creates an instance of NameAvailabilityRequest class.
-
-
Method Details
-
name
Get the name property: Resource name to verify.- Returns:
- the name value.
-
withName
Set the name property: Resource name to verify.- Parameters:
name
- the name value to set.- Returns:
- the NameAvailabilityRequest object itself.
-
type
Get the type property: Resource type used for verification.- Returns:
- the type value.
-
withType
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.
-