TaskRunRequest Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. RunRequest - com.
azure. resourcemanager. containerregistry. models. TaskRunRequest
- com.
- com.
public final class TaskRunRequest
extends RunRequest
The parameters for a task run request.
Constructor Summary
| Constructor | Description |
|---|---|
| TaskRunRequest() |
Creates an instance of Task |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Task |
fromJson(JsonReader jsonReader)
Reads an instance of Task |
|
Override |
overrideTaskStepProperties()
Get the override |
| String |
taskId()
Get the task |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the run request. |
| void |
validate()
Validates the instance. |
|
Task |
withAgentPoolName(String agentPoolName)
Set the agent |
|
Task |
withIsArchiveEnabled(Boolean isArchiveEnabled)
Set the is |
|
Task |
withLogTemplate(String logTemplate)
Set the log |
|
Task |
withOverrideTaskStepProperties(OverrideTaskStepProperties overrideTaskStepProperties)
Set the override |
|
Task |
withTaskId(String taskId)
Set the task |
Methods inherited from RunRequest
Methods inherited from java.lang.Object
Constructor Details
TaskRunRequest
public TaskRunRequest()
Creates an instance of TaskRunRequest class.
Method Details
fromJson
public static TaskRunRequest fromJson(JsonReader jsonReader)
Reads an instance of TaskRunRequest from the JsonReader.
Parameters:
Returns:
Throws:
overrideTaskStepProperties
public OverrideTaskStepProperties overrideTaskStepProperties()
Get the overrideTaskStepProperties property: Set of overridable parameters that can be passed when running a Task.
Returns:
taskId
public String taskId()
Get the taskId property: The resource ID of task against which run has to be queued.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
TaskRunRequest.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the run request.
Overrides:
TaskRunRequest.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
TaskRunRequest.validate()withAgentPoolName
public TaskRunRequest withAgentPoolName(String agentPoolName)
Set the agentPoolName property: The dedicated agent pool for the run.
Overrides:
TaskRunRequest.withAgentPoolName(String agentPoolName)Parameters:
withIsArchiveEnabled
public TaskRunRequest withIsArchiveEnabled(Boolean isArchiveEnabled)
Set the isArchiveEnabled property: The value that indicates whether archiving is enabled for the run or not.
Overrides:
TaskRunRequest.withIsArchiveEnabled(Boolean isArchiveEnabled)Parameters:
withLogTemplate
public TaskRunRequest withLogTemplate(String logTemplate)
Set the logTemplate property: The template that describes the repository and tag information for run log artifact.
Overrides:
TaskRunRequest.withLogTemplate(String logTemplate)Parameters:
withOverrideTaskStepProperties
public TaskRunRequest withOverrideTaskStepProperties(OverrideTaskStepProperties overrideTaskStepProperties)
Set the overrideTaskStepProperties property: Set of overridable parameters that can be passed when running a Task.
Parameters:
Returns:
withTaskId
public TaskRunRequest withTaskId(String taskId)
Set the taskId property: The resource ID of task against which run has to be queued.
Parameters:
Returns: