NameAvailabilityRequest Class
- java.
lang. Object - com.
azure. resourcemanager. datamigration. models. NameAvailabilityRequest
- com.
Implements
public final class NameAvailabilityRequest
implements JsonSerializable<NameAvailabilityRequest>
A resource type and proposed name.
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: The proposed resource name. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The resource type chain (e. |
| void |
validate()
Validates the instance. |
|
Name |
withName(String name)
Set the name property: The proposed resource name. |
|
Name |
withType(String type)
Set the type property: The resource type chain (e. |
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: The proposed resource name.
Returns:
toJson
type
public String type()
Get the type property: The resource type chain (e.g. virtualMachines/extensions).
Returns:
validate
public void validate()
Validates the instance.
withName
public NameAvailabilityRequest withName(String name)
Set the name property: The proposed resource name.
Parameters:
Returns:
withType
public NameAvailabilityRequest withType(String type)
Set the type property: The resource type chain (e.g. virtualMachines/extensions).
Parameters:
Returns: