Class NameAvailabilityInner
- java.lang.Object
-
- com.azure.resourcemanager.signalr.fluent.models.NameAvailabilityInner
-
public final class NameAvailabilityInner extends Object
Result of the request to check name availability. It contains a flag and possible reason of failure.
-
-
Constructor Summary
Constructors Constructor Description NameAvailabilityInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
message()
Get the message property: The message of the operation.Boolean
nameAvailable()
Get the nameAvailable property: Indicates whether the name is available or not.String
reason()
Get the reason property: The reason of the availability.void
validate()
Validates the instance.NameAvailabilityInner
withMessage(String message)
Set the message property: The message of the operation.NameAvailabilityInner
withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: Indicates whether the name is available or not.NameAvailabilityInner
withReason(String reason)
Set the reason property: The reason of the availability.
-
-
-
Method Detail
-
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: Indicates whether the name is available or not.- Returns:
- the nameAvailable value.
-
withNameAvailable
public NameAvailabilityInner withNameAvailable(Boolean nameAvailable)
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
public String reason()
Get the reason property: The reason of the availability. Required if name is not available.- Returns:
- the reason value.
-
withReason
public NameAvailabilityInner withReason(String reason)
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
public String message()
Get the message property: The message of the operation.- Returns:
- the message value.
-
withMessage
public NameAvailabilityInner withMessage(String message)
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.
-
-