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