Class TaskStepProperties
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.TaskStepProperties
-
- Direct Known Subclasses:
DockerTaskStep,EncodedTaskStep,FileTaskStep
public class TaskStepProperties extends Object
Base properties for any task step.
-
-
Constructor Summary
Constructors Constructor Description TaskStepProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BaseImageDependency>baseImageDependencies()Get the baseImageDependencies property: List of base image dependencies for a step.StringcontextAccessToken()Get the contextAccessToken property: The token (git PAT or SAS token of storage account blob) associated with the context for a step.StringcontextPath()Get the contextPath property: The URL(absolute or relative) of the source context for the task step.voidvalidate()Validates the instance.TaskStepPropertieswithContextAccessToken(String contextAccessToken)Set the contextAccessToken property: The token (git PAT or SAS token of storage account blob) associated with the context for a step.TaskStepPropertieswithContextPath(String contextPath)Set the contextPath property: The URL(absolute or relative) of the source context for the task step.
-
-
-
Method Detail
-
baseImageDependencies
public List<BaseImageDependency> baseImageDependencies()
Get the baseImageDependencies property: List of base image dependencies for a step.- Returns:
- the baseImageDependencies 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 TaskStepProperties 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 TaskStepProperties 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 TaskStepProperties 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 TaskStepProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-