TaskStepProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.TaskStepProperties

Implements

public class TaskStepProperties
implements JsonSerializable<TaskStepProperties>

Base properties for any task step.

Constructor Summary

Constructor Description
TaskStepProperties()

Creates an instance of TaskStepProperties class.

Method Summary

Modifier and Type Method and Description
List<BaseImageDependency> baseImageDependencies()

Get the baseImageDependencies property: List of base image dependencies for a step.

String contextAccessToken()

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

String contextPath()

Get the contextPath property: The URL(absolute or relative) of the source context for the task step.

static TaskStepProperties fromJson(JsonReader jsonReader)

Reads an instance of TaskStepProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
StepType type()

Get the type property: The type of the step.

void validate()

Validates the instance.

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.

TaskStepProperties withContextPath(String contextPath)

Set the contextPath property: The URL(absolute or relative) of the source context for the task step.

Methods inherited from java.lang.Object

Constructor Details

TaskStepProperties

public TaskStepProperties()

Creates an instance of TaskStepProperties class.

Method Details

baseImageDependencies

public List baseImageDependencies()

Get the baseImageDependencies property: List of base image dependencies for a step.

Returns:

the baseImageDependencies value.

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.

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.

fromJson

public static TaskStepProperties fromJson(JsonReader jsonReader)

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public StepType type()

Get the type property: The type of the step.

Returns:

the type value.

validate

public void validate()

Validates the instance.

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.

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.

Applies to