java.lang.Object
com.azure.resourcemanager.containerregistry.models.RunRequest
All Implemented Interfaces:
com.azure.json.JsonSerializable<RunRequest>
Direct Known Subclasses:
DockerBuildRequest, EncodedTaskRunRequest, FileTaskRunRequest, TaskRunRequest

public class RunRequest extends Object implements com.azure.json.JsonSerializable<RunRequest>
The request parameters for scheduling a run.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of RunRequest class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the agentPoolName property: The dedicated agent pool for the run.
    static RunRequest
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of RunRequest from the JsonReader.
    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.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the type property: The type of the run request.
    void
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • RunRequest

      public RunRequest()
      Creates an instance of RunRequest class.
  • Method Details

    • type

      public String type()
      Get the type property: The type of the run request.
      Returns:
      the type value.
    • 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<RunRequest>
      Throws:
      IOException
    • fromJson

      public static RunRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RunRequest from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RunRequest if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the RunRequest.