NameAvailability Class
- java.
lang. Object - com.
azure. resourcemanager. appplatform. models. NameAvailability
- com.
Implements
public final class NameAvailability
implements JsonSerializable<NameAvailability>
Name availability result payload.
Constructor Summary
Constructor | Description |
---|---|
NameAvailability() |
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: Message why the name is not available. |
Boolean |
nameAvailable()
Get the name |
String |
reason()
Get the reason property: Reason why the name is not available. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Name |
withMessage(String message)
Set the message property: Message why the name is not available. |
Name |
withNameAvailable(Boolean nameAvailable)
Set the name |
Name |
withReason(String reason)
Set the reason property: Reason why the name is not available. |
Methods inherited from java.lang.Object
Constructor Details
NameAvailability
public NameAvailability()
Creates an instance of NameAvailability class.
Method Details
fromJson
public static NameAvailability fromJson(JsonReader jsonReader)
Reads an instance of NameAvailability from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: Message why the name is not available.
Returns:
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: Indicates whether the name is available.
Returns:
reason
public String reason()
Get the reason property: Reason why the name is not available.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMessage
public NameAvailability withMessage(String message)
Set the message property: Message why the name is not available.
Parameters:
Returns:
withNameAvailable
public NameAvailability withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: Indicates whether the name is available.
Parameters:
Returns:
withReason
public NameAvailability withReason(String reason)
Set the reason property: Reason why the name is not available.
Parameters:
Returns:
Applies to
Azure SDK for Java