Class OverrideTaskStepProperties
java.lang.Object
com.azure.resourcemanager.containerregistry.models.OverrideTaskStepProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OverrideTaskStepProperties>
public final class OverrideTaskStepProperties
extends Object
implements com.azure.json.JsonSerializable<OverrideTaskStepProperties>
The OverrideTaskStepProperties model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OverrideTaskStepProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the arguments property: Gets or sets the collection of override arguments to be used when executing a build step.Get the contextPath property: The source context against which run has to be queued.file()Get the file property: The file against which run has to be queued.static OverrideTaskStepPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OverrideTaskStepProperties from the JsonReader.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) Get the updateTriggerToken property: Base64 encoded update trigger token that will be attached with the base image trigger webhook.voidvalidate()Validates the instance.values()Get the values property: The collection of overridable values that can be passed when running a Task.withArguments(List<Argument> arguments) Set the arguments property: Gets or sets the collection of override arguments to be used when executing a build step.withContextPath(String contextPath) Set the contextPath property: The source context against which run has to be queued.Set the file property: The file against which run has to be queued.withTarget(String target) Set the target property: The name of the target build stage for the docker build.withUpdateTriggerToken(String updateTriggerToken) Set the updateTriggerToken property: Base64 encoded update trigger token that will be attached with the base image trigger webhook.withValues(List<SetValue> values) Set the values property: The collection of overridable values that can be passed when running a Task.Methods 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
-
OverrideTaskStepProperties
public OverrideTaskStepProperties()Creates an instance of OverrideTaskStepProperties class.
-
-
Method Details
-
contextPath
Get the contextPath property: The source context against which run has to be queued.- Returns:
- the contextPath value.
-
withContextPath
Set the contextPath property: The source context against which run has to be queued.- Parameters:
contextPath- the contextPath value to set.- Returns:
- the OverrideTaskStepProperties object itself.
-
file
Get the file property: The file against which run has to be queued.- Returns:
- the file value.
-
withFile
Set the file property: The file against which run has to be queued.- Parameters:
file- the file value to set.- Returns:
- the OverrideTaskStepProperties object itself.
-
arguments
Get the arguments property: Gets or sets the collection of override arguments to be used when executing a build step.- Returns:
- the arguments value.
-
withArguments
Set the arguments property: Gets or sets the collection of override arguments to be used when executing a build step.- Parameters:
arguments- the arguments value to set.- Returns:
- the OverrideTaskStepProperties 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 OverrideTaskStepProperties object itself.
-
values
Get the values property: The collection of overridable values that can be passed when running a Task.- Returns:
- the values value.
-
withValues
Set the values property: The collection of overridable values that can be passed when running a Task.- Parameters:
values- the values value to set.- Returns:
- the OverrideTaskStepProperties object itself.
-
updateTriggerToken
Get the updateTriggerToken property: Base64 encoded update trigger token that will be attached with the base image trigger webhook.- Returns:
- the updateTriggerToken value.
-
withUpdateTriggerToken
Set the updateTriggerToken property: Base64 encoded update trigger token that will be attached with the base image trigger webhook.- Parameters:
updateTriggerToken- the updateTriggerToken value to set.- Returns:
- the OverrideTaskStepProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OverrideTaskStepProperties>- Throws:
IOException
-
fromJson
public static OverrideTaskStepProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OverrideTaskStepProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OverrideTaskStepProperties 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 OverrideTaskStepProperties.
-