ContextCacheCheckNameAvailabilityResultInner Class
- java.
lang. Object - com.
azure. resourcemanager. storage. fluent. models. ContextCacheCheckNameAvailabilityResultInner
- com.
Implements
public final class ContextCacheCheckNameAvailabilityResultInner
implements JsonSerializable<ContextCacheCheckNameAvailabilityResultInner>
The result of the context cache name availability check.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Context |
fromJson(JsonReader jsonReader)
Reads an instance of Context |
| String |
message()
Get the message property: The error message providing additional information about the context cache name availability check failure. |
| boolean |
nameAvailable()
Get the name |
|
Context |
reason()
Get the reason property: The reason why the context cache name is not available. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Method Details
fromJson
public static ContextCacheCheckNameAvailabilityResultInner fromJson(JsonReader jsonReader)
Reads an instance of ContextCacheCheckNameAvailabilityResultInner from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: The error message providing additional information about the context cache name availability check failure.
Returns:
nameAvailable
public boolean nameAvailable()
Get the nameAvailable property: A boolean value that indicates whether the context cache name is available to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used.
Returns:
reason
public ContextCacheCheckNameAvailabilityFailureReason reason()
Get the reason property: The reason why the context cache name is not available. The Reason element is only returned if NameAvailable is false.
Returns:
toJson
validate
public void validate()
Validates the instance.