Class NameAvailabilityInner
- java.lang.Object
-
- com.azure.resourcemanager.mysqlflexibleserver.fluent.models.NameAvailabilityInner
-
public final class NameAvailabilityInner extends Object
Represents a resource name availability.
-
-
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: Error Message.Boolean
nameAvailable()
Get the nameAvailable property: Indicates whether the resource name is available.String
reason()
Get the reason property: Reason for name being unavailable.void
validate()
Validates the instance.NameAvailabilityInner
withMessage(String message)
Set the message property: Error Message.NameAvailabilityInner
withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: Indicates whether the resource name is available.NameAvailabilityInner
withReason(String reason)
Set the reason property: Reason for name being unavailable.
-
-
-
Method Detail
-
message
public String message()
Get the message property: Error Message.- Returns:
- the message value.
-
withMessage
public NameAvailabilityInner withMessage(String message)
Set the message property: Error Message.- Parameters:
message
- the message value to set.- Returns:
- the NameAvailabilityInner object itself.
-
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: Indicates whether the resource name is available.- Returns:
- the nameAvailable value.
-
withNameAvailable
public NameAvailabilityInner withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: Indicates whether the resource name is available.- Parameters:
nameAvailable
- the nameAvailable value to set.- Returns:
- the NameAvailabilityInner object itself.
-
reason
public String reason()
Get the reason property: Reason for name being unavailable.- Returns:
- the reason value.
-
withReason
public NameAvailabilityInner withReason(String reason)
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.
-
-