Class TaskRunInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.containerregistry.fluent.models.TaskRunInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class TaskRunInner
extends com.azure.core.management.ProxyResource
The task run that has the ARM resource and properties.
The task run will have the information of request and result of a run.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the forceUpdateTag property: How the run should be forced to rerun even if the run request configuration has not changed.static TaskRunInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TaskRunInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.identity()Get the identity property: Identity for the resource.location()Get the location property: The location of the resource.name()Get the name property: The name of the resource.Get the provisioningState property: The provisioning state of this task run.Get the runRequest property: The request (parameters) for the run.Get the runResult property: The result of this task run.com.azure.core.management.SystemDataGet the systemData property: Metadata pertaining to creation and last modification of the resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withForceUpdateTag(String forceUpdateTag) Set the forceUpdateTag property: How the run should be forced to rerun even if the run request configuration has not changed.withIdentity(IdentityProperties identity) Set the identity property: Identity for the resource.withLocation(String location) Set the location property: The location of the resource.withRunRequest(RunRequest runRequest) Set the runRequest property: The request (parameters) for the run.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
-
TaskRunInner
public TaskRunInner()Creates an instance of TaskRunInner class.
-
-
Method Details
-
identity
Get the identity property: Identity for the resource.- Returns:
- the identity value.
-
withIdentity
Set the identity property: Identity for the resource.- Parameters:
identity- the identity value to set.- Returns:
- the TaskRunInner object itself.
-
location
Get the location property: The location of the resource.- Returns:
- the location value.
-
withLocation
Set the location property: The location of the resource.- Parameters:
location- the location value to set.- Returns:
- the TaskRunInner object itself.
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Metadata pertaining to creation and last modification of the resource.- Returns:
- the systemData value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
provisioningState
Get the provisioningState property: The provisioning state of this task run.- Returns:
- the provisioningState value.
-
runRequest
Get the runRequest property: The request (parameters) for the run.- Returns:
- the runRequest value.
-
withRunRequest
Set the runRequest property: The request (parameters) for the run.- Parameters:
runRequest- the runRequest value to set.- Returns:
- the TaskRunInner object itself.
-
runResult
Get the runResult property: The result of this task run.- Returns:
- the runResult value.
-
forceUpdateTag
Get the forceUpdateTag property: How the run should be forced to rerun even if the run request configuration has not changed.- Returns:
- the forceUpdateTag value.
-
withForceUpdateTag
Set the forceUpdateTag property: How the run should be forced to rerun even if the run request configuration has not changed.- Parameters:
forceUpdateTag- the forceUpdateTag value to set.- Returns:
- the TaskRunInner 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<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
Reads an instance of TaskRunInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TaskRunInner 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 TaskRunInner.
-