TaskUpdateParameters Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. TaskUpdateParameters
- com.
Implements
public final class TaskUpdateParameters
implements JsonSerializable<TaskUpdateParameters>
The parameters for updating a task.
Constructor Summary
| Constructor | Description |
|---|---|
| TaskUpdateParameters() |
Creates an instance of Task |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Agent |
agentConfiguration()
Get the agent |
| String |
agentPoolName()
Get the agent |
| Credentials |
credentials()
Get the credentials property: The parameters that describes a set of credentials that will be used when this run is invoked. |
|
static
Task |
fromJson(JsonReader jsonReader)
Reads an instance of Task |
|
Identity |
identity()
Get the identity property: Identity for the resource. |
| String |
logTemplate()
Get the log |
|
Platform |
platform()
Get the platform property: The platform properties against which the run has to happen. |
|
Task |
status()
Get the status property: The current status of task. |
|
Task |
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. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Trigger |
trigger()
Get the trigger property: The properties for updating trigger properties. |
| void |
validate()
Validates the instance. |
|
Task |
withAgentConfiguration(AgentProperties agentConfiguration)
Set the agent |
|
Task |
withAgentPoolName(String agentPoolName)
Set the agent |
|
Task |
withCredentials(Credentials credentials)
Set the credentials property: The parameters that describes a set of credentials that will be used when this run is invoked. |
|
Task |
withIdentity(IdentityProperties identity)
Set the identity property: Identity for the resource. |
|
Task |
withLogTemplate(String logTemplate)
Set the log |
|
Task |
withPlatform(PlatformUpdateParameters platform)
Set the platform property: The platform properties against which the run has to happen. |
|
Task |
withStatus(TaskStatus status)
Set the status property: The current status of task. |
|
Task |
withStep(TaskStepUpdateParameters step)
Set the step property: The properties for updating a task step. |
|
Task |
withTags(Map<String,String> tags)
Set the tags property: The ARM resource tags. |
|
Task |
withTimeout(Integer timeout)
Set the timeout property: Run timeout in seconds. |
|
Task |
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:
agentPoolName
public String agentPoolName()
Get the agentPoolName property: The dedicated agent pool for the task.
Returns:
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:
fromJson
public static TaskUpdateParameters fromJson(JsonReader jsonReader)
Reads an instance of TaskUpdateParameters from the JsonReader.
Parameters:
Returns:
Throws:
identity
public IdentityProperties identity()
Get the identity property: Identity for the resource.
Returns:
logTemplate
public String logTemplate()
Get the logTemplate property: The template that describes the repository and tag information for run log artifact.
Returns:
platform
public PlatformUpdateParameters platform()
Get the platform property: The platform properties against which the run has to happen.
Returns:
status
public TaskStatus status()
Get the status property: The current status of task.
Returns:
step
public TaskStepUpdateParameters step()
Get the step property: The properties for updating a task step.
Returns:
tags
public Map<String,String> tags()
Get the tags property: The ARM resource tags.
Returns:
timeout
public Integer timeout()
Get the timeout property: Run timeout in seconds.
Returns:
toJson
trigger
public TriggerUpdateParameters trigger()
Get the trigger property: The properties for updating trigger properties.
Returns:
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:
Returns:
withAgentPoolName
public TaskUpdateParameters withAgentPoolName(String agentPoolName)
Set the agentPoolName property: The dedicated agent pool for the task.
Parameters:
Returns:
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:
Returns:
withIdentity
public TaskUpdateParameters withIdentity(IdentityProperties identity)
Set the identity property: Identity for the resource.
Parameters:
Returns:
withLogTemplate
public TaskUpdateParameters withLogTemplate(String logTemplate)
Set the logTemplate property: The template that describes the repository and tag information for run log artifact.
Parameters:
Returns:
withPlatform
public TaskUpdateParameters withPlatform(PlatformUpdateParameters platform)
Set the platform property: The platform properties against which the run has to happen.
Parameters:
Returns:
withStatus
public TaskUpdateParameters withStatus(TaskStatus status)
Set the status property: The current status of task.
Parameters:
Returns:
withStep
public TaskUpdateParameters withStep(TaskStepUpdateParameters step)
Set the step property: The properties for updating a task step.
Parameters:
Returns:
withTags
public TaskUpdateParameters withTags(Map<String,String> tags)
Set the tags property: The ARM resource tags.
Parameters:
Returns:
withTimeout
public TaskUpdateParameters withTimeout(Integer timeout)
Set the timeout property: Run timeout in seconds.
Parameters:
Returns:
withTrigger
public TaskUpdateParameters withTrigger(TriggerUpdateParameters trigger)
Set the trigger property: The properties for updating trigger properties.
Parameters:
Returns: