ImportSource Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. ImportSource
- com.
public final class ImportSource
The ImportSource model.
Constructor Summary
Constructor | Description |
---|---|
ImportSource() |
Creates an instance of Import |
Method Summary
Modifier and Type | Method and Description |
---|---|
Import |
credentials()
Get the credentials property: Credentials used when importing from a registry uri. |
String |
registryUri()
Get the registry |
String |
resourceId()
Get the resource |
String |
sourceImage()
Get the source |
void |
validate()
Validates the instance. |
Import |
withCredentials(ImportSourceCredentials credentials)
Set the credentials property: Credentials used when importing from a registry uri. |
Import |
withRegistryUri(String registryUri)
Set the registry |
Import |
withResourceId(String resourceId)
Set the resource |
Import |
withSourceImage(String sourceImage)
Set the source |
Methods inherited from java.lang.Object
Constructor Details
ImportSource
public ImportSource()
Creates an instance of ImportSource class.
Method Details
credentials
public ImportSourceCredentials credentials()
Get the credentials property: Credentials used when importing from a registry uri.
Returns:
registryUri
public String registryUri()
Get the registryUri property: The address of the source registry (e.g. 'mcr.microsoft.com').
Returns:
resourceId
public String resourceId()
Get the resourceId property: The resource identifier of the source Azure Container Registry.
Returns:
sourceImage
public String sourceImage()
Get the sourceImage property: Repository name of the source image. Specify an image by repository ('hello-world'). This will use the 'latest' tag. Specify an image by tag ('hello-world:latest'). Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123').
Returns:
validate
public void validate()
Validates the instance.
withCredentials
public ImportSource withCredentials(ImportSourceCredentials credentials)
Set the credentials property: Credentials used when importing from a registry uri.
Parameters:
Returns:
withRegistryUri
public ImportSource withRegistryUri(String registryUri)
Set the registryUri property: The address of the source registry (e.g. 'mcr.microsoft.com').
Parameters:
Returns:
withResourceId
public ImportSource withResourceId(String resourceId)
Set the resourceId property: The resource identifier of the source Azure Container Registry.
Parameters:
Returns:
withSourceImage
public ImportSource withSourceImage(String sourceImage)
Set the sourceImage property: Repository name of the source image. Specify an image by repository ('hello-world'). This will use the 'latest' tag. Specify an image by tag ('hello-world:latest'). Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123').
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