Class TaskStepUpdateParameters

java.lang.Object
com.azure.resourcemanager.containerregistry.models.TaskStepUpdateParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<TaskStepUpdateParameters>
Direct Known Subclasses:
DockerBuildStepUpdateParameters, EncodedTaskStepUpdateParameters, FileTaskStepUpdateParameters

public class TaskStepUpdateParameters extends Object implements com.azure.json.JsonSerializable<TaskStepUpdateParameters>
Base properties for updating any task step.
  • Constructor Details

    • TaskStepUpdateParameters

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

    • type

      public StepType type()
      Get the type property: The type of the step.
      Returns:
      the type value.
    • contextPath

      public String contextPath()
      Get the contextPath property: The URL(absolute or relative) of the source context for the task step.
      Returns:
      the contextPath value.
    • withContextPath

      public TaskStepUpdateParameters withContextPath(String contextPath)
      Set the contextPath property: The URL(absolute or relative) of the source context for the task step.
      Parameters:
      contextPath - the contextPath value to set.
      Returns:
      the TaskStepUpdateParameters object itself.
    • contextAccessToken

      public String contextAccessToken()
      Get the contextAccessToken property: The token (git PAT or SAS token of storage account blob) associated with the context for a step.
      Returns:
      the contextAccessToken value.
    • withContextAccessToken

      public TaskStepUpdateParameters withContextAccessToken(String contextAccessToken)
      Set the contextAccessToken property: The token (git PAT or SAS token of storage account blob) associated with the context for a step.
      Parameters:
      contextAccessToken - the contextAccessToken value to set.
      Returns:
      the TaskStepUpdateParameters 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<TaskStepUpdateParameters>
      Throws:
      IOException
    • fromJson

      public static TaskStepUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of TaskStepUpdateParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of TaskStepUpdateParameters 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 TaskStepUpdateParameters.