Class TaskInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.containerregistry.fluent.models.TaskInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class TaskInner
extends com.azure.core.management.Resource
The task that has the ARM resource and task properties.
The task will have all information to schedule a run against it.
-
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 creationDate property: The creation date of task.Get the credentials property: The properties that describes a set of credentials that will be used when this run is invoked.identity()Get the identity property: Identity for the resource.Get the isSystemTask property: The value of this property indicates whether the task resource is system task or not.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.Get the provisioningState property: The provisioning state of the task.status()Get the status property: The current status of task.step()Get the step property: The properties of a task step.com.azure.core.management.SystemDataGet the systemData property: Metadata pertaining to creation and last modification of the resource.timeout()Get the timeout property: Run timeout in seconds.trigger()Get the trigger property: The properties that describe all triggers for the task.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 properties 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.withIsSystemTask(Boolean isSystemTask) Set the isSystemTask property: The value of this property indicates whether the task resource is system task or not.withLocation(String location) withLogTemplate(String logTemplate) Set the logTemplate property: The template that describes the repository and tag information for run log artifact.withPlatform(PlatformProperties 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.withStep(TaskStepProperties step) Set the step property: The properties of a task step.withTimeout(Integer timeout) Set the timeout property: Run timeout in seconds.withTrigger(TriggerProperties trigger) Set the trigger property: The properties that describe all triggers for the task.Methods inherited from class com.azure.core.management.Resource
fromJson, location, tags, toJsonMethods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
TaskInner
public TaskInner()Creates an instance of TaskInner 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 TaskInner object itself.
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Metadata pertaining to creation and last modification of the resource.- Returns:
- the systemData value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
provisioningState
Get the provisioningState property: The provisioning state of the task.- Returns:
- the provisioningState value.
-
creationDate
Get the creationDate property: The creation date of task.- Returns:
- the creationDate value.
-
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 TaskInner 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 TaskInner 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 TaskInner 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 TaskInner 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 TaskInner object itself.
-
step
Get the step property: The properties of a task step.- Returns:
- the step value.
-
withStep
Set the step property: The properties of a task step.- Parameters:
step- the step value to set.- Returns:
- the TaskInner object itself.
-
trigger
Get the trigger property: The properties that describe all triggers for the task.- Returns:
- the trigger value.
-
withTrigger
Set the trigger property: The properties that describe all triggers for the task.- Parameters:
trigger- the trigger value to set.- Returns:
- the TaskInner object itself.
-
credentials
Get the credentials property: The properties 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 properties that describes a set of credentials that will be used when this run is invoked.- Parameters:
credentials- the credentials value to set.- Returns:
- the TaskInner 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 TaskInner object itself.
-
isSystemTask
Get the isSystemTask property: The value of this property indicates whether the task resource is system task or not.- Returns:
- the isSystemTask value.
-
withIsSystemTask
Set the isSystemTask property: The value of this property indicates whether the task resource is system task or not.- Parameters:
isSystemTask- the isSystemTask value to set.- Returns:
- the TaskInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-