Class CheckNameResultInner
java.lang.Object
com.azure.resourcemanager.digitaltwins.fluent.models.CheckNameResultInner
The result returned from a check name availability request.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmessage()
Get the message property: Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated.Get the nameAvailable property: Specifies a Boolean value that indicates if the name is available.reason()
Get the reason property: Message providing the reason why the given name is invalid.void
validate()
Validates the instance.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.withNameAvailable
(Boolean nameAvailable) Set the nameAvailable property: Specifies a Boolean value that indicates if the name is available.withReason
(Reason reason) Set the reason property: Message providing the reason why the given name is invalid.
-
Constructor Details
-
CheckNameResultInner
public CheckNameResultInner()
-
-
Method Details
-
nameAvailable
Get the nameAvailable property: Specifies a Boolean value that indicates if the name is available.- Returns:
- the nameAvailable value.
-
withNameAvailable
Set the nameAvailable property: Specifies a Boolean value that indicates if the name is available.- Parameters:
nameAvailable
- the nameAvailable value to set.- Returns:
- the CheckNameResultInner object itself.
-
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:
- the message value.
-
withMessage
Set the message property: Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated.- Parameters:
message
- the message value to set.- Returns:
- the CheckNameResultInner object itself.
-
reason
Get the reason property: Message providing the reason why the given name is invalid.- Returns:
- the reason value.
-
withReason
Set the reason property: Message providing the reason why the given name is invalid.- Parameters:
reason
- the reason value to set.- Returns:
- the CheckNameResultInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-