ImageDescriptor Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. ImageDescriptor
- com.
Implements
public final class ImageDescriptor
implements JsonSerializable<ImageDescriptor>
Properties for a registry image.
Constructor Summary
Constructor | Description |
---|---|
ImageDescriptor() |
Creates an instance of Image |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
digest()
Get the digest property: The sha256-based digest of the image manifest. |
static
Image |
fromJson(JsonReader jsonReader)
Reads an instance of Image |
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. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Image |
withDigest(String digest)
Set the digest property: The sha256-based digest of the image manifest. |
Image |
withRegistry(String registry)
Set the registry property: The registry login server. |
Image |
withRepository(String repository)
Set the repository property: The repository name. |
Image |
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:
fromJson
public static ImageDescriptor fromJson(JsonReader jsonReader)
Reads an instance of ImageDescriptor from the JsonReader.
Parameters:
Returns:
Throws:
registry
public String registry()
Get the registry property: The registry login server.
Returns:
repository
public String repository()
Get the repository property: The repository name.
Returns:
tag
public String tag()
Get the tag property: The tag name.
Returns:
toJson
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:
Returns:
withRegistry
public ImageDescriptor withRegistry(String registry)
Set the registry property: The registry login server.
Parameters:
Returns:
withRepository
public ImageDescriptor withRepository(String repository)
Set the repository property: The repository name.
Parameters:
Returns:
withTag
public ImageDescriptor withTag(String tag)
Set the tag property: The tag name.
Parameters:
Returns:
Applies to
Azure SDK for Java