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