Del via


JobExecutionProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.fluent.models.JobExecutionProperties

Implements

public final class JobExecutionProperties
implements JsonSerializable<JobExecutionProperties>

Properties for an Azure SQL Database Elastic job execution.

Constructor Summary

Constructor Description
JobExecutionProperties()

Creates an instance of JobExecutionProperties class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime createTime()

Get the createTime property: The time that the job execution was created.

Integer currentAttempts()

Get the currentAttempts property: Number of times the job execution has been attempted.

OffsetDateTime currentAttemptStartTime()

Get the currentAttemptStartTime property: Start time of the current attempt.

OffsetDateTime endTime()

Get the endTime property: The time that the job execution completed.

static JobExecutionProperties fromJson(JsonReader jsonReader)

Reads an instance of JobExecutionProperties from the JsonReader.

UUID jobExecutionId()

Get the jobExecutionId property: The unique identifier of the job execution.

Integer jobVersion()

Get the jobVersion property: The job version number.

String lastMessage()

Get the lastMessage property: The last status or error message.

JobExecutionLifecycle lifecycle()

Get the lifecycle property: The detailed state of the job execution.

ProvisioningState provisioningState()

Get the provisioningState property: The ARM provisioning state of the job execution.

OffsetDateTime startTime()

Get the startTime property: The time that the job execution started.

Integer stepId()

Get the stepId property: The job step id.

String stepName()

Get the stepName property: The job step name.

JobExecutionTarget target()

Get the target property: The target that this execution is executed on.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

JobExecutionProperties withCurrentAttempts(Integer currentAttempts)

Set the currentAttempts property: Number of times the job execution has been attempted.

Methods inherited from java.lang.Object

Constructor Details

JobExecutionProperties

public JobExecutionProperties()

Creates an instance of JobExecutionProperties class.

Method Details

createTime

public OffsetDateTime createTime()

Get the createTime property: The time that the job execution was created.

Returns:

the createTime value.

currentAttempts

public Integer currentAttempts()

Get the currentAttempts property: Number of times the job execution has been attempted.

Returns:

the currentAttempts value.

currentAttemptStartTime

public OffsetDateTime currentAttemptStartTime()

Get the currentAttemptStartTime property: Start time of the current attempt.

Returns:

the currentAttemptStartTime value.

endTime

public OffsetDateTime endTime()

Get the endTime property: The time that the job execution completed.

Returns:

the endTime value.

fromJson

public static JobExecutionProperties fromJson(JsonReader jsonReader)

Reads an instance of JobExecutionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of JobExecutionProperties 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 JobExecutionProperties.

jobExecutionId

public UUID jobExecutionId()

Get the jobExecutionId property: The unique identifier of the job execution.

Returns:

the jobExecutionId value.

jobVersion

public Integer jobVersion()

Get the jobVersion property: The job version number.

Returns:

the jobVersion value.

lastMessage

public String lastMessage()

Get the lastMessage property: The last status or error message.

Returns:

the lastMessage value.

lifecycle

public JobExecutionLifecycle lifecycle()

Get the lifecycle property: The detailed state of the job execution.

Returns:

the lifecycle value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The ARM provisioning state of the job execution.

Returns:

the provisioningState value.

startTime

public OffsetDateTime startTime()

Get the startTime property: The time that the job execution started.

Returns:

the startTime value.

stepId

public Integer stepId()

Get the stepId property: The job step id.

Returns:

the stepId value.

stepName

public String stepName()

Get the stepName property: The job step name.

Returns:

the stepName value.

target

public JobExecutionTarget target()

Get the target property: The target that this execution is executed on.

Returns:

the target value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCurrentAttempts

public JobExecutionProperties withCurrentAttempts(Integer currentAttempts)

Set the currentAttempts property: Number of times the job execution has been attempted.

Parameters:

currentAttempts - the currentAttempts value to set.

Returns:

the JobExecutionProperties object itself.

Applies to