NameAvailabilityRequest Class
- java.
lang. Object - com.
azure. resourcemanager. postgresql. models. NameAvailabilityRequest
- com.
Implements
public final class NameAvailabilityRequest
implements JsonSerializable<NameAvailabilityRequest>
Request from client to check resource name availability.
Constructor Summary
| Constructor | Description |
|---|---|
| NameAvailabilityRequest() |
Creates an instance of Name |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Name |
fromJson(JsonReader jsonReader)
Reads an instance of Name |
| String |
name()
Get the name property: Resource name to verify. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Resource type used for verification. |
| void |
validate()
Validates the instance. |
|
Name |
withName(String name)
Set the name property: Resource name to verify. |
|
Name |
withType(String type)
Set the type property: Resource type used for verification. |
Methods inherited from java.lang.Object
Constructor Details
NameAvailabilityRequest
public NameAvailabilityRequest()
Creates an instance of NameAvailabilityRequest class.
Method Details
fromJson
public static NameAvailabilityRequest fromJson(JsonReader jsonReader)
Reads an instance of NameAvailabilityRequest from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Resource name to verify.
Returns:
toJson
type
public String type()
Get the type property: Resource type used for verification.
Returns:
validate
public void validate()
Validates the instance.
withName
public NameAvailabilityRequest withName(String name)
Set the name property: Resource name to verify.
Parameters:
Returns:
withType
public NameAvailabilityRequest withType(String type)
Set the type property: Resource type used for verification.
Parameters:
Returns: