SwitchActivity Class
- java.
lang. Object - com.
azure. analytics. synapse. artifacts. models. Activity - com.
azure. analytics. synapse. artifacts. models. ControlActivity - com.
azure. analytics. synapse. artifacts. models. SwitchActivity
- com.
- com.
- com.
public class SwitchActivity
extends ControlActivity
This activity evaluates an expression and executes activities under the cases property that correspond to the expression evaluation expected in the equals property.
Constructor Summary
| Constructor | Description |
|---|---|
| SwitchActivity() |
Creates an instance of Switch |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Switch |
fromJson(JsonReader jsonReader)
Reads an instance of Switch |
|
List<Switch |
getCases()
Get the cases property: List of cases that correspond to expected values of the 'on' property. |
| List<Activity> |
getDefaultActivities()
Get the default |
| Expression |
getOn()
Get the on property: An expression that would evaluate to a string or integer. |
| String |
getType()
Get the type property: Type of activity. |
|
Switch |
setCases(List<SwitchCase> cases)
Set the cases property: List of cases that correspond to expected values of the 'on' property. |
|
Switch |
setDefaultActivities(List<Activity> defaultActivities)
Set the default |
|
Switch |
setDependsOn(List<ActivityDependency> dependsOn)
Set the depends |
|
Switch |
setDescription(String description)
Set the description property: Activity description. |
|
Switch |
setName(String name)
Set the name property: Activity name. |
|
Switch |
setOn(Expression on)
Set the on property: An expression that would evaluate to a string or integer. |
|
Switch |
setOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)
Set the on |
|
Switch |
setState(ActivityState state)
Set the state property: Activity state. |
|
Switch |
setUserProperties(List<UserProperty> userProperties)
Set the user |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from Activity
Methods inherited from ControlActivity
Methods inherited from java.lang.Object
Constructor Details
SwitchActivity
public SwitchActivity()
Creates an instance of SwitchActivity class.
Method Details
fromJson
public static SwitchActivity fromJson(JsonReader jsonReader)
Reads an instance of SwitchActivity from the JsonReader.
Parameters:
Returns:
Throws:
getCases
public List<SwitchCase> getCases()
Get the cases property: List of cases that correspond to expected values of the 'on' property. This is an optional property and if not provided, the activity will execute activities provided in defaultActivities.
Returns:
getDefaultActivities
public List<Activity> getDefaultActivities()
Get the defaultActivities property: List of activities to execute if no case condition is satisfied. This is an optional property and if not provided, the activity will exit without any action.
Returns:
getOn
public Expression getOn()
Get the on property: An expression that would evaluate to a string or integer. This is used to determine the block of activities in cases that will be executed.
Returns:
getType
public String getType()
Get the type property: Type of activity.
Overrides:
SwitchActivity.getType()Returns:
setCases
public SwitchActivity setCases(List<SwitchCase> cases)
Set the cases property: List of cases that correspond to expected values of the 'on' property. This is an optional property and if not provided, the activity will execute activities provided in defaultActivities.
Parameters:
Returns:
setDefaultActivities
public SwitchActivity setDefaultActivities(List<Activity> defaultActivities)
Set the defaultActivities property: List of activities to execute if no case condition is satisfied. This is an optional property and if not provided, the activity will exit without any action.
Parameters:
Returns:
setDependsOn
public SwitchActivity setDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.
Overrides:
SwitchActivity.setDependsOn(List<ActivityDependency> dependsOn)Parameters:
setDescription
public SwitchActivity setDescription(String description)
Set the description property: Activity description.
Overrides:
SwitchActivity.setDescription(String description)Parameters:
setName
public SwitchActivity setName(String name)
Set the name property: Activity name.
Overrides:
SwitchActivity.setName(String name)Parameters:
setOn
public SwitchActivity setOn(Expression on)
Set the on property: An expression that would evaluate to a string or integer. This is used to determine the block of activities in cases that will be executed.
Parameters:
Returns:
setOnInactiveMarkAs
public SwitchActivity setOnInactiveMarkAs(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:
SwitchActivity.setOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)Parameters:
setState
public SwitchActivity setState(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:
SwitchActivity.setState(ActivityState state)Parameters:
setUserProperties
public SwitchActivity setUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.
Overrides:
SwitchActivity.setUserProperties(List<UserProperty> userProperties)Parameters:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SwitchActivity.toJson(JsonWriter jsonWriter)Parameters:
Throws: