Class RunRequest
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.RunRequest
-
- Direct Known Subclasses:
DockerBuildRequest,EncodedTaskRunRequest,FileTaskRunRequest,TaskRunRequest
public class RunRequest extends Object
The request parameters for scheduling a run.
-
-
Constructor Summary
Constructors Constructor Description RunRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringagentPoolName()Get the agentPoolName property: The dedicated agent pool for the run.BooleanisArchiveEnabled()Get the isArchiveEnabled property: The value that indicates whether archiving is enabled for the run or not.StringlogTemplate()Get the logTemplate property: The template that describes the repository and tag information for run log artifact.voidvalidate()Validates the instance.RunRequestwithAgentPoolName(String agentPoolName)Set the agentPoolName property: The dedicated agent pool for the run.RunRequestwithIsArchiveEnabled(Boolean isArchiveEnabled)Set the isArchiveEnabled property: The value that indicates whether archiving is enabled for the run or not.RunRequestwithLogTemplate(String logTemplate)Set the logTemplate property: The template that describes the repository and tag information for run log artifact.
-
-
-
Method Detail
-
isArchiveEnabled
public Boolean isArchiveEnabled()
Get the isArchiveEnabled property: The value that indicates whether archiving is enabled for the run or not.- Returns:
- the isArchiveEnabled value.
-
withIsArchiveEnabled
public RunRequest withIsArchiveEnabled(Boolean isArchiveEnabled)
Set the isArchiveEnabled property: The value that indicates whether archiving is enabled for the run or not.- Parameters:
isArchiveEnabled- the isArchiveEnabled value to set.- Returns:
- the RunRequest object itself.
-
agentPoolName
public String agentPoolName()
Get the agentPoolName property: The dedicated agent pool for the run.- Returns:
- the agentPoolName value.
-
withAgentPoolName
public RunRequest withAgentPoolName(String agentPoolName)
Set the agentPoolName property: The dedicated agent pool for the run.- Parameters:
agentPoolName- the agentPoolName value to set.- Returns:
- the RunRequest object itself.
-
logTemplate
public String logTemplate()
Get the logTemplate property: The template that describes the repository and tag information for run log artifact.- Returns:
- the logTemplate value.
-
withLogTemplate
public RunRequest withLogTemplate(String logTemplate)
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 RunRequest object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-