TaskPropertiesUpdateParameters Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. fluent. models. TaskPropertiesUpdateParameters
- com.
Implements
public final class TaskPropertiesUpdateParameters
implements JsonSerializable<TaskPropertiesUpdateParameters>
The properties for updating a task.
Constructor Summary
| Constructor | Description |
|---|---|
| TaskPropertiesUpdateParameters() |
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 |
| 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. |
| 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 |
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 |
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
TaskPropertiesUpdateParameters
public TaskPropertiesUpdateParameters()
Creates an instance of TaskPropertiesUpdateParameters 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 TaskPropertiesUpdateParameters fromJson(JsonReader jsonReader)
Reads an instance of TaskPropertiesUpdateParameters from the JsonReader.
Parameters:
Returns:
Throws:
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:
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 TaskPropertiesUpdateParameters withAgentConfiguration(AgentProperties agentConfiguration)
Set the agentConfiguration property: The machine configuration of the run agent.
Parameters:
Returns:
withAgentPoolName
public TaskPropertiesUpdateParameters withAgentPoolName(String agentPoolName)
Set the agentPoolName property: The dedicated agent pool for the task.
Parameters:
Returns:
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:
Returns:
withLogTemplate
public TaskPropertiesUpdateParameters withLogTemplate(String logTemplate)
Set the logTemplate property: The template that describes the repository and tag information for run log artifact.
Parameters:
Returns:
withPlatform
public TaskPropertiesUpdateParameters withPlatform(PlatformUpdateParameters platform)
Set the platform property: The platform properties against which the run has to happen.
Parameters:
Returns:
withStatus
public TaskPropertiesUpdateParameters withStatus(TaskStatus status)
Set the status property: The current status of task.
Parameters:
Returns:
withStep
public TaskPropertiesUpdateParameters withStep(TaskStepUpdateParameters step)
Set the step property: The properties for updating a task step.
Parameters:
Returns:
withTimeout
public TaskPropertiesUpdateParameters withTimeout(Integer timeout)
Set the timeout property: Run timeout in seconds.
Parameters:
Returns:
withTrigger
public TaskPropertiesUpdateParameters withTrigger(TriggerUpdateParameters trigger)
Set the trigger property: The properties for updating trigger properties.
Parameters:
Returns: