CheckNameResultInner Class
- java.
lang. Object - com.
azure. resourcemanager. digitaltwins. fluent. models. CheckNameResultInner
- com.
Implements
public final class CheckNameResultInner
implements JsonSerializable<CheckNameResultInner>
The result returned from a check name availability request.
Constructor Summary
| Constructor | Description |
|---|---|
| CheckNameResultInner() |
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: Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated. |
| Boolean |
nameAvailable()
Get the name |
| Reason |
reason()
Get the reason property: Message providing the reason why the given name is invalid. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Check |
withMessage(String message)
Set the message property: Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated. |
|
Check |
withNameAvailable(Boolean nameAvailable)
Set the name |
|
Check |
withReason(Reason reason)
Set the reason property: Message providing the reason why the given name is invalid. |
Methods inherited from java.lang.Object
Constructor Details
CheckNameResultInner
public CheckNameResultInner()
Creates an instance of CheckNameResultInner class.
Method Details
fromJson
public static CheckNameResultInner fromJson(JsonReader jsonReader)
Reads an instance of CheckNameResultInner from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated.
Returns:
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: Specifies a Boolean value that indicates if the name is available.
Returns:
reason
public Reason reason()
Get the reason property: Message providing the reason why the given name is invalid.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMessage
public CheckNameResultInner withMessage(String message)
Set the message property: Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated.
Parameters:
Returns:
withNameAvailable
public CheckNameResultInner withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: Specifies a Boolean value that indicates if the name is available.
Parameters:
Returns:
withReason
public CheckNameResultInner withReason(Reason reason)
Set the reason property: Message providing the reason why the given name is invalid.
Parameters:
Returns: