Class JobExecutionInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.fluent.models.JobExecutionInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class JobExecutionInner
extends com.azure.core.management.ProxyResource
An execution of a job.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the createTime property: The time that the job execution was created.Get the currentAttempts property: Number of times the job execution has been attempted.Get the currentAttemptStartTime property: Start time of the current attempt.endTime()Get the endTime property: The time that the job execution completed.static JobExecutionInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of JobExecutionInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the jobExecutionId property: The unique identifier of the job execution.Get the jobVersion property: The job version number.Get the lastMessage property: The last status or error message.Get the lifecycle property: The detailed state of the job execution.name()Get the name property: The name of the resource.Get the provisioningState property: The ARM provisioning state of the job execution.Get the startTime property: The time that the job execution started.stepId()Get the stepId property: The job step id.stepName()Get the stepName property: The job step name.target()Get the target property: The target that this execution is executed on.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withCurrentAttempts(Integer currentAttempts) Set the currentAttempts property: Number of times the job execution has been attempted.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
-
JobExecutionInner
public JobExecutionInner()Creates an instance of JobExecutionInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
jobVersion
Get the jobVersion property: The job version number.- Returns:
- the jobVersion value.
-
stepName
Get the stepName property: The job step name.- Returns:
- the stepName value.
-
stepId
Get the stepId property: The job step id.- Returns:
- the stepId value.
-
jobExecutionId
Get the jobExecutionId property: The unique identifier of the job execution.- Returns:
- the jobExecutionId value.
-
lifecycle
Get the lifecycle property: The detailed state of the job execution.- Returns:
- the lifecycle value.
-
provisioningState
Get the provisioningState property: The ARM provisioning state of the job execution.- Returns:
- the provisioningState value.
-
createTime
Get the createTime property: The time that the job execution was created.- Returns:
- the createTime value.
-
startTime
Get the startTime property: The time that the job execution started.- Returns:
- the startTime value.
-
endTime
Get the endTime property: The time that the job execution completed.- Returns:
- the endTime value.
-
currentAttempts
Get the currentAttempts property: Number of times the job execution has been attempted.- Returns:
- the currentAttempts value.
-
withCurrentAttempts
Set the currentAttempts property: Number of times the job execution has been attempted.- Parameters:
currentAttempts- the currentAttempts value to set.- Returns:
- the JobExecutionInner object itself.
-
currentAttemptStartTime
Get the currentAttemptStartTime property: Start time of the current attempt.- Returns:
- the currentAttemptStartTime value.
-
lastMessage
Get the lastMessage property: The last status or error message.- Returns:
- the lastMessage value.
-
target
Get the target property: The target that this execution is executed on.- Returns:
- the target value.
-
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 JobExecutionInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of JobExecutionInner 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 JobExecutionInner.
-