Class JobStepAction
java.lang.Object
com.azure.resourcemanager.sql.models.JobStepAction
- All Implemented Interfaces:
com.azure.json.JsonSerializable<JobStepAction>
public final class JobStepAction
extends Object
implements com.azure.json.JsonSerializable<JobStepAction>
The action to be executed by a job step.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JobStepActionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of JobStepAction from the JsonReader.source()Get the source property: The source of the action to execute.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of action being executed by the job step.voidvalidate()Validates the instance.value()Get the value property: The action value, for example the text of the T-SQL script to execute.withSource(JobStepActionSource source) Set the source property: The source of the action to execute.withType(JobStepActionType type) Set the type property: Type of action being executed by the job step.Set the value property: The action value, for example the text of the T-SQL script to execute.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
-
JobStepAction
public JobStepAction()Creates an instance of JobStepAction class.
-
-
Method Details
-
type
Get the type property: Type of action being executed by the job step.- Returns:
- the type value.
-
withType
Set the type property: Type of action being executed by the job step.- Parameters:
type- the type value to set.- Returns:
- the JobStepAction object itself.
-
source
Get the source property: The source of the action to execute.- Returns:
- the source value.
-
withSource
Set the source property: The source of the action to execute.- Parameters:
source- the source value to set.- Returns:
- the JobStepAction object itself.
-
value
Get the value property: The action value, for example the text of the T-SQL script to execute.- Returns:
- the value value.
-
withValue
Set the value property: The action value, for example the text of the T-SQL script to execute.- Parameters:
value- the value value to set.- Returns:
- the JobStepAction 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<JobStepAction>- Throws:
IOException
-
fromJson
Reads an instance of JobStepAction from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of JobStepAction 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 JobStepAction.
-