Partager via


TaskUpdateParameters Class

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

Implements

public final class TaskUpdateParameters
implements JsonSerializable<TaskUpdateParameters>

The parameters for updating a task.

Constructor Summary

Constructor Description
TaskUpdateParameters()

Creates an instance of TaskUpdateParameters class.

Method Summary

Modifier and Type Method and Description
AgentProperties agentConfiguration()

Get the agentConfiguration property: The machine configuration of the run agent.

String agentPoolName()

Get the agentPoolName property: The dedicated agent pool for the task.

Credentials credentials()

Get the credentials property: The parameters that describes a set of credentials that will be used when this run is invoked.

static TaskUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of TaskUpdateParameters from the JsonReader.

IdentityProperties identity()

Get the identity property: Identity for the resource.

String logTemplate()

Get the logTemplate property: The template that describes the repository and tag information for run log artifact.

PlatformUpdateParameters platform()

Get the platform property: The platform properties against which the run has to happen.

TaskStatus status()

Get the status property: The current status of task.

TaskStepUpdateParameters step()

Get the step property: The properties for updating a task step.

Map<String,String> tags()

Get the tags property: The ARM resource tags.

Integer timeout()

Get the timeout property: Run timeout in seconds.

JsonWriter toJson(JsonWriter jsonWriter)
TriggerUpdateParameters trigger()

Get the trigger property: The properties for updating trigger properties.

void validate()

Validates the instance.

TaskUpdateParameters withAgentConfiguration(AgentProperties agentConfiguration)

Set the agentConfiguration property: The machine configuration of the run agent.

TaskUpdateParameters withAgentPoolName(String agentPoolName)

Set the agentPoolName property: The dedicated agent pool for the task.

TaskUpdateParameters withCredentials(Credentials credentials)

Set the credentials property: The parameters that describes a set of credentials that will be used when this run is invoked.

TaskUpdateParameters withIdentity(IdentityProperties identity)

Set the identity property: Identity for the resource.

TaskUpdateParameters withLogTemplate(String logTemplate)

Set the logTemplate property: The template that describes the repository and tag information for run log artifact.

TaskUpdateParameters withPlatform(PlatformUpdateParameters platform)

Set the platform property: The platform properties against which the run has to happen.

TaskUpdateParameters withStatus(TaskStatus status)

Set the status property: The current status of task.

TaskUpdateParameters withStep(TaskStepUpdateParameters step)

Set the step property: The properties for updating a task step.

TaskUpdateParameters withTags(Map<String,String> tags)

Set the tags property: The ARM resource tags.

TaskUpdateParameters withTimeout(Integer timeout)

Set the timeout property: Run timeout in seconds.

TaskUpdateParameters withTrigger(TriggerUpdateParameters trigger)

Set the trigger property: The properties for updating trigger properties.

Methods inherited from java.lang.Object

Constructor Details

TaskUpdateParameters

public TaskUpdateParameters()

Creates an instance of TaskUpdateParameters class.

Method Details

agentConfiguration

public AgentProperties agentConfiguration()

Get the agentConfiguration property: The machine configuration of the run agent.

Returns:

the agentConfiguration value.

agentPoolName

public String agentPoolName()

Get the agentPoolName property: The dedicated agent pool for the task.

Returns:

the agentPoolName value.

credentials

public Credentials credentials()

Get the credentials property: The parameters that describes a set of credentials that will be used when this run is invoked.

Returns:

the credentials value.

fromJson

public static TaskUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of TaskUpdateParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TaskUpdateParameters 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 TaskUpdateParameters.

identity

public IdentityProperties identity()

Get the identity property: Identity for the resource.

Returns:

the identity value.

logTemplate

public String logTemplate()

Get the logTemplate property: The template that describes the repository and tag information for run log artifact.

Returns:

the logTemplate value.

platform

public PlatformUpdateParameters platform()

Get the platform property: The platform properties against which the run has to happen.

Returns:

the platform value.

status

public TaskStatus status()

Get the status property: The current status of task.

Returns:

the status value.

step

public TaskStepUpdateParameters step()

Get the step property: The properties for updating a task step.

Returns:

the step value.

tags

public Map<String,String> tags()

Get the tags property: The ARM resource tags.

Returns:

the tags value.

timeout

public Integer timeout()

Get the timeout property: Run timeout in seconds.

Returns:

the timeout value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

trigger

public TriggerUpdateParameters trigger()

Get the trigger property: The properties for updating trigger properties.

Returns:

the trigger value.

validate

public void validate()

Validates the instance.

withAgentConfiguration

public TaskUpdateParameters withAgentConfiguration(AgentProperties agentConfiguration)

Set the agentConfiguration property: The machine configuration of the run agent.

Parameters:

agentConfiguration - the agentConfiguration value to set.

Returns:

the TaskUpdateParameters object itself.

withAgentPoolName

public TaskUpdateParameters withAgentPoolName(String agentPoolName)

Set the agentPoolName property: The dedicated agent pool for the task.

Parameters:

agentPoolName - the agentPoolName value to set.

Returns:

the TaskUpdateParameters object itself.

withCredentials

public TaskUpdateParameters withCredentials(Credentials credentials)

Set the credentials property: The parameters that describes a set of credentials that will be used when this run is invoked.

Parameters:

credentials - the credentials value to set.

Returns:

the TaskUpdateParameters object itself.

withIdentity

public TaskUpdateParameters withIdentity(IdentityProperties identity)

Set the identity property: Identity for the resource.

Parameters:

identity - the identity value to set.

Returns:

the TaskUpdateParameters object itself.

withLogTemplate

public TaskUpdateParameters withLogTemplate(String logTemplate)

Set the logTemplate property: The template that describes the repository and tag information for run log artifact.

Parameters:

logTemplate - the logTemplate value to set.

Returns:

the TaskUpdateParameters object itself.

withPlatform

public TaskUpdateParameters withPlatform(PlatformUpdateParameters platform)

Set the platform property: The platform properties against which the run has to happen.

Parameters:

platform - the platform value to set.

Returns:

the TaskUpdateParameters object itself.

withStatus

public TaskUpdateParameters withStatus(TaskStatus status)

Set the status property: The current status of task.

Parameters:

status - the status value to set.

Returns:

the TaskUpdateParameters object itself.

withStep

public TaskUpdateParameters withStep(TaskStepUpdateParameters step)

Set the step property: The properties for updating a task step.

Parameters:

step - the step value to set.

Returns:

the TaskUpdateParameters object itself.

withTags

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

Set the tags property: The ARM resource tags.

Parameters:

tags - the tags value to set.

Returns:

the TaskUpdateParameters object itself.

withTimeout

public TaskUpdateParameters withTimeout(Integer timeout)

Set the timeout property: Run timeout in seconds.

Parameters:

timeout - the timeout value to set.

Returns:

the TaskUpdateParameters object itself.

withTrigger

public TaskUpdateParameters withTrigger(TriggerUpdateParameters trigger)

Set the trigger property: The properties for updating trigger properties.

Parameters:

trigger - the trigger value to set.

Returns:

the TaskUpdateParameters object itself.

Applies to