TaskInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. containerregistry. fluent. models. TaskInner
- com.
- com.
- com.
public final class TaskInner
extends 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
Constructor | Description |
---|---|
TaskInner() |
Creates an instance of Task |
Method Summary
Modifier and Type | Method and Description |
---|---|
Agent |
agentConfiguration()
Get the agent |
String |
agentPoolName()
Get the agent |
Offset |
creationDate()
Get the creation |
Credentials |
credentials()
Get the credentials property: The properties 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 |
id()
Get the id property: Fully qualified resource Id for the resource. |
Identity |
identity()
Get the identity property: Identity for the resource. |
Boolean |
isSystemTask()
Get the is |
String |
logTemplate()
Get the log |
String |
name()
Get the name property: The name of the resource. |
Platform |
platform()
Get the platform property: The platform properties against which the run has to happen. |
Provisioning |
provisioningState()
Get the provisioning |
Task |
status()
Get the status property: The current status of task. |
Task |
step()
Get the step property: The properties of a task step. |
System |
systemData()
Get the system |
Integer |
timeout()
Get the timeout property: Run timeout in seconds. |
Json |
toJson(JsonWriter jsonWriter) |
Trigger |
trigger()
Get the trigger property: The properties that describe all triggers for the task. |
String |
type()
Get the type property: The type of the resource. |
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 properties 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 |
withIsSystemTask(Boolean isSystemTask)
Set the is |
Task |
withLocation(String location) |
Task |
withLogTemplate(String logTemplate)
Set the log |
Task |
withPlatform(PlatformProperties 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(TaskStepProperties step)
Set the step property: The properties of a task step. |
Task |
withTags(Map<String,String> tags) |
Task |
withTimeout(Integer timeout)
Set the timeout property: Run timeout in seconds. |
Task |
withTrigger(TriggerProperties trigger)
Set the trigger property: The properties that describe all triggers for the task. |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
TaskInner
public TaskInner()
Creates an instance of TaskInner 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:
creationDate
public OffsetDateTime creationDate()
Get the creationDate property: The creation date of task.
Returns:
credentials
public Credentials credentials()
Get the credentials property: The properties that describes a set of credentials that will be used when this run is invoked.
Returns:
fromJson
public static TaskInner fromJson(JsonReader jsonReader)
Reads an instance of TaskInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
TaskInner.id()Returns:
identity
public IdentityProperties identity()
Get the identity property: Identity for the resource.
Returns:
isSystemTask
public Boolean isSystemTask()
Get the isSystemTask property: The value of this property indicates whether the task resource is system task or not.
Returns:
logTemplate
public String logTemplate()
Get the logTemplate property: The template that describes the repository and tag information for run log artifact.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
TaskInner.name()Returns:
platform
public PlatformProperties platform()
Get the platform property: The platform properties against which the run has to happen.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the task.
Returns:
status
public TaskStatus status()
Get the status property: The current status of task.
Returns:
step
public TaskStepProperties step()
Get the step property: The properties of a task step.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Metadata pertaining to creation and last modification of the resource.
Returns:
timeout
public Integer timeout()
Get the timeout property: Run timeout in seconds.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
TaskInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
trigger
public TriggerProperties trigger()
Get the trigger property: The properties that describe all triggers for the task.
Returns:
type
public String type()
Get the type property: The type of the resource.
Overrides:
TaskInner.type()Returns:
validate
public void validate()
Validates the instance.
withAgentConfiguration
public TaskInner withAgentConfiguration(AgentProperties agentConfiguration)
Set the agentConfiguration property: The machine configuration of the run agent.
Parameters:
Returns:
withAgentPoolName
public TaskInner withAgentPoolName(String agentPoolName)
Set the agentPoolName property: The dedicated agent pool for the task.
Parameters:
Returns:
withCredentials
public TaskInner withCredentials(Credentials credentials)
Set the credentials property: The properties that describes a set of credentials that will be used when this run is invoked.
Parameters:
Returns:
withIdentity
public TaskInner withIdentity(IdentityProperties identity)
Set the identity property: Identity for the resource.
Parameters:
Returns:
withIsSystemTask
public TaskInner withIsSystemTask(Boolean isSystemTask)
Set the isSystemTask property: The value of this property indicates whether the task resource is system task or not.
Parameters:
Returns:
withLocation
public TaskInner withLocation(String location)
Overrides:
TaskInner.withLocation(String location)Parameters:
withLogTemplate
public TaskInner withLogTemplate(String logTemplate)
Set the logTemplate property: The template that describes the repository and tag information for run log artifact.
Parameters:
Returns:
withPlatform
public TaskInner withPlatform(PlatformProperties platform)
Set the platform property: The platform properties against which the run has to happen.
Parameters:
Returns:
withStatus
public TaskInner withStatus(TaskStatus status)
Set the status property: The current status of task.
Parameters:
Returns:
withStep
public TaskInner withStep(TaskStepProperties step)
Set the step property: The properties of a task step.
Parameters:
Returns:
withTags
public TaskInner withTags(Map
Overrides:
TaskInner.withTags(Map<String,String> tags)Parameters:
withTimeout
public TaskInner withTimeout(Integer timeout)
Set the timeout property: Run timeout in seconds.
Parameters:
Returns:
withTrigger
public TaskInner withTrigger(TriggerProperties trigger)
Set the trigger property: The properties that describe all triggers for the task.
Parameters:
Returns:
Applies to
Azure SDK for Java