Class DockerTaskStep
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.TaskStepProperties
-
- com.azure.resourcemanager.containerregistry.models.DockerTaskStep
-
public final class DockerTaskStep extends TaskStepProperties
The Docker build step.
-
-
Constructor Summary
Constructors Constructor Description DockerTaskStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Argument>arguments()Get the arguments property: The collection of override arguments to be used when executing this build step.StringdockerFilePath()Get the dockerFilePath property: The Docker file path relative to the source context.List<String>imageNames()Get the imageNames property: The fully qualified image names including the repository and tag.BooleanisPushEnabled()Get the isPushEnabled property: The value of this property indicates whether the image built should be pushed to the registry or not.BooleannoCache()Get the noCache property: The value of this property indicates whether the image cache is enabled or not.Stringtarget()Get the target property: The name of the target build stage for the docker build.voidvalidate()Validates the instance.DockerTaskStepwithArguments(List<Argument> arguments)Set the arguments property: The collection of override arguments to be used when executing this build step.DockerTaskStepwithContextAccessToken(String contextAccessToken)Set the contextAccessToken property: The token (git PAT or SAS token of storage account blob) associated with the context for a step.DockerTaskStepwithContextPath(String contextPath)Set the contextPath property: The URL(absolute or relative) of the source context for the task step.DockerTaskStepwithDockerFilePath(String dockerFilePath)Set the dockerFilePath property: The Docker file path relative to the source context.DockerTaskStepwithImageNames(List<String> imageNames)Set the imageNames property: The fully qualified image names including the repository and tag.DockerTaskStepwithIsPushEnabled(Boolean isPushEnabled)Set the isPushEnabled property: The value of this property indicates whether the image built should be pushed to the registry or not.DockerTaskStepwithNoCache(Boolean noCache)Set the noCache property: The value of this property indicates whether the image cache is enabled or not.DockerTaskStepwithTarget(String target)Set the target property: The name of the target build stage for the docker build.-
Methods inherited from class com.azure.resourcemanager.containerregistry.models.TaskStepProperties
baseImageDependencies, contextAccessToken, contextPath
-
-
-
-
Method Detail
-
imageNames
public List<String> imageNames()
Get the imageNames property: The fully qualified image names including the repository and tag.- Returns:
- the imageNames value.
-
withImageNames
public DockerTaskStep withImageNames(List<String> imageNames)
Set the imageNames property: The fully qualified image names including the repository and tag.- Parameters:
imageNames- the imageNames value to set.- Returns:
- the DockerTaskStep object itself.
-
isPushEnabled
public Boolean isPushEnabled()
Get the isPushEnabled property: The value of this property indicates whether the image built should be pushed to the registry or not.- Returns:
- the isPushEnabled value.
-
withIsPushEnabled
public DockerTaskStep withIsPushEnabled(Boolean isPushEnabled)
Set the isPushEnabled property: 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 DockerTaskStep object itself.
-
noCache
public Boolean noCache()
Get the noCache property: The value of this property indicates whether the image cache is enabled or not.- Returns:
- the noCache value.
-
withNoCache
public DockerTaskStep withNoCache(Boolean noCache)
Set the noCache property: The value of this property indicates whether the image cache is enabled or not.- Parameters:
noCache- the noCache value to set.- Returns:
- the DockerTaskStep object itself.
-
dockerFilePath
public String dockerFilePath()
Get the dockerFilePath property: The Docker file path relative to the source context.- Returns:
- the dockerFilePath value.
-
withDockerFilePath
public DockerTaskStep withDockerFilePath(String dockerFilePath)
Set the dockerFilePath property: The Docker file path relative to the source context.- Parameters:
dockerFilePath- the dockerFilePath value to set.- Returns:
- the DockerTaskStep object itself.
-
target
public String target()
Get the target property: The name of the target build stage for the docker build.- Returns:
- the target value.
-
withTarget
public DockerTaskStep withTarget(String target)
Set the target property: The name of the target build stage for the docker build.- Parameters:
target- the target value to set.- Returns:
- the DockerTaskStep object itself.
-
arguments
public List<Argument> arguments()
Get the arguments property: The collection of override arguments to be used when executing this build step.- Returns:
- the arguments value.
-
withArguments
public DockerTaskStep withArguments(List<Argument> arguments)
Set the arguments property: The collection of override arguments to be used when executing this build step.- Parameters:
arguments- the arguments value to set.- Returns:
- the DockerTaskStep object itself.
-
withContextPath
public DockerTaskStep withContextPath(String contextPath)
Set the contextPath property: The URL(absolute or relative) of the source context for the task step.- Overrides:
withContextPathin classTaskStepProperties- Parameters:
contextPath- the contextPath value to set.- Returns:
- the TaskStepProperties object itself.
-
withContextAccessToken
public DockerTaskStep withContextAccessToken(String contextAccessToken)
Set the contextAccessToken property: The token (git PAT or SAS token of storage account blob) associated with the context for a step.- Overrides:
withContextAccessTokenin classTaskStepProperties- Parameters:
contextAccessToken- the contextAccessToken value to set.- Returns:
- the TaskStepProperties object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classTaskStepProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-