Class ImportSource
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.ImportSource
-
public final class ImportSource extends Object
The ImportSource model.
-
-
Constructor Summary
Constructors Constructor Description ImportSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportSourceCredentialscredentials()Get the credentials property: Credentials used when importing from a registry uri.StringregistryUri()Get the registryUri property: The address of the source registry (e.g.StringresourceId()Get the resourceId property: The resource identifier of the source Azure Container Registry.StringsourceImage()Get the sourceImage property: Repository name of the source image.voidvalidate()Validates the instance.ImportSourcewithCredentials(ImportSourceCredentials credentials)Set the credentials property: Credentials used when importing from a registry uri.ImportSourcewithRegistryUri(String registryUri)Set the registryUri property: The address of the source registry (e.g.ImportSourcewithResourceId(String resourceId)Set the resourceId property: The resource identifier of the source Azure Container Registry.ImportSourcewithSourceImage(String sourceImage)Set the sourceImage property: Repository name of the source image.
-
-
-
Method Detail
-
resourceId
public String resourceId()
Get the resourceId property: The resource identifier of the source Azure Container Registry.- Returns:
- the resourceId value.
-
withResourceId
public ImportSource withResourceId(String resourceId)
Set the resourceId property: The resource identifier of the source Azure Container Registry.- Parameters:
resourceId- the resourceId value to set.- Returns:
- the ImportSource object itself.
-
registryUri
public String registryUri()
Get the registryUri property: The address of the source registry (e.g. 'mcr.microsoft.com').- Returns:
- the registryUri value.
-
withRegistryUri
public ImportSource withRegistryUri(String registryUri)
Set the registryUri property: The address of the source registry (e.g. 'mcr.microsoft.com').- Parameters:
registryUri- the registryUri value to set.- Returns:
- the ImportSource object itself.
-
credentials
public ImportSourceCredentials credentials()
Get the credentials property: Credentials used when importing from a registry uri.- Returns:
- the credentials value.
-
withCredentials
public ImportSource withCredentials(ImportSourceCredentials credentials)
Set the credentials property: Credentials used when importing from a registry uri.- Parameters:
credentials- the credentials value to set.- Returns:
- the ImportSource object itself.
-
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:
- the sourceImage value.
-
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:
sourceImage- the sourceImage value to set.- Returns:
- the ImportSource object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-