Class CheckNameAvailabilityRequest
- java.lang.Object
-
- com.azure.resourcemanager.sql.models.CheckNameAvailabilityRequest
-
public final class CheckNameAvailabilityRequest extends Object
A request to check whether the specified name for a resource is available.
-
-
Constructor Summary
Constructors Constructor Description CheckNameAvailabilityRequest()Creates an instance of CheckNameAvailabilityRequest class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Get the name property: The name property.Stringtype()Get the type property: The type property.voidvalidate()Validates the instance.CheckNameAvailabilityRequestwithName(String name)Set the name property: The name property.CheckNameAvailabilityRequestwithType(String type)Set the type property: The type property.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The name property.- Returns:
- the name value.
-
withName
public CheckNameAvailabilityRequest withName(String name)
Set the name property: The name property.- Parameters:
name- the name value to set.- Returns:
- the CheckNameAvailabilityRequest object itself.
-
type
public String type()
Get the type property: The type property.- Returns:
- the type value.
-
withType
public CheckNameAvailabilityRequest withType(String type)
Set the type property: The type property.- Parameters:
type- the type value to set.- Returns:
- the CheckNameAvailabilityRequest object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-