Class JobStepExecutionOptions
java.lang.Object
com.azure.resourcemanager.sql.models.JobStepExecutionOptions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<JobStepExecutionOptions>
public final class JobStepExecutionOptions
extends Object
implements com.azure.json.JsonSerializable<JobStepExecutionOptions>
The execution options of a job step.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of JobStepExecutionOptions class. -
Method Summary
Modifier and TypeMethodDescriptionstatic JobStepExecutionOptionsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of JobStepExecutionOptions from the JsonReader.Get the initialRetryIntervalSeconds property: Initial delay between retries for job step execution.Get the maximumRetryIntervalSeconds property: The maximum amount of time to wait between retries for job step execution.Get the retryAttempts property: Maximum number of times the job step will be reattempted if the first attempt fails.Get the retryIntervalBackoffMultiplier property: The backoff multiplier for the time between retries.Get the timeoutSeconds property: Execution timeout for the job step.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withInitialRetryIntervalSeconds(Integer initialRetryIntervalSeconds) Set the initialRetryIntervalSeconds property: Initial delay between retries for job step execution.withMaximumRetryIntervalSeconds(Integer maximumRetryIntervalSeconds) Set the maximumRetryIntervalSeconds property: The maximum amount of time to wait between retries for job step execution.withRetryAttempts(Integer retryAttempts) Set the retryAttempts property: Maximum number of times the job step will be reattempted if the first attempt fails.withRetryIntervalBackoffMultiplier(Float retryIntervalBackoffMultiplier) Set the retryIntervalBackoffMultiplier property: The backoff multiplier for the time between retries.withTimeoutSeconds(Integer timeoutSeconds) Set the timeoutSeconds property: Execution timeout for the job step.Methods 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
-
JobStepExecutionOptions
public JobStepExecutionOptions()Creates an instance of JobStepExecutionOptions class.
-
-
Method Details
-
timeoutSeconds
Get the timeoutSeconds property: Execution timeout for the job step.- Returns:
- the timeoutSeconds value.
-
withTimeoutSeconds
Set the timeoutSeconds property: Execution timeout for the job step.- Parameters:
timeoutSeconds- the timeoutSeconds value to set.- Returns:
- the JobStepExecutionOptions object itself.
-
retryAttempts
Get the retryAttempts property: Maximum number of times the job step will be reattempted if the first attempt fails.- Returns:
- the retryAttempts value.
-
withRetryAttempts
Set the retryAttempts property: Maximum number of times the job step will be reattempted if the first attempt fails.- Parameters:
retryAttempts- the retryAttempts value to set.- Returns:
- the JobStepExecutionOptions object itself.
-
initialRetryIntervalSeconds
Get the initialRetryIntervalSeconds property: Initial delay between retries for job step execution.- Returns:
- the initialRetryIntervalSeconds value.
-
withInitialRetryIntervalSeconds
Set the initialRetryIntervalSeconds property: Initial delay between retries for job step execution.- Parameters:
initialRetryIntervalSeconds- the initialRetryIntervalSeconds value to set.- Returns:
- the JobStepExecutionOptions object itself.
-
maximumRetryIntervalSeconds
Get the maximumRetryIntervalSeconds property: The maximum amount of time to wait between retries for job step execution.- Returns:
- the maximumRetryIntervalSeconds value.
-
withMaximumRetryIntervalSeconds
Set the maximumRetryIntervalSeconds property: The maximum amount of time to wait between retries for job step execution.- Parameters:
maximumRetryIntervalSeconds- the maximumRetryIntervalSeconds value to set.- Returns:
- the JobStepExecutionOptions object itself.
-
retryIntervalBackoffMultiplier
Get the retryIntervalBackoffMultiplier property: The backoff multiplier for the time between retries.- Returns:
- the retryIntervalBackoffMultiplier value.
-
withRetryIntervalBackoffMultiplier
public JobStepExecutionOptions withRetryIntervalBackoffMultiplier(Float retryIntervalBackoffMultiplier) Set the retryIntervalBackoffMultiplier property: The backoff multiplier for the time between retries.- Parameters:
retryIntervalBackoffMultiplier- the retryIntervalBackoffMultiplier value to set.- Returns:
- the JobStepExecutionOptions 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<JobStepExecutionOptions>- Throws:
IOException
-
fromJson
public static JobStepExecutionOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of JobStepExecutionOptions from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of JobStepExecutionOptions 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 JobStepExecutionOptions.
-