public final class ResourceNameAvailabilityInner extends Object
| Constructor and Description |
|---|
ResourceNameAvailabilityInner() |
| Modifier and Type | Method and Description |
|---|---|
String |
message()
Get the message property: If reason == invalid, provide the user with the reason why the given name is invalid,
and provide the resource naming requirements so that the user can select a valid name.
|
Boolean |
nameAvailable()
Get the nameAvailable property: <code>true</code> indicates name is valid and available.
|
InAvailabilityReasonType |
reason()
Get the reason property: <code>Invalid</code> indicates the name provided does not match Azure App
Service naming requirements.
|
void |
validate()
Validates the instance.
|
ResourceNameAvailabilityInner |
withMessage(String message)
Set the message property: If reason == invalid, provide the user with the reason why the given name is invalid,
and provide the resource naming requirements so that the user can select a valid name.
|
ResourceNameAvailabilityInner |
withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: <code>true</code> indicates name is valid and available.
|
ResourceNameAvailabilityInner |
withReason(InAvailabilityReasonType reason)
Set the reason property: <code>Invalid</code> indicates the name provided does not match Azure App
Service naming requirements.
|
public Boolean nameAvailable()
public ResourceNameAvailabilityInner withNameAvailable(Boolean nameAvailable)
nameAvailable - the nameAvailable value to set.public InAvailabilityReasonType reason()
public ResourceNameAvailabilityInner withReason(InAvailabilityReasonType reason)
reason - the reason value to set.public String message()
public ResourceNameAvailabilityInner withMessage(String message)
message - the message value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.