Class FileTaskStepUpdateParameters
java.lang.Object
com.azure.resourcemanager.containerregistry.models.TaskStepUpdateParameters
com.azure.resourcemanager.containerregistry.models.FileTaskStepUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TaskStepUpdateParameters>
The properties of updating a task step.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FileTaskStepUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FileTaskStepUpdateParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FileTaskStepUpdateParameters from the JsonReader.Get the taskFilePath property: The task template/definition file path relative to the source context.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the step.voidvalidate()Validates the instance.values()Get the values property: The collection of overridable values that can be passed when running a task.Get the valuesFilePath property: The values/parameters file path relative to the source context.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.withTaskFilePath(String taskFilePath) Set the taskFilePath property: The task template/definition file path relative to the source context.withValues(List<SetValue> values) Set the values property: The collection of overridable values that can be passed when running a task.withValuesFilePath(String valuesFilePath) Set the valuesFilePath property: The values/parameters file path relative to the source context.Methods inherited from class TaskStepUpdateParameters
contextAccessToken, contextPathMethods inherited from class 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
-
FileTaskStepUpdateParameters
public FileTaskStepUpdateParameters()Creates an instance of FileTaskStepUpdateParameters class.
-
-
Method Details
-
type
Get the type property: The type of the step.- Overrides:
typein classTaskStepUpdateParameters- Returns:
- the type value.
-
taskFilePath
Get the taskFilePath property: The task template/definition file path relative to the source context.- Returns:
- the taskFilePath value.
-
withTaskFilePath
Set the taskFilePath property: The task template/definition file path relative to the source context.- Parameters:
taskFilePath- the taskFilePath value to set.- Returns:
- the FileTaskStepUpdateParameters object itself.
-
valuesFilePath
Get the valuesFilePath property: The values/parameters file path relative to the source context.- Returns:
- the valuesFilePath value.
-
withValuesFilePath
Set the valuesFilePath property: The values/parameters file path relative to the source context.- Parameters:
valuesFilePath- the valuesFilePath value to set.- Returns:
- the FileTaskStepUpdateParameters object itself.
-
values
-
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 FileTaskStepUpdateParameters 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 FileTaskStepUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FileTaskStepUpdateParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FileTaskStepUpdateParameters 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 FileTaskStepUpdateParameters.
-