Class NameAvailabilityInner
java.lang.Object
com.azure.resourcemanager.signalr.fluent.models.NameAvailabilityInner
Result of the request to check name availability. It contains a flag and possible reason of failure.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmessage()
Get the message property: The message of the operation.Get the nameAvailable property: Indicates whether the name is available or not.reason()
Get the reason property: The reason of the availability.void
validate()
Validates the instance.withMessage
(String message) Set the message property: The message of the operation.withNameAvailable
(Boolean nameAvailable) Set the nameAvailable property: Indicates whether the name is available or not.withReason
(String reason) Set the reason property: The reason of the availability.
-
Constructor Details
-
NameAvailabilityInner
public NameAvailabilityInner()Creates an instance of NameAvailabilityInner class.
-
-
Method Details
-
nameAvailable
Get the nameAvailable property: Indicates whether the name is available or not.- Returns:
- the nameAvailable value.
-
withNameAvailable
Set the nameAvailable property: Indicates whether the name is available or not.- Parameters:
nameAvailable
- the nameAvailable value to set.- Returns:
- the NameAvailabilityInner object itself.
-
reason
Get the reason property: The reason of the availability. Required if name is not available.- Returns:
- the reason value.
-
withReason
Set the reason property: The reason of the availability. Required if name is not available.- Parameters:
reason
- the reason value to set.- Returns:
- the NameAvailabilityInner object itself.
-
message
Get the message property: The message of the operation.- Returns:
- the message value.
-
withMessage
Set the message property: The message of the operation.- Parameters:
message
- the message value to set.- Returns:
- the NameAvailabilityInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-