Class EncodedTaskRunRequest


  • public final class EncodedTaskRunRequest
    extends RunRequest
    The parameters for a quick task run request.
    • Constructor Detail

      • EncodedTaskRunRequest

        public EncodedTaskRunRequest()
    • Method Detail

      • encodedTaskContent

        public String encodedTaskContent()
        Get the encodedTaskContent property: Base64 encoded value of the template/definition file content.
        Returns:
        the encodedTaskContent value.
      • withEncodedTaskContent

        public EncodedTaskRunRequest withEncodedTaskContent​(String encodedTaskContent)
        Set the encodedTaskContent property: Base64 encoded value of the template/definition file content.
        Parameters:
        encodedTaskContent - the encodedTaskContent value to set.
        Returns:
        the EncodedTaskRunRequest object itself.
      • encodedValuesContent

        public String encodedValuesContent()
        Get the encodedValuesContent property: Base64 encoded value of the parameters/values file content.
        Returns:
        the encodedValuesContent value.
      • withEncodedValuesContent

        public EncodedTaskRunRequest withEncodedValuesContent​(String encodedValuesContent)
        Set the encodedValuesContent property: Base64 encoded value of the parameters/values file content.
        Parameters:
        encodedValuesContent - the encodedValuesContent value to set.
        Returns:
        the EncodedTaskRunRequest object itself.
      • values

        public List<SetValue> values()
        Get the values property: The collection of overridable values that can be passed when running a task.
        Returns:
        the values value.
      • withValues

        public EncodedTaskRunRequest withValues​(List<SetValue> values)
        Set the values property: The collection of overridable values that can be passed when running a task.
        Parameters:
        values - the values value to set.
        Returns:
        the EncodedTaskRunRequest object itself.
      • timeout

        public Integer timeout()
        Get the timeout property: Run timeout in seconds.
        Returns:
        the timeout value.
      • withTimeout

        public EncodedTaskRunRequest withTimeout​(Integer timeout)
        Set the timeout property: Run timeout in seconds.
        Parameters:
        timeout - the timeout value to set.
        Returns:
        the EncodedTaskRunRequest object itself.
      • platform

        public PlatformProperties platform()
        Get the platform property: The platform properties against which the run has to happen.
        Returns:
        the platform value.
      • withPlatform

        public EncodedTaskRunRequest withPlatform​(PlatformProperties platform)
        Set the platform property: The platform properties against which the run has to happen.
        Parameters:
        platform - the platform value to set.
        Returns:
        the EncodedTaskRunRequest object itself.
      • agentConfiguration

        public AgentProperties agentConfiguration()
        Get the agentConfiguration property: The machine configuration of the run agent.
        Returns:
        the agentConfiguration value.
      • withAgentConfiguration

        public EncodedTaskRunRequest withAgentConfiguration​(AgentProperties agentConfiguration)
        Set the agentConfiguration property: The machine configuration of the run agent.
        Parameters:
        agentConfiguration - the agentConfiguration value to set.
        Returns:
        the EncodedTaskRunRequest object itself.
      • sourceLocation

        public String sourceLocation()
        Get the sourceLocation property: The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository. If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
        Returns:
        the sourceLocation value.
      • withSourceLocation

        public EncodedTaskRunRequest withSourceLocation​(String sourceLocation)
        Set the sourceLocation property: The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository. If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
        Parameters:
        sourceLocation - the sourceLocation value to set.
        Returns:
        the EncodedTaskRunRequest object itself.
      • 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:
        the credentials value.
      • withCredentials

        public EncodedTaskRunRequest 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:
        credentials - the credentials value to set.
        Returns:
        the EncodedTaskRunRequest object itself.
      • withIsArchiveEnabled

        public EncodedTaskRunRequest withIsArchiveEnabled​(Boolean isArchiveEnabled)
        Set the isArchiveEnabled property: The value that indicates whether archiving is enabled for the run or not.
        Overrides:
        withIsArchiveEnabled in class RunRequest
        Parameters:
        isArchiveEnabled - the isArchiveEnabled value to set.
        Returns:
        the RunRequest object itself.
      • withAgentPoolName

        public EncodedTaskRunRequest withAgentPoolName​(String agentPoolName)
        Set the agentPoolName property: The dedicated agent pool for the run.
        Overrides:
        withAgentPoolName in class RunRequest
        Parameters:
        agentPoolName - the agentPoolName value to set.
        Returns:
        the RunRequest object itself.
      • withLogTemplate

        public EncodedTaskRunRequest withLogTemplate​(String logTemplate)
        Set the logTemplate property: The template that describes the repository and tag information for run log artifact.
        Overrides:
        withLogTemplate in class RunRequest
        Parameters:
        logTemplate - the logTemplate value to set.
        Returns:
        the RunRequest object itself.