Share via


TaskStepUpdateParameters Class

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

Implements

public class TaskStepUpdateParameters
implements JsonSerializable<TaskStepUpdateParameters>

Base properties for updating any task step.

Constructor Summary

Constructor Description
TaskStepUpdateParameters()

Creates an instance of TaskStepUpdateParameters class.

Method Summary

Modifier and Type Method and Description
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 TaskStepUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of TaskStepUpdateParameters from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
StepType type()

Get the type property: The type of the step.

void validate()

Validates the instance.

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.

TaskStepUpdateParameters 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

TaskStepUpdateParameters

public TaskStepUpdateParameters()

Creates an instance of TaskStepUpdateParameters class.

Method Details

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 TaskStepUpdateParameters fromJson(JsonReader jsonReader)

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.

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 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.

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.

Applies to