ImportImageParameters Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. ImportImageParameters
- com.
public final class ImportImageParameters
The ImportImageParameters model.
Constructor Summary
Constructor | Description |
---|---|
ImportImageParameters() |
Creates an instance of Import |
Method Summary
Modifier and Type | Method and Description |
---|---|
Import |
mode()
Get the mode property: When Force, any existing target tags will be overwritten. |
Import |
source()
Get the source property: The source of the image. |
List<String> |
targetTags()
Get the target |
List<String> |
untaggedTargetRepositories()
Get the untagged |
void |
validate()
Validates the instance. |
Import |
withMode(ImportMode mode)
Set the mode property: When Force, any existing target tags will be overwritten. |
Import |
withSource(ImportSource source)
Set the source property: The source of the image. |
Import |
withTargetTags(List<String> targetTags)
Set the target |
Import |
withUntaggedTargetRepositories(List<String> untaggedTargetRepositories)
Set the untagged |
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:
source
public ImportSource source()
Get the source property: The source of the image.
Returns:
targetTags
public List
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:
untaggedTargetRepositories
public List
Get the untaggedTargetRepositories property: List of strings of repository names to do a manifest only copy. No tag will be created.
Returns:
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:
Returns:
withSource
public ImportImageParameters withSource(ImportSource source)
Set the source property: The source of the image.
Parameters:
Returns:
withTargetTags
public ImportImageParameters withTargetTags(List
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:
Returns:
withUntaggedTargetRepositories
public ImportImageParameters withUntaggedTargetRepositories(List
Set the untaggedTargetRepositories property: List of strings of repository names to do a manifest only copy. No tag will be created.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for