Partager via


TaskRunUpdateParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.TaskRunUpdateParameters

Implements

public final class TaskRunUpdateParameters
implements JsonSerializable<TaskRunUpdateParameters>

The parameters for updating a task run.

Constructor Summary

Constructor Description
TaskRunUpdateParameters()

Creates an instance of TaskRunUpdateParameters class.

Method Summary

Modifier and Type Method and Description
String forceUpdateTag()

Get the forceUpdateTag property: How the run should be forced to rerun even if the run request configuration has not changed.

static TaskRunUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of TaskRunUpdateParameters from the JsonReader.

IdentityProperties identity()

Get the identity property: Identity for the resource.

String location()

Get the location property: The location of the resource.

RunRequest runRequest()

Get the runRequest property: The request (parameters) for the new run.

Map<String,String> tags()

Get the tags property: The ARM resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TaskRunUpdateParameters withForceUpdateTag(String forceUpdateTag)

Set the forceUpdateTag property: How the run should be forced to rerun even if the run request configuration has not changed.

TaskRunUpdateParameters withIdentity(IdentityProperties identity)

Set the identity property: Identity for the resource.

TaskRunUpdateParameters withLocation(String location)

Set the location property: The location of the resource.

TaskRunUpdateParameters withRunRequest(RunRequest runRequest)

Set the runRequest property: The request (parameters) for the new run.

TaskRunUpdateParameters withTags(Map<String,String> tags)

Set the tags property: The ARM resource tags.

Methods inherited from java.lang.Object

Constructor Details

TaskRunUpdateParameters

public TaskRunUpdateParameters()

Creates an instance of TaskRunUpdateParameters class.

Method Details

forceUpdateTag

public String 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.

fromJson

public static TaskRunUpdateParameters fromJson(JsonReader jsonReader)

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.

identity

public IdentityProperties identity()

Get the identity property: Identity for the resource.

Returns:

the identity value.

location

public String location()

Get the location property: The location of the resource.

Returns:

the location value.

runRequest

public RunRequest runRequest()

Get the runRequest property: The request (parameters) for the new run.

Returns:

the runRequest value.

tags

public Map<String,String> tags()

Get the tags property: The ARM resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withForceUpdateTag

public TaskRunUpdateParameters withForceUpdateTag(String forceUpdateTag)

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.

withIdentity

public TaskRunUpdateParameters withIdentity(IdentityProperties identity)

Set the identity property: Identity for the resource.

Parameters:

identity - the identity value to set.

Returns:

the TaskRunUpdateParameters object itself.

withLocation

public TaskRunUpdateParameters withLocation(String location)

Set the location property: The location of the resource.

Parameters:

location - the location value to set.

Returns:

the TaskRunUpdateParameters object itself.

withRunRequest

public TaskRunUpdateParameters withRunRequest(RunRequest runRequest)

Set the runRequest property: The request (parameters) for the new run.

Parameters:

runRequest - the runRequest value to set.

Returns:

the TaskRunUpdateParameters object itself.

withTags

public TaskRunUpdateParameters withTags(Map<String,String> tags)

Set the tags property: The ARM resource tags.

Parameters:

tags - the tags value to set.

Returns:

the TaskRunUpdateParameters object itself.

Applies to