ImageDescriptor Class

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

Implements

public final class ImageDescriptor
implements JsonSerializable<ImageDescriptor>

Properties for a registry image.

Constructor Summary

Constructor Description
ImageDescriptor()

Creates an instance of ImageDescriptor class.

Method Summary

Modifier and Type Method and Description
String digest()

Get the digest property: The sha256-based digest of the image manifest.

static ImageDescriptor fromJson(JsonReader jsonReader)

Reads an instance of ImageDescriptor from the JsonReader.

String registry()

Get the registry property: The registry login server.

String repository()

Get the repository property: The repository name.

String tag()

Get the tag property: The tag name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ImageDescriptor withDigest(String digest)

Set the digest property: The sha256-based digest of the image manifest.

ImageDescriptor withRegistry(String registry)

Set the registry property: The registry login server.

ImageDescriptor withRepository(String repository)

Set the repository property: The repository name.

ImageDescriptor withTag(String tag)

Set the tag property: The tag name.

Methods inherited from java.lang.Object

Constructor Details

ImageDescriptor

public ImageDescriptor()

Creates an instance of ImageDescriptor class.

Method Details

digest

public String digest()

Get the digest property: The sha256-based digest of the image manifest.

Returns:

the digest value.

fromJson

public static ImageDescriptor fromJson(JsonReader jsonReader)

Reads an instance of ImageDescriptor from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

registry

public String registry()

Get the registry property: The registry login server.

Returns:

the registry value.

repository

public String repository()

Get the repository property: The repository name.

Returns:

the repository value.

tag

public String tag()

Get the tag property: The tag name.

Returns:

the tag value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDigest

public ImageDescriptor withDigest(String digest)

Set the digest property: The sha256-based digest of the image manifest.

Parameters:

digest - the digest value to set.

Returns:

the ImageDescriptor object itself.

withRegistry

public ImageDescriptor withRegistry(String registry)

Set the registry property: The registry login server.

Parameters:

registry - the registry value to set.

Returns:

the ImageDescriptor object itself.

withRepository

public ImageDescriptor withRepository(String repository)

Set the repository property: The repository name.

Parameters:

repository - the repository value to set.

Returns:

the ImageDescriptor object itself.

withTag

public ImageDescriptor withTag(String tag)

Set the tag property: The tag name.

Parameters:

tag - the tag value to set.

Returns:

the ImageDescriptor object itself.

Applies to