Class CheckNameAvailabilityResultInner
java.lang.Object
com.azure.resourcemanager.purview.fluent.models.CheckNameAvailabilityResultInner
The response payload for CheckNameAvailability API.
-
Constructor Summary
ConstructorDescriptionCreates an instance of CheckNameAvailabilityResultInner class. -
Method Summary
Modifier and TypeMethodDescriptionmessage()
Get the message property: Error message.Get the nameAvailable property: Indicates if name is valid and available.reason()
Get the reason property: The reason the name is not available.void
validate()
Validates the instance.withMessage
(String message) Set the message property: Error message.withNameAvailable
(Boolean nameAvailable) Set the nameAvailable property: Indicates if name is valid and available.withReason
(Reason reason) Set the reason property: The reason the name is not available.
-
Constructor Details
-
CheckNameAvailabilityResultInner
public CheckNameAvailabilityResultInner()Creates an instance of CheckNameAvailabilityResultInner class.
-
-
Method Details
-
message
Get the message property: Error message.- Returns:
- the message value.
-
withMessage
Set the message property: Error message.- Parameters:
message
- the message value to set.- Returns:
- the CheckNameAvailabilityResultInner object itself.
-
nameAvailable
Get the nameAvailable property: Indicates if name is valid and available.- Returns:
- the nameAvailable value.
-
withNameAvailable
Set the nameAvailable property: Indicates if name is valid and available.- Parameters:
nameAvailable
- the nameAvailable value to set.- Returns:
- the CheckNameAvailabilityResultInner object itself.
-
reason
Get the reason property: The reason the name is not available.- Returns:
- the reason value.
-
withReason
Set the reason property: The reason the name is not available.- Parameters:
reason
- the reason value to set.- Returns:
- the CheckNameAvailabilityResultInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-