CheckNameAvailabilityResponseInner Class
- java.
lang. Object - com.
azure. resourcemanager. sql. fluent. models. CheckNameAvailabilityResponseInner
- com.
Implements
public final class CheckNameAvailabilityResponseInner
implements JsonSerializable<CheckNameAvailabilityResponseInner>
The result of a name availability check.
Constructor Summary
Constructor | Description |
---|---|
CheckNameAvailabilityResponseInner() |
Creates an instance of Check |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
available()
Get the available property: True if the name is available, otherwise false. |
static
Check |
fromJson(JsonReader jsonReader)
Reads an instance of Check |
String |
message()
Get the message property: A message explaining why the name is unavailable. |
String |
name()
Get the name property: The name whose availability was checked. |
Check |
reason()
Get the reason property: The reason code explaining why the name is unavailable. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Constructor Details
CheckNameAvailabilityResponseInner
public CheckNameAvailabilityResponseInner()
Creates an instance of CheckNameAvailabilityResponseInner class.
Method Details
available
public Boolean available()
Get the available property: True if the name is available, otherwise false.
Returns:
fromJson
public static CheckNameAvailabilityResponseInner fromJson(JsonReader jsonReader)
Reads an instance of CheckNameAvailabilityResponseInner from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: A message explaining why the name is unavailable. Will be undefined if the name is available.
Returns:
name
public String name()
Get the name property: The name whose availability was checked.
Returns:
reason
public CheckNameAvailabilityReason reason()
Get the reason property: The reason code explaining why the name is unavailable. Will be undefined if the name is available.
Returns:
toJson
validate
public void validate()
Validates the instance.
Applies to
Azure SDK for Java