ResourceNameAvailabilityInner Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. fluent. models. ResourceNameAvailabilityInner
- com.
Implements
public final class ResourceNameAvailabilityInner
implements JsonSerializable<ResourceNameAvailabilityInner>
Information regarding availability of a resource name.
Constructor Summary
Constructor | Description |
---|---|
ResourceNameAvailabilityInner() |
Creates an instance of Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
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 name |
In |
reason()
Get the reason property: |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Resource |
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. |
Resource |
withNameAvailable(Boolean nameAvailable)
Set the name |
Resource |
withReason(InAvailabilityReasonType reason)
Set the reason property: |
Methods inherited from java.lang.Object
Constructor Details
ResourceNameAvailabilityInner
public ResourceNameAvailabilityInner()
Creates an instance of ResourceNameAvailabilityInner class.
Method Details
fromJson
public static ResourceNameAvailabilityInner fromJson(JsonReader jsonReader)
Reads an instance of ResourceNameAvailabilityInner from the JsonReader.
Parameters:
Returns:
Throws:
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:
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: true
indicates name is valid and available. false
indicates the name is invalid, unavailable, or both.
Returns:
reason
public InAvailabilityReasonType reason()
Get the reason property: Invalid
indicates the name provided does not match Azure App Service naming requirements. AlreadyExists
indicates that the name is already in use and is therefore unavailable.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMessage
public 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. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name.
Parameters:
Returns:
withNameAvailable
public ResourceNameAvailabilityInner withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: true
indicates name is valid and available. false
indicates the name is invalid, unavailable, or both.
Parameters:
Returns:
withReason
public ResourceNameAvailabilityInner withReason(InAvailabilityReasonType reason)
Set the reason property: Invalid
indicates the name provided does not match Azure App Service naming requirements. AlreadyExists
indicates that the name is already in use and is therefore unavailable.
Parameters:
Returns:
Applies to
Azure SDK for Java