共用方式為


JobStepAction Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.JobStepAction

Implements

public final class JobStepAction
implements JsonSerializable<JobStepAction>

The action to be executed by a job step.

Constructor Summary

Constructor Description
JobStepAction()

Creates an instance of JobStepAction class.

Method Summary

Modifier and Type Method and Description
static JobStepAction fromJson(JsonReader jsonReader)

Reads an instance of JobStepAction from the JsonReader.

JobStepActionSource source()

Get the source property: The source of the action to execute.

JsonWriter toJson(JsonWriter jsonWriter)
JobStepActionType type()

Get the type property: Type of action being executed by the job step.

void validate()

Validates the instance.

String value()

Get the value property: The action value, for example the text of the T-SQL script to execute.

JobStepAction withSource(JobStepActionSource source)

Set the source property: The source of the action to execute.

JobStepAction withType(JobStepActionType type)

Set the type property: Type of action being executed by the job step.

JobStepAction withValue(String value)

Set the value property: The action value, for example the text of the T-SQL script to execute.

Methods inherited from java.lang.Object

Constructor Details

JobStepAction

public JobStepAction()

Creates an instance of JobStepAction class.

Method Details

fromJson

public static JobStepAction fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

source

public JobStepActionSource source()

Get the source property: The source of the action to execute.

Returns:

the source value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public JobStepActionType type()

Get the type property: Type of action being executed by the job step.

Returns:

the type value.

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: The action value, for example the text of the T-SQL script to execute.

Returns:

the value value.

withSource

public JobStepAction withSource(JobStepActionSource source)

Set the source property: The source of the action to execute.

Parameters:

source - the source value to set.

Returns:

the JobStepAction object itself.

withType

public JobStepAction withType(JobStepActionType type)

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.

withValue

public JobStepAction withValue(String value)

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.

Applies to