ImportImageParameters Class

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

public final class ImportImageParameters

The ImportImageParameters model.

Constructor Summary

Constructor Description
ImportImageParameters()

Creates an instance of ImportImageParameters class.

Method Summary

Modifier and Type Method and Description
ImportMode mode()

Get the mode property: When Force, any existing target tags will be overwritten.

ImportSource source()

Get the source property: The source of the image.

List<String> targetTags()

Get the targetTags property: List of strings of the form repo[:tag].

List<String> untaggedTargetRepositories()

Get the untaggedTargetRepositories property: List of strings of repository names to do a manifest only copy.

void validate()

Validates the instance.

ImportImageParameters withMode(ImportMode mode)

Set the mode property: When Force, any existing target tags will be overwritten.

ImportImageParameters withSource(ImportSource source)

Set the source property: The source of the image.

ImportImageParameters withTargetTags(List<String> targetTags)

Set the targetTags property: List of strings of the form repo[:tag].

ImportImageParameters withUntaggedTargetRepositories(List<String> untaggedTargetRepositories)

Set the untaggedTargetRepositories property: List of strings of repository names to do a manifest only copy.

Methods inherited from java.lang.Object

Constructor Details

ImportImageParameters

public ImportImageParameters()

Creates an instance of ImportImageParameters class.

Method Details

mode

public ImportMode mode()

Get the mode property: When Force, any existing target tags will be overwritten. When NoForce, any existing target tags will fail the operation before any copying begins.

Returns:

the mode value.

source

public ImportSource source()

Get the source property: The source of the image.

Returns:

the source value.

targetTags

public List targetTags()

Get the targetTags property: List of strings of the form repo[:tag]. When tag is omitted the source will be used (or 'latest' if source tag is also omitted).

Returns:

the targetTags value.

untaggedTargetRepositories

public List untaggedTargetRepositories()

Get the untaggedTargetRepositories property: List of strings of repository names to do a manifest only copy. No tag will be created.

Returns:

the untaggedTargetRepositories value.

validate

public void validate()

Validates the instance.

withMode

public ImportImageParameters withMode(ImportMode mode)

Set the mode property: When Force, any existing target tags will be overwritten. When NoForce, any existing target tags will fail the operation before any copying begins.

Parameters:

mode - the mode value to set.

Returns:

the ImportImageParameters object itself.

withSource

public ImportImageParameters withSource(ImportSource source)

Set the source property: The source of the image.

Parameters:

source - the source value to set.

Returns:

the ImportImageParameters object itself.

withTargetTags

public ImportImageParameters withTargetTags(List targetTags)

Set the targetTags property: List of strings of the form repo[:tag]. When tag is omitted the source will be used (or 'latest' if source tag is also omitted).

Parameters:

targetTags - the targetTags value to set.

Returns:

the ImportImageParameters object itself.

withUntaggedTargetRepositories

public ImportImageParameters withUntaggedTargetRepositories(List untaggedTargetRepositories)

Set the untaggedTargetRepositories property: List of strings of repository names to do a manifest only copy. No tag will be created.

Parameters:

untaggedTargetRepositories - the untaggedTargetRepositories value to set.

Returns:

the ImportImageParameters object itself.

Applies to