Class EncodedTaskStep
java.lang.Object
com.azure.resourcemanager.containerregistry.models.TaskStepProperties
com.azure.resourcemanager.containerregistry.models.EncodedTaskStep
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TaskStepProperties>
The properties of a encoded task step.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the encodedTaskContent property: Base64 encoded value of the template/definition file content.Get the encodedValuesContent property: Base64 encoded value of the parameters/values file content.static EncodedTaskStepfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EncodedTaskStep 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.values()Get the values property: The collection of overridable values that can be passed when running a task.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.withEncodedTaskContent(String encodedTaskContent) Set the encodedTaskContent property: Base64 encoded value of the template/definition file content.withEncodedValuesContent(String encodedValuesContent) Set the encodedValuesContent property: Base64 encoded value of the parameters/values file content.withValues(List<SetValue> values) Set the values property: The collection of overridable values that can be passed when running a task.Methods inherited from class TaskStepProperties
baseImageDependencies, contextAccessToken, contextPathMethods inherited from class 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
-
EncodedTaskStep
public EncodedTaskStep()Creates an instance of EncodedTaskStep class.
-
-
Method Details
-
type
Get the type property: The type of the step.- Overrides:
typein classTaskStepProperties- Returns:
- the type value.
-
encodedTaskContent
Get the encodedTaskContent property: Base64 encoded value of the template/definition file content.- Returns:
- the encodedTaskContent value.
-
withEncodedTaskContent
Set the encodedTaskContent property: Base64 encoded value of the template/definition file content.- Parameters:
encodedTaskContent- the encodedTaskContent value to set.- Returns:
- the EncodedTaskStep object itself.
-
encodedValuesContent
Get the encodedValuesContent property: Base64 encoded value of the parameters/values file content.- Returns:
- the encodedValuesContent value.
-
withEncodedValuesContent
Set the encodedValuesContent property: Base64 encoded value of the parameters/values file content.- Parameters:
encodedValuesContent- the encodedValuesContent value to set.- Returns:
- the EncodedTaskStep object itself.
-
values
-
withValues
Set the values property: The collection of overridable values that can be passed when running a task.- Parameters:
values- the values value to set.- Returns:
- the EncodedTaskStep object itself.
-
withContextPath
Set the contextPath property: The URL(absolute or relative) of the source context for the task step.- Overrides:
withContextPathin classTaskStepProperties- Parameters:
contextPath- the contextPath value to set.- Returns:
- the TaskStepProperties object itself.
-
withContextAccessToken
Set the contextAccessToken property: The token (git PAT or SAS token of storage account blob) associated with the context for a step.- Overrides:
withContextAccessTokenin classTaskStepProperties- Parameters:
contextAccessToken- the contextAccessToken value to set.- Returns:
- the TaskStepProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classTaskStepProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TaskStepProperties>- Overrides:
toJsonin classTaskStepProperties- Throws:
IOException
-
fromJson
Reads an instance of EncodedTaskStep from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EncodedTaskStep if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the EncodedTaskStep.
-