Class NameAvailability
- java.lang.Object
-
- com.azure.resourcemanager.appplatform.models.NameAvailability
-
public final class NameAvailability extends Object
Name availability result payload.
-
-
Constructor Summary
Constructors Constructor Description NameAvailability()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringmessage()Get the message property: Message why the name is not available.BooleannameAvailable()Get the nameAvailable property: Indicates whether the name is available.Stringreason()Get the reason property: Reason why the name is not available.voidvalidate()Validates the instance.NameAvailabilitywithMessage(String message)Set the message property: Message why the name is not available.NameAvailabilitywithNameAvailable(Boolean nameAvailable)Set the nameAvailable property: Indicates whether the name is available.NameAvailabilitywithReason(String reason)Set the reason property: Reason why the name is not available.
-
-
-
Method Detail
-
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: Indicates whether the name is available.- Returns:
- the nameAvailable value.
-
withNameAvailable
public NameAvailability withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: Indicates whether the name is available.- Parameters:
nameAvailable- the nameAvailable value to set.- Returns:
- the NameAvailability object itself.
-
reason
public String reason()
Get the reason property: Reason why the name is not available.- Returns:
- the reason value.
-
withReason
public NameAvailability withReason(String reason)
Set the reason property: Reason why the name is not available.- Parameters:
reason- the reason value to set.- Returns:
- the NameAvailability object itself.
-
message
public String message()
Get the message property: Message why the name is not available.- Returns:
- the message value.
-
withMessage
public NameAvailability withMessage(String message)
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.
-
-