CheckNameAvailabilityRequest Class

  • java.lang.Object
    • com.microsoft.azure.management.sql.CheckNameAvailabilityRequest

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
java.lang.String name()

Get the name whose availability is to be checked.

java.lang.String type()

Get the type of resource that is used as the scope of the availability check.

CheckNameAvailabilityRequest withName(String name)

Set the name whose availability is to be checked.

CheckNameAvailabilityRequest withType(String type)

Set the type of resource that is used as the scope of the availability check.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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:

the name value

type

public String type()

Get the type of resource that is used as the scope of the availability check.

Returns:

the type value

withName

public CheckNameAvailabilityRequest withName(String name)

Set the name whose availability is to be checked.

Parameters:

name - the name value to set

Returns:

the CheckNameAvailabilityRequest object itself.

withType

public CheckNameAvailabilityRequest withType(String type)

Set the type of resource that is used as the scope of the availability check.

Parameters:

type - the type value to set

Returns:

the CheckNameAvailabilityRequest object itself.

Applies to