Class ResourceNameAvailabilityInner
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.ResourceNameAvailabilityInner
Information regarding availability of a resource name.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmessage()
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.Get the nameAvailable property: <code>true</code> indicates name is valid and available.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.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.withNameAvailable
(Boolean nameAvailable) Set the nameAvailable property: <code>true</code> indicates name is valid and available.withReason
(InAvailabilityReasonType reason) Set the reason property: <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements.
-
Constructor Details
-
ResourceNameAvailabilityInner
public ResourceNameAvailabilityInner()
-
-
Method Details
-
nameAvailable
Get the nameAvailable property: <code>true</code> indicates name is valid and available. <code>false</code> indicates the name is invalid, unavailable, or both.- Returns:
- the nameAvailable value.
-
withNameAvailable
Set the nameAvailable property: <code>true</code> indicates name is valid and available. <code>false</code> indicates the name is invalid, unavailable, or both.- Parameters:
nameAvailable
- the nameAvailable value to set.- Returns:
- the ResourceNameAvailabilityInner object itself.
-
reason
Get the reason property: <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable.- Returns:
- the reason value.
-
withReason
Set the reason property: <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable.- Parameters:
reason
- the reason value to set.- Returns:
- the ResourceNameAvailabilityInner object itself.
-
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. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name.- Returns:
- the message value.
-
withMessage
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. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name.- Parameters:
message
- the message value to set.- Returns:
- the ResourceNameAvailabilityInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-