Class ImportImageParameters
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.ImportImageParameters
-
public final class ImportImageParameters extends Object
The ImportImageParameters model.
-
-
Constructor Summary
Constructors Constructor Description ImportImageParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportModemode()Get the mode property: When Force, any existing target tags will be overwritten.ImportSourcesource()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.voidvalidate()Validates the instance.ImportImageParameterswithMode(ImportMode mode)Set the mode property: When Force, any existing target tags will be overwritten.ImportImageParameterswithSource(ImportSource source)Set the source property: The source of the image.ImportImageParameterswithTargetTags(List<String> targetTags)Set the targetTags property: List of strings of the form repo[:tag].ImportImageParameterswithUntaggedTargetRepositories(List<String> untaggedTargetRepositories)Set the untaggedTargetRepositories property: List of strings of repository names to do a manifest only copy.
-
-
-
Method Detail
-
source
public ImportSource source()
Get the source property: The source of the image.- Returns:
- the source value.
-
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.
-
targetTags
public List<String> 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.
-
withTargetTags
public ImportImageParameters withTargetTags(List<String> 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.
-
untaggedTargetRepositories
public List<String> 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.
-
withUntaggedTargetRepositories
public ImportImageParameters withUntaggedTargetRepositories(List<String> 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.
-
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.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-