CheckNameAvailabilityResultInner Class
- java.
lang. Object - com.
azure. resourcemanager. purview. fluent. models. CheckNameAvailabilityResultInner
- com.
Implements
public final class CheckNameAvailabilityResultInner
implements JsonSerializable<CheckNameAvailabilityResultInner>
The response payload for CheckNameAvailability API.
Constructor Summary
| Constructor | Description |
|---|---|
| CheckNameAvailabilityResultInner() |
Creates an instance of Check |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Check |
fromJson(JsonReader jsonReader)
Reads an instance of Check |
| String |
message()
Get the message property: Error message. |
| Boolean |
nameAvailable()
Get the name |
| Reason |
reason()
Get the reason property: The reason the name is not available. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Check |
withMessage(String message)
Set the message property: Error message. |
|
Check |
withNameAvailable(Boolean nameAvailable)
Set the name |
|
Check |
withReason(Reason reason)
Set the reason property: The reason the name is not available. |
Methods inherited from java.lang.Object
Constructor Details
CheckNameAvailabilityResultInner
public CheckNameAvailabilityResultInner()
Creates an instance of CheckNameAvailabilityResultInner class.
Method Details
fromJson
public static CheckNameAvailabilityResultInner fromJson(JsonReader jsonReader)
Reads an instance of CheckNameAvailabilityResultInner from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: Error message.
Returns:
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: Indicates if name is valid and available.
Returns:
reason
public Reason reason()
Get the reason property: The reason the name is not available.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMessage
public CheckNameAvailabilityResultInner withMessage(String message)
Set the message property: Error message.
Parameters:
Returns:
withNameAvailable
public CheckNameAvailabilityResultInner withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: Indicates if name is valid and available.
Parameters:
Returns:
withReason
public CheckNameAvailabilityResultInner withReason(Reason reason)
Set the reason property: The reason the name is not available.
Parameters:
Returns: