ContextCacheCheckNameAvailabilityResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.fluent.models.ContextCacheCheckNameAvailabilityResultInner

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 ContextCacheCheckNameAvailabilityResultInner fromJson(JsonReader jsonReader)

Reads an instance of ContextCacheCheckNameAvailabilityResultInner from the JsonReader.

String message()

Get the message property: The error message providing additional information about the context cache name availability check failure.

boolean nameAvailable()

Get the nameAvailable property: A boolean value that indicates whether the context cache name is available to use.

ContextCacheCheckNameAvailabilityFailureReason reason()

Get the reason property: The reason why the context cache name is not available.

JsonWriter 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:

jsonReader - The JsonReader being read.

Returns:

An instance of ContextCacheCheckNameAvailabilityResultInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

message

public String message()

Get the message property: The error message providing additional information about the context cache name availability check failure.

Returns:

the message value.

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:

the nameAvailable value.

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:

the reason value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to