NameAvailabilityInner Class
- java.
lang. Object - com.
azure. resourcemanager. signalr. fluent. models. NameAvailabilityInner
- com.
Implements
public final class NameAvailabilityInner
implements JsonSerializable<NameAvailabilityInner>
Result of the request to check name availability. It contains a flag and possible reason of failure.
Constructor Summary
| Constructor | Description |
|---|---|
| NameAvailabilityInner() |
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 message of the operation. |
| Boolean |
nameAvailable()
Get the name |
| String |
reason()
Get the reason property: The reason of the availability. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Name |
withMessage(String message)
Set the message property: The message of the operation. |
|
Name |
withNameAvailable(Boolean nameAvailable)
Set the name |
|
Name |
withReason(String reason)
Set the reason property: The reason of the availability. |
Methods inherited from java.lang.Object
Constructor Details
NameAvailabilityInner
public NameAvailabilityInner()
Creates an instance of NameAvailabilityInner class.
Method Details
fromJson
public static NameAvailabilityInner fromJson(JsonReader jsonReader)
Reads an instance of NameAvailabilityInner from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: The message of the operation.
Returns:
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: Indicates whether the name is available or not.
Returns:
reason
public String reason()
Get the reason property: The reason of the availability. Required if name is not available.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMessage
public NameAvailabilityInner withMessage(String message)
Set the message property: The message of the operation.
Parameters:
Returns:
withNameAvailable
public NameAvailabilityInner withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: Indicates whether the name is available or not.
Parameters:
Returns:
withReason
public NameAvailabilityInner withReason(String reason)
Set the reason property: The reason of the availability. Required if name is not available.
Parameters:
Returns: