Class TaskUpdateParameters
java.lang.Object
com.azure.resourcemanager.containerregistry.models.TaskUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TaskUpdateParameters>
public final class TaskUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<TaskUpdateParameters>
The parameters for updating a task.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the agentConfiguration property: The machine configuration of the run agent.Get the agentPoolName property: The dedicated agent pool for the task.Get the credentials property: The parameters that describes a set of credentials that will be used when this run is invoked.static TaskUpdateParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TaskUpdateParameters from the JsonReader.identity()Get the identity property: Identity for the resource.Get the logTemplate property: The template that describes the repository and tag information for run log artifact.platform()Get the platform property: The platform properties against which the run has to happen.status()Get the status property: The current status of task.step()Get the step property: The properties for updating a task step.tags()Get the tags property: The ARM resource tags.timeout()Get the timeout property: Run timeout in seconds.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) trigger()Get the trigger property: The properties for updating trigger properties.voidvalidate()Validates the instance.withAgentConfiguration(AgentProperties agentConfiguration) Set the agentConfiguration property: The machine configuration of the run agent.withAgentPoolName(String agentPoolName) Set the agentPoolName property: The dedicated agent pool for the 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.withIdentity(IdentityProperties identity) Set the identity property: Identity for the resource.withLogTemplate(String logTemplate) Set the logTemplate property: The template that describes the repository and tag information for run log artifact.withPlatform(PlatformUpdateParameters platform) Set the platform property: The platform properties against which the run has to happen.withStatus(TaskStatus status) Set the status property: The current status of task.Set the step property: The properties for updating a task step.Set the tags property: The ARM resource tags.withTimeout(Integer timeout) Set the timeout property: Run timeout in seconds.withTrigger(TriggerUpdateParameters trigger) Set the trigger property: The properties for updating trigger properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TaskUpdateParameters
public TaskUpdateParameters()Creates an instance of TaskUpdateParameters class.
-
-
Method Details
-
identity
Get the identity property: Identity for the resource.- Returns:
- the identity value.
-
withIdentity
Set the identity property: Identity for the resource.- Parameters:
identity- the identity value to set.- Returns:
- the TaskUpdateParameters object itself.
-
tags
Get the tags property: The ARM resource tags.- Returns:
- the tags value.
-
withTags
Set the tags property: The ARM resource tags.- Parameters:
tags- the tags value to set.- Returns:
- the TaskUpdateParameters object itself.
-
status
Get the status property: The current status of task.- Returns:
- the status value.
-
withStatus
Set the status property: The current status of task.- Parameters:
status- the status value to set.- Returns:
- the TaskUpdateParameters object itself.
-
platform
Get the platform property: The platform properties against which the run has to happen.- Returns:
- the platform value.
-
withPlatform
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.
-
agentConfiguration
Get the agentConfiguration property: The machine configuration of the run agent.- Returns:
- the agentConfiguration value.
-
withAgentConfiguration
Set the agentConfiguration property: The machine configuration of the run agent.- Parameters:
agentConfiguration- the agentConfiguration value to set.- Returns:
- the TaskUpdateParameters object itself.
-
agentPoolName
Get the agentPoolName property: The dedicated agent pool for the task.- Returns:
- the agentPoolName value.
-
withAgentPoolName
Set the agentPoolName property: The dedicated agent pool for the task.- Parameters:
agentPoolName- the agentPoolName value to set.- Returns:
- the TaskUpdateParameters object itself.
-
timeout
Get the timeout property: Run timeout in seconds.- Returns:
- the timeout value.
-
withTimeout
Set the timeout property: Run timeout in seconds.- Parameters:
timeout- the timeout value to set.- Returns:
- the TaskUpdateParameters object itself.
-
step
Get the step property: The properties for updating a task step.- Returns:
- the step value.
-
withStep
Set the step property: The properties for updating a task step.- Parameters:
step- the step value to set.- Returns:
- the TaskUpdateParameters object itself.
-
trigger
Get the trigger property: The properties for updating trigger properties.- Returns:
- the trigger value.
-
withTrigger
Set the trigger property: The properties for updating trigger properties.- Parameters:
trigger- the trigger value to set.- Returns:
- the TaskUpdateParameters object itself.
-
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
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.
-
logTemplate
Get the logTemplate property: The template that describes the repository and tag information for run log artifact.- Returns:
- the logTemplate value.
-
withLogTemplate
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TaskUpdateParameters>- Throws:
IOException
-
fromJson
public static TaskUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-