NameAvailabilityCheckResultInner Class
- java.
lang. Object - com.
azure. resourcemanager. hdinsight. fluent. models. NameAvailabilityCheckResultInner
- com.
Implements
public final class NameAvailabilityCheckResultInner
implements JsonSerializable<NameAvailabilityCheckResultInner>
The response spec of checking name availability.
Constructor Summary
| Constructor | Description |
|---|---|
| NameAvailabilityCheckResultInner() |
Creates an instance of Name |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Name |
fromJson(JsonReader jsonReader)
Reads an instance of Name |
| String |
message()
Get the message property: The related message. |
| Boolean |
nameAvailable()
Get the name |
| String |
reason()
Get the reason property: The reason of the result. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Name |
withNameAvailable(Boolean nameAvailable)
Set the name |
Methods inherited from java.lang.Object
Constructor Details
NameAvailabilityCheckResultInner
public NameAvailabilityCheckResultInner()
Creates an instance of NameAvailabilityCheckResultInner class.
Method Details
fromJson
public static NameAvailabilityCheckResultInner fromJson(JsonReader jsonReader)
Reads an instance of NameAvailabilityCheckResultInner from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: The related message.
Returns:
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: This indicates whether the name is available.
Returns:
reason
public String reason()
Get the reason property: The reason of the result.
Returns:
toJson
validate
public void validate()
Validates the instance.
withNameAvailable
public NameAvailabilityCheckResultInner withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: This indicates whether the name is available.
Parameters:
Returns: