Class NameAvailabilityInner
java.lang.Object
com.azure.resourcemanager.mariadb.fluent.models.NameAvailabilityInner
Represents a resource name availability.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmessage()
Get the message property: Error Message.Get the nameAvailable property: Indicates whether the resource name is available.reason()
Get the reason property: Reason for name being unavailable.void
validate()
Validates the instance.withMessage
(String message) Set the message property: Error Message.withNameAvailable
(Boolean nameAvailable) Set the nameAvailable property: Indicates whether the resource name is available.withReason
(String reason) Set the reason property: Reason for name being unavailable.
-
Constructor Details
-
NameAvailabilityInner
public NameAvailabilityInner()Creates an instance of NameAvailabilityInner 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 NameAvailabilityInner object itself.
-
nameAvailable
Get the nameAvailable property: Indicates whether the resource name is available.- Returns:
- the nameAvailable value.
-
withNameAvailable
Set the nameAvailable property: Indicates whether the resource name is available.- Parameters:
nameAvailable
- the nameAvailable value to set.- Returns:
- the NameAvailabilityInner object itself.
-
reason
Get the reason property: Reason for name being unavailable.- Returns:
- the reason value.
-
withReason
Set the reason property: Reason for name being unavailable.- Parameters:
reason
- the reason value to set.- Returns:
- the NameAvailabilityInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-