ScriptActivity Class
- java.
lang. Object - com.
azure. resourcemanager. datafactory. models. Activity - com.
azure. resourcemanager. datafactory. models. ExecutionActivity - com.
azure. resourcemanager. datafactory. models. ScriptActivity
- com.
- com.
- com.
public final class ScriptActivity
extends ExecutionActivity
Script activity type.
Constructor Summary
| Constructor | Description |
|---|---|
| ScriptActivity() |
Creates an instance of Script |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Script |
fromJson(JsonReader jsonReader)
Reads an instance of Script |
|
Script |
logSettings()
Get the log |
| Object |
returnMultistatementResult()
Get the return |
| Object |
scriptBlockExecutionTimeout()
Get the script |
|
List<Script |
scripts()
Get the scripts property: Array of script blocks. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Type of activity. |
| void |
validate()
Validates the instance. |
|
Script |
withDependsOn(List<ActivityDependency> dependsOn)
Set the depends |
|
Script |
withDescription(String description)
Set the description property: Activity description. |
|
Script |
withLinkedServiceName(LinkedServiceReference linkedServiceName)
Set the linked |
|
Script |
withLogSettings(ScriptActivityTypePropertiesLogSettings logSettings)
Set the log |
|
Script |
withName(String name)
Set the name property: Activity name. |
|
Script |
withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)
Set the on |
|
Script |
withPolicy(ActivityPolicy policy)
Set the policy property: Activity policy. |
|
Script |
withReturnMultistatementResult(Object returnMultistatementResult)
Set the return |
|
Script |
withScriptBlockExecutionTimeout(Object scriptBlockExecutionTimeout)
Set the script |
|
Script |
withScripts(List<ScriptActivityScriptBlock> scripts)
Set the scripts property: Array of script blocks. |
|
Script |
withState(ActivityState state)
Set the state property: Activity state. |
|
Script |
withUserProperties(List<UserProperty> userProperties)
Set the user |
Methods inherited from Activity
Methods inherited from ExecutionActivity
Methods inherited from java.lang.Object
Constructor Details
ScriptActivity
public ScriptActivity()
Creates an instance of ScriptActivity class.
Method Details
fromJson
public static ScriptActivity fromJson(JsonReader jsonReader)
Reads an instance of ScriptActivity from the JsonReader.
Parameters:
Returns:
Throws:
logSettings
public ScriptActivityTypePropertiesLogSettings logSettings()
Get the logSettings property: Log settings of script activity.
Returns:
returnMultistatementResult
public Object returnMultistatementResult()
Get the returnMultistatementResult property: Enable to retrieve result sets from multiple SQL statements and the number of rows affected by the DML statement. Supported connector: SnowflakeV2. Type: boolean (or Expression with resultType boolean).
Returns:
scriptBlockExecutionTimeout
public Object scriptBlockExecutionTimeout()
Get the scriptBlockExecutionTimeout property: ScriptBlock execution timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
Returns:
scripts
public List<ScriptActivityScriptBlock> scripts()
Get the scripts property: Array of script blocks. Type: array.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ScriptActivity.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Type of activity.
Overrides:
ScriptActivity.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
ScriptActivity.validate()withDependsOn
public ScriptActivity withDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.
Overrides:
ScriptActivity.withDependsOn(List<ActivityDependency> dependsOn)Parameters:
withDescription
public ScriptActivity withDescription(String description)
Set the description property: Activity description.
Overrides:
ScriptActivity.withDescription(String description)Parameters:
withLinkedServiceName
public ScriptActivity withLinkedServiceName(LinkedServiceReference linkedServiceName)
Set the linkedServiceName property: Linked service reference.
Overrides:
ScriptActivity.withLinkedServiceName(LinkedServiceReference linkedServiceName)Parameters:
withLogSettings
public ScriptActivity withLogSettings(ScriptActivityTypePropertiesLogSettings logSettings)
Set the logSettings property: Log settings of script activity.
Parameters:
Returns:
withName
public ScriptActivity withName(String name)
Set the name property: Activity name.
Overrides:
ScriptActivity.withName(String name)Parameters:
withOnInactiveMarkAs
public ScriptActivity withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)
Set the onInactiveMarkAs property: Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default.
Overrides:
ScriptActivity.withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)Parameters:
withPolicy
public ScriptActivity withPolicy(ActivityPolicy policy)
Set the policy property: Activity policy.
Overrides:
ScriptActivity.withPolicy(ActivityPolicy policy)Parameters:
withReturnMultistatementResult
public ScriptActivity withReturnMultistatementResult(Object returnMultistatementResult)
Set the returnMultistatementResult property: Enable to retrieve result sets from multiple SQL statements and the number of rows affected by the DML statement. Supported connector: SnowflakeV2. Type: boolean (or Expression with resultType boolean).
Parameters:
Returns:
withScriptBlockExecutionTimeout
public ScriptActivity withScriptBlockExecutionTimeout(Object scriptBlockExecutionTimeout)
Set the scriptBlockExecutionTimeout property: ScriptBlock execution timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
Parameters:
Returns:
withScripts
public ScriptActivity withScripts(List<ScriptActivityScriptBlock> scripts)
Set the scripts property: Array of script blocks. Type: array.
Parameters:
Returns:
withState
public ScriptActivity withState(ActivityState state)
Set the state property: Activity state. This is an optional property and if not provided, the state will be Active by default.
Overrides:
ScriptActivity.withState(ActivityState state)Parameters:
withUserProperties
public ScriptActivity withUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.
Overrides:
ScriptActivity.withUserProperties(List<UserProperty> userProperties)Parameters: