Class TaskPropertiesUpdateParameters
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.fluent.models.TaskPropertiesUpdateParameters
-
public final class TaskPropertiesUpdateParameters extends Object
The properties for updating a task.
-
-
Constructor Summary
Constructors Constructor Description TaskPropertiesUpdateParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentPropertiesagentConfiguration()Get the agentConfiguration property: The machine configuration of the run agent.StringagentPoolName()Get the agentPoolName property: The dedicated agent pool for the task.Credentialscredentials()Get the credentials property: The parameters that describes a set of credentials that will be used when this run is invoked.StringlogTemplate()Get the logTemplate property: The template that describes the repository and tag information for run log artifact.PlatformUpdateParametersplatform()Get the platform property: The platform properties against which the run has to happen.TaskStatusstatus()Get the status property: The current status of task.TaskStepUpdateParametersstep()Get the step property: The properties for updating a task step.Integertimeout()Get the timeout property: Run timeout in seconds.TriggerUpdateParameterstrigger()Get the trigger property: The properties for updating trigger properties.voidvalidate()Validates the instance.TaskPropertiesUpdateParameterswithAgentConfiguration(AgentProperties agentConfiguration)Set the agentConfiguration property: The machine configuration of the run agent.TaskPropertiesUpdateParameterswithAgentPoolName(String agentPoolName)Set the agentPoolName property: The dedicated agent pool for the task.TaskPropertiesUpdateParameterswithCredentials(Credentials credentials)Set the credentials property: The parameters that describes a set of credentials that will be used when this run is invoked.TaskPropertiesUpdateParameterswithLogTemplate(String logTemplate)Set the logTemplate property: The template that describes the repository and tag information for run log artifact.TaskPropertiesUpdateParameterswithPlatform(PlatformUpdateParameters platform)Set the platform property: The platform properties against which the run has to happen.TaskPropertiesUpdateParameterswithStatus(TaskStatus status)Set the status property: The current status of task.TaskPropertiesUpdateParameterswithStep(TaskStepUpdateParameters step)Set the step property: The properties for updating a task step.TaskPropertiesUpdateParameterswithTimeout(Integer timeout)Set the timeout property: Run timeout in seconds.TaskPropertiesUpdateParameterswithTrigger(TriggerUpdateParameters trigger)Set the trigger property: The properties for updating trigger properties.
-
-
-
Method Detail
-
status
public TaskStatus status()
Get the status property: The current status of task.- Returns:
- the status value.
-
withStatus
public TaskPropertiesUpdateParameters withStatus(TaskStatus status)
Set the status property: The current status of task.- Parameters:
status- the status value to set.- Returns:
- the TaskPropertiesUpdateParameters object itself.
-
platform
public PlatformUpdateParameters platform()
Get the platform property: The platform properties against which the run has to happen.- Returns:
- the platform value.
-
withPlatform
public TaskPropertiesUpdateParameters 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 TaskPropertiesUpdateParameters object itself.
-
agentConfiguration
public AgentProperties agentConfiguration()
Get the agentConfiguration property: The machine configuration of the run agent.- Returns:
- the agentConfiguration value.
-
withAgentConfiguration
public TaskPropertiesUpdateParameters withAgentConfiguration(AgentProperties agentConfiguration)
Set the agentConfiguration property: The machine configuration of the run agent.- Parameters:
agentConfiguration- the agentConfiguration value to set.- Returns:
- the TaskPropertiesUpdateParameters object itself.
-
agentPoolName
public String agentPoolName()
Get the agentPoolName property: The dedicated agent pool for the task.- Returns:
- the agentPoolName value.
-
withAgentPoolName
public TaskPropertiesUpdateParameters withAgentPoolName(String agentPoolName)
Set the agentPoolName property: The dedicated agent pool for the task.- Parameters:
agentPoolName- the agentPoolName value to set.- Returns:
- the TaskPropertiesUpdateParameters object itself.
-
timeout
public Integer timeout()
Get the timeout property: Run timeout in seconds.- Returns:
- the timeout value.
-
withTimeout
public TaskPropertiesUpdateParameters withTimeout(Integer timeout)
Set the timeout property: Run timeout in seconds.- Parameters:
timeout- the timeout value to set.- Returns:
- the TaskPropertiesUpdateParameters object itself.
-
step
public TaskStepUpdateParameters step()
Get the step property: The properties for updating a task step.- Returns:
- the step value.
-
withStep
public TaskPropertiesUpdateParameters withStep(TaskStepUpdateParameters step)
Set the step property: The properties for updating a task step.- Parameters:
step- the step value to set.- Returns:
- the TaskPropertiesUpdateParameters object itself.
-
trigger
public TriggerUpdateParameters trigger()
Get the trigger property: The properties for updating trigger properties.- Returns:
- the trigger value.
-
withTrigger
public TaskPropertiesUpdateParameters withTrigger(TriggerUpdateParameters trigger)
Set the trigger property: The properties for updating trigger properties.- Parameters:
trigger- the trigger value to set.- Returns:
- the TaskPropertiesUpdateParameters object itself.
-
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.
-
withCredentials
public TaskPropertiesUpdateParameters 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 TaskPropertiesUpdateParameters object itself.
-
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.
-
withLogTemplate
public TaskPropertiesUpdateParameters 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 TaskPropertiesUpdateParameters object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-