BaseImageDependency Class

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

Implements

public final class BaseImageDependency
implements JsonSerializable<BaseImageDependency>

Properties that describe a base image dependency.

Constructor Summary

Constructor Description
BaseImageDependency()

Creates an instance of BaseImageDependency class.

Method Summary

Modifier and Type Method and Description
String digest()

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

static BaseImageDependency fromJson(JsonReader jsonReader)

Reads an instance of BaseImageDependency 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)
BaseImageDependencyType type()

Get the type property: The type of the base image dependency.

void validate()

Validates the instance.

BaseImageDependency withDigest(String digest)

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

BaseImageDependency withRegistry(String registry)

Set the registry property: The registry login server.

BaseImageDependency withRepository(String repository)

Set the repository property: The repository name.

BaseImageDependency withTag(String tag)

Set the tag property: The tag name.

BaseImageDependency 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:

the digest value.

fromJson

public static BaseImageDependency fromJson(JsonReader jsonReader)

Reads an instance of BaseImageDependency from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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:

type

public BaseImageDependencyType type()

Get the type property: The type of the base image dependency.

Returns:

the type value.

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:

digest - the digest value to set.

Returns:

the BaseImageDependency object itself.

withRegistry

public BaseImageDependency withRegistry(String registry)

Set the registry property: The registry login server.

Parameters:

registry - the registry value to set.

Returns:

the BaseImageDependency object itself.

withRepository

public BaseImageDependency withRepository(String repository)

Set the repository property: The repository name.

Parameters:

repository - the repository value to set.

Returns:

the BaseImageDependency object itself.

withTag

public BaseImageDependency withTag(String tag)

Set the tag property: The tag name.

Parameters:

tag - the tag value to set.

Returns:

the BaseImageDependency object itself.

withType

public BaseImageDependency withType(BaseImageDependencyType type)

Set the type property: The type of the base image dependency.

Parameters:

type - the type value to set.

Returns:

the BaseImageDependency object itself.

Applies to