Share via


RegistryNameCheckRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.RegistryNameCheckRequest

Implements

public final class RegistryNameCheckRequest
implements JsonSerializable<RegistryNameCheckRequest>

A request to check whether a container registry name is available.

Constructor Summary

Constructor Description
RegistryNameCheckRequest()

Creates an instance of RegistryNameCheckRequest class.

Method Summary

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

Reads an instance of RegistryNameCheckRequest from the JsonReader.

String name()

Get the name property: The name of the container registry.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The resource type of the container registry.

void validate()

Validates the instance.

RegistryNameCheckRequest withName(String name)

Set the name property: The name of the container registry.

Methods inherited from java.lang.Object

Constructor Details

RegistryNameCheckRequest

public RegistryNameCheckRequest()

Creates an instance of RegistryNameCheckRequest class.

Method Details

fromJson

public static RegistryNameCheckRequest fromJson(JsonReader jsonReader)

Reads an instance of RegistryNameCheckRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RegistryNameCheckRequest 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.

name

public String name()

Get the name property: The name of the container registry.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The resource type of the container registry. This field must be set to 'Microsoft.ContainerRegistry/registries'.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public RegistryNameCheckRequest withName(String name)

Set the name property: The name of the container registry.

Parameters:

name - the name value to set.

Returns:

the RegistryNameCheckRequest object itself.

Applies to