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