Class TaskRunUpdateParameters
java.lang.Object
com.azure.resourcemanager.containerregistry.models.TaskRunUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TaskRunUpdateParameters>
public final class TaskRunUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<TaskRunUpdateParameters>
The parameters for updating a task run.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of TaskRunUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the forceUpdateTag property: How the run should be forced to rerun even if the run request configuration has not changed.static TaskRunUpdateParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TaskRunUpdateParameters from the JsonReader.identity()Get the identity property: Identity for the resource.location()Get the location property: The location of the resource.Get the runRequest property: The request (parameters) for the new run.tags()Get the tags property: The ARM resource tags.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withForceUpdateTag(String forceUpdateTag) Set the forceUpdateTag property: How the run should be forced to rerun even if the run request configuration has not changed.withIdentity(IdentityProperties identity) Set the identity property: Identity for the resource.withLocation(String location) Set the location property: The location of the resource.withRunRequest(RunRequest runRequest) Set the runRequest property: The request (parameters) for the new run.Set the tags property: The ARM resource tags.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
-
TaskRunUpdateParameters
public TaskRunUpdateParameters()Creates an instance of TaskRunUpdateParameters class.
-
-
Method Details
-
identity
Get the identity property: Identity for the resource.- Returns:
- the identity value.
-
withIdentity
Set the identity property: Identity for the resource.- Parameters:
identity- the identity value to set.- Returns:
- the TaskRunUpdateParameters object itself.
-
location
Get the location property: The location of the resource.- Returns:
- the location value.
-
withLocation
Set the location property: The location of the resource.- Parameters:
location- the location value to set.- Returns:
- the TaskRunUpdateParameters object itself.
-
tags
Get the tags property: The ARM resource tags.- Returns:
- the tags value.
-
withTags
Set the tags property: The ARM resource tags.- Parameters:
tags- the tags value to set.- Returns:
- the TaskRunUpdateParameters object itself.
-
runRequest
Get the runRequest property: The request (parameters) for the new run.- Returns:
- the runRequest value.
-
withRunRequest
Set the runRequest property: The request (parameters) for the new run.- Parameters:
runRequest- the runRequest value to set.- Returns:
- the TaskRunUpdateParameters object itself.
-
forceUpdateTag
Get the forceUpdateTag property: How the run should be forced to rerun even if the run request configuration has not changed.- Returns:
- the forceUpdateTag value.
-
withForceUpdateTag
Set the forceUpdateTag property: How the run should be forced to rerun even if the run request configuration has not changed.- Parameters:
forceUpdateTag- the forceUpdateTag value to set.- Returns:
- the TaskRunUpdateParameters 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<TaskRunUpdateParameters>- Throws:
IOException
-
fromJson
public static TaskRunUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TaskRunUpdateParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TaskRunUpdateParameters 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 TaskRunUpdateParameters.
-