Class DockerBuildStepUpdateParameters
java.lang.Object
com.azure.resourcemanager.containerregistry.models.TaskStepUpdateParameters
com.azure.resourcemanager.containerregistry.models.DockerBuildStepUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TaskStepUpdateParameters>
The properties for updating a docker build step.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DockerBuildStepUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the arguments property: The collection of override arguments to be used when executing this build step.Get the dockerFilePath property: The Docker file path relative to the source context.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DockerBuildStepUpdateParameters from the JsonReader.Get the imageNames property: The fully qualified image names including the repository and tag.Get the isPushEnabled property: The value of this property indicates whether the image built should be pushed to the registry or not.noCache()Get the noCache property: The value of this property indicates whether the image cache is enabled or not.target()Get the target property: The name of the target build stage for the docker build.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the step.voidvalidate()Validates the instance.withArguments(List<Argument> arguments) Set the arguments property: The collection of override arguments to be used when executing this build step.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.withContextPath(String contextPath) Set the contextPath property: The URL(absolute or relative) of the source context for the task step.withDockerFilePath(String dockerFilePath) Set the dockerFilePath property: The Docker file path relative to the source context.withImageNames(List<String> imageNames) Set the imageNames property: The fully qualified image names including the repository and tag.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.withNoCache(Boolean noCache) Set the noCache property: The value of this property indicates whether the image cache is enabled or not.withTarget(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.TaskStepUpdateParameters
contextAccessToken, contextPathMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DockerBuildStepUpdateParameters
public DockerBuildStepUpdateParameters()Creates an instance of DockerBuildStepUpdateParameters class.
-
-
Method Details
-
type
Get the type property: The type of the step.- Overrides:
typein classTaskStepUpdateParameters- Returns:
- the type value.
-
imageNames
Get the imageNames property: The fully qualified image names including the repository and tag.- Returns:
- the imageNames value.
-
withImageNames
Set the imageNames property: The fully qualified image names including the repository and tag.- Parameters:
imageNames- the imageNames value to set.- Returns:
- the DockerBuildStepUpdateParameters object itself.
-
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
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 DockerBuildStepUpdateParameters object itself.
-
noCache
Get the noCache property: The value of this property indicates whether the image cache is enabled or not.- Returns:
- the noCache value.
-
withNoCache
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 DockerBuildStepUpdateParameters object itself.
-
dockerFilePath
Get the dockerFilePath property: The Docker file path relative to the source context.- Returns:
- the dockerFilePath value.
-
withDockerFilePath
Set the dockerFilePath property: The Docker file path relative to the source context.- Parameters:
dockerFilePath- the dockerFilePath value to set.- Returns:
- the DockerBuildStepUpdateParameters object itself.
-
arguments
Get the arguments property: The collection of override arguments to be used when executing this build step.- Returns:
- the arguments value.
-
withArguments
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 DockerBuildStepUpdateParameters object itself.
-
target
Get the target property: The name of the target build stage for the docker build.- Returns:
- the target value.
-
withTarget
Set the target property: The name of the target build stage for the docker build.- Parameters:
target- the target value to set.- Returns:
- the DockerBuildStepUpdateParameters object itself.
-
withContextPath
Set the contextPath property: The URL(absolute or relative) of the source context for the task step.- Overrides:
withContextPathin classTaskStepUpdateParameters- Parameters:
contextPath- the contextPath value to set.- Returns:
- the TaskStepUpdateParameters object itself.
-
withContextAccessToken
Set the contextAccessToken property: The token (git PAT or SAS token of storage account blob) associated with the context for a step.- Overrides:
withContextAccessTokenin classTaskStepUpdateParameters- Parameters:
contextAccessToken- the contextAccessToken value to set.- Returns:
- the TaskStepUpdateParameters object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classTaskStepUpdateParameters- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TaskStepUpdateParameters>- Overrides:
toJsonin classTaskStepUpdateParameters- Throws:
IOException
-
fromJson
public static DockerBuildStepUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DockerBuildStepUpdateParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DockerBuildStepUpdateParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the DockerBuildStepUpdateParameters.
-