Class TaskStepProperties
java.lang.Object
com.azure.resourcemanager.containerregistry.models.TaskStepProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TaskStepProperties>
- Direct Known Subclasses:
DockerTaskStep,EncodedTaskStep,FileTaskStep
public class TaskStepProperties
extends Object
implements com.azure.json.JsonSerializable<TaskStepProperties>
Base properties for any task step.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the baseImageDependencies property: List of base image dependencies for a step.Get the contextAccessToken property: The token (git PAT or SAS token of storage account blob) associated with the context for a step.Get the contextPath property: The URL(absolute or relative) of the source context for the task step.static TaskStepPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TaskStepProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the step.voidvalidate()Validates the instance.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.withContextPath(String contextPath) Set the contextPath property: The URL(absolute or relative) of the source context for the task step.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TaskStepProperties
public TaskStepProperties()Creates an instance of TaskStepProperties class.
-
-
Method Details
-
type
Get the type property: The type of the step.- Returns:
- the type value.
-
baseImageDependencies
Get the baseImageDependencies property: List of base image dependencies for a step.- Returns:
- the baseImageDependencies value.
-
contextPath
Get the contextPath property: The URL(absolute or relative) of the source context for the task step.- Returns:
- the contextPath value.
-
withContextPath
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 TaskStepProperties object itself.
-
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
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 TaskStepProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TaskStepProperties>- Throws:
IOException
-
fromJson
Reads an instance of TaskStepProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TaskStepProperties 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 TaskStepProperties.
-