Class NameAvailability
java.lang.Object
com.azure.resourcemanager.appplatform.models.NameAvailability
Name availability result payload.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmessage()Get the message property: Message why the name is not available.Get the nameAvailable property: Indicates whether the name is available.reason()Get the reason property: Reason why the name is not available.voidvalidate()Validates the instance.withMessage(String message) Set the message property: Message why the name is not available.withNameAvailable(Boolean nameAvailable) Set the nameAvailable property: Indicates whether the name is available.withReason(String reason) Set the reason property: Reason why the name is not available.
-
Constructor Details
-
NameAvailability
public NameAvailability()
-
-
Method Details
-
nameAvailable
Get the nameAvailable property: Indicates whether the name is available.- Returns:
- the nameAvailable value.
-
withNameAvailable
Set the nameAvailable property: Indicates whether the name is available.- Parameters:
nameAvailable- the nameAvailable value to set.- Returns:
- the NameAvailability object itself.
-
reason
Get the reason property: Reason why the name is not available.- Returns:
- the reason value.
-
withReason
Set the reason property: Reason why the name is not available.- Parameters:
reason- the reason value to set.- Returns:
- the NameAvailability object itself.
-
message
Get the message property: Message why the name is not available.- Returns:
- the message value.
-
withMessage
Set the message property: Message why the name is not available.- Parameters:
message- the message value to set.- Returns:
- the NameAvailability object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-