RegistryNameStatusInner Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.fluent.models.RegistryNameStatusInner

Implements

public final class RegistryNameStatusInner
implements JsonSerializable<RegistryNameStatusInner>

The result of a request to check the availability of a container registry name.

Constructor Summary

Constructor Description
RegistryNameStatusInner()

Creates an instance of RegistryNameStatusInner class.

Method Summary

Modifier and Type Method and Description
static RegistryNameStatusInner fromJson(JsonReader jsonReader)

Reads an instance of RegistryNameStatusInner from the JsonReader.

String message()

Get the message property: If any, the error message that provides more detail for the reason that the name is not available.

Boolean nameAvailable()

Get the nameAvailable property: The value that indicates whether the name is available.

String reason()

Get the reason property: If any, the reason that the name is not available.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RegistryNameStatusInner withMessage(String message)

Set the message property: If any, the error message that provides more detail for the reason that the name is not available.

RegistryNameStatusInner withNameAvailable(Boolean nameAvailable)

Set the nameAvailable property: The value that indicates whether the name is available.

RegistryNameStatusInner withReason(String reason)

Set the reason property: If any, the reason that the name is not available.

Methods inherited from java.lang.Object

Constructor Details

RegistryNameStatusInner

public RegistryNameStatusInner()

Creates an instance of RegistryNameStatusInner class.

Method Details

fromJson

public static RegistryNameStatusInner fromJson(JsonReader jsonReader)

Reads an instance of RegistryNameStatusInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the RegistryNameStatusInner.

message

public String message()

Get the message property: If any, the error message that provides more detail for the reason that the name is not available.

Returns:

the message value.

nameAvailable

public Boolean nameAvailable()

Get the nameAvailable property: The value that indicates whether the name is available.

Returns:

the nameAvailable value.

reason

public String reason()

Get the reason property: If any, the reason that the name is not available.

Returns:

the reason value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMessage

public RegistryNameStatusInner withMessage(String message)

Set the message property: If any, the error message that provides more detail for the reason that the name is not available.

Parameters:

message - the message value to set.

Returns:

the RegistryNameStatusInner object itself.

withNameAvailable

public RegistryNameStatusInner withNameAvailable(Boolean nameAvailable)

Set the nameAvailable property: The value that indicates whether the name is available.

Parameters:

nameAvailable - the nameAvailable value to set.

Returns:

the RegistryNameStatusInner object itself.

withReason

public RegistryNameStatusInner withReason(String reason)

Set the reason property: If any, the reason that the name is not available.

Parameters:

reason - the reason value to set.

Returns:

the RegistryNameStatusInner object itself.

Applies to