CheckNameAvailabilityRequest Class
- java.
lang. Object - com.
microsoft. azure. management. sql. CheckNameAvailabilityRequest
- com.
public class CheckNameAvailabilityRequest
A request to check whether the specified name for a resource is available.
Constructor Summary
Constructor | Description |
---|---|
CheckNameAvailabilityRequest() |
Creates an instance of CheckNameAvailabilityRequest class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
name()
Get the name whose availability is to be checked. |
String |
type()
Get the type of resource that is used as the scope of the availability check. |
Check |
withName(String name)
Set the name whose availability is to be checked. |
Check |
withType(String type)
Set the type of resource that is used as the scope of the availability check. |
Constructor Details
CheckNameAvailabilityRequest
public CheckNameAvailabilityRequest()
Creates an instance of CheckNameAvailabilityRequest class.
Method Details
name
public String name()
Get the name whose availability is to be checked.
Returns:
type
public String type()
Get the type of resource that is used as the scope of the availability check.
Returns:
withName
public CheckNameAvailabilityRequest withName(String name)
Set the name whose availability is to be checked.
Parameters:
Returns:
withType
public CheckNameAvailabilityRequest withType(String type)
Set the type of resource that is used as the scope of the availability check.
Parameters:
Returns:
Applies to
Azure SDK for Java