Class ImageDescriptor
java.lang.Object
com.azure.resourcemanager.containerregistry.models.ImageDescriptor
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ImageDescriptor>
public final class ImageDescriptor
extends Object
implements com.azure.json.JsonSerializable<ImageDescriptor>
Properties for a registry image.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondigest()Get the digest property: The sha256-based digest of the image manifest.static ImageDescriptorfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ImageDescriptor from the JsonReader.registry()Get the registry property: The registry login server.Get the repository property: The repository name.tag()Get the tag property: The tag name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDigest(String digest) Set the digest property: The sha256-based digest of the image manifest.withRegistry(String registry) Set the registry property: The registry login server.withRepository(String repository) Set the repository property: The repository name.Set the tag property: The tag name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ImageDescriptor
public ImageDescriptor()Creates an instance of ImageDescriptor class.
-
-
Method Details
-
registry
Get the registry property: The registry login server.- Returns:
- the registry value.
-
withRegistry
Set the registry property: The registry login server.- Parameters:
registry- the registry value to set.- Returns:
- the ImageDescriptor object itself.
-
repository
Get the repository property: The repository name.- Returns:
- the repository value.
-
withRepository
Set the repository property: The repository name.- Parameters:
repository- the repository value to set.- Returns:
- the ImageDescriptor object itself.
-
tag
Get the tag property: The tag name.- Returns:
- the tag value.
-
withTag
Set the tag property: The tag name.- Parameters:
tag- the tag value to set.- Returns:
- the ImageDescriptor object itself.
-
digest
Get the digest property: The sha256-based digest of the image manifest.- Returns:
- the digest value.
-
withDigest
Set the digest property: The sha256-based digest of the image manifest.- Parameters:
digest- the digest value to set.- Returns:
- the ImageDescriptor object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ImageDescriptor>- Throws:
IOException
-
fromJson
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.
-