Class DockerBuildRequest
java.lang.Object
com.microsoft.azure.management.containerregistry.RunRequest
com.microsoft.azure.management.containerregistry.DockerBuildRequest
The parameters for a docker quick build.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the machine configuration of the run agent.Get the collection of override arguments to be used when executing the run.Get the Docker file path relative to the source location.Get the fully qualified image names including the repository and tag.Get the value of this property indicates whether the image built should be pushed to the registry or not.noCache()
Get the value of this property indicates whether the image cache is enabled or not.platform()
Get the platform properties against which the run has to happen.Get the URL(absolute or relative) of the source context.timeout()
Get run timeout in seconds.withAgentConfiguration
(AgentProperties agentConfiguration) Set the machine configuration of the run agent.withArguments
(List<Argument> arguments) Set the collection of override arguments to be used when executing the run.withDockerFilePath
(String dockerFilePath) Set the Docker file path relative to the source location.withImageNames
(List<String> imageNames) Set the fully qualified image names including the repository and tag.withIsPushEnabled
(Boolean isPushEnabled) Set the value of this property indicates whether the image built should be pushed to the registry or not.withNoCache
(Boolean noCache) Set the value of this property indicates whether the image cache is enabled or not.withPlatform
(PlatformProperties platform) Set the platform properties against which the run has to happen.withSourceLocation
(String sourceLocation) Set the URL(absolute or relative) of the source context.withTimeout
(Integer timeout) Set run timeout in seconds.Methods inherited from class com.microsoft.azure.management.containerregistry.RunRequest
isArchiveEnabled, withIsArchiveEnabled
-
Constructor Details
-
DockerBuildRequest
public DockerBuildRequest()
-
-
Method Details
-
imageNames
Get the fully qualified image names including the repository and tag.- Returns:
- the imageNames value
-
withImageNames
Set the fully qualified image names including the repository and tag.- Parameters:
imageNames
- the imageNames value to set- Returns:
- the DockerBuildRequest object itself.
-
isPushEnabled
Get the value of this property indicates whether the image built should be pushed to the registry or not.- Returns:
- the isPushEnabled value
-
withIsPushEnabled
Set the value of this property indicates whether the image built should be pushed to the registry or not.- Parameters:
isPushEnabled
- the isPushEnabled value to set- Returns:
- the DockerBuildRequest object itself.
-
noCache
Get the value of this property indicates whether the image cache is enabled or not.- Returns:
- the noCache value
-
withNoCache
Set the value of this property indicates whether the image cache is enabled or not.- Parameters:
noCache
- the noCache value to set- Returns:
- the DockerBuildRequest object itself.
-
dockerFilePath
Get the Docker file path relative to the source location.- Returns:
- the dockerFilePath value
-
withDockerFilePath
Set the Docker file path relative to the source location.- Parameters:
dockerFilePath
- the dockerFilePath value to set- Returns:
- the DockerBuildRequest object itself.
-
arguments
Get the collection of override arguments to be used when executing the run.- Returns:
- the arguments value
-
withArguments
Set the collection of override arguments to be used when executing the run.- Parameters:
arguments
- the arguments value to set- Returns:
- the DockerBuildRequest object itself.
-
timeout
Get run timeout in seconds.- Returns:
- the timeout value
-
withTimeout
Set run timeout in seconds.- Parameters:
timeout
- the timeout value to set- Returns:
- the DockerBuildRequest object itself.
-
platform
Get the platform properties against which the run has to happen.- Returns:
- the platform value
-
withPlatform
Set the platform properties against which the run has to happen.- Parameters:
platform
- the platform value to set- Returns:
- the DockerBuildRequest object itself.
-
agentConfiguration
Get the machine configuration of the run agent.- Returns:
- the agentConfiguration value
-
withAgentConfiguration
Set the machine configuration of the run agent.- Parameters:
agentConfiguration
- the agentConfiguration value to set- Returns:
- the DockerBuildRequest object itself.
-
sourceLocation
Get the URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory. If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.- Returns:
- the sourceLocation value
-
withSourceLocation
Set the URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory. If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.- Parameters:
sourceLocation
- the sourceLocation value to set- Returns:
- the DockerBuildRequest object itself.
-