Class SwitchActivity
- java.lang.Object
-
- com.azure.analytics.synapse.artifacts.models.Activity
-
- com.azure.analytics.synapse.artifacts.models.ControlActivity
-
- com.azure.analytics.synapse.artifacts.models.SwitchActivity
-
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
Constructors Constructor Description SwitchActivity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SwitchCase>
getCases()
Get the cases property: List of cases that correspond to expected values of the 'on' property.List<Activity>
getDefaultActivities()
Get the defaultActivities property: List of activities to execute if no case condition is satisfied.Expression
getOn()
Get the on property: An expression that would evaluate to a string or integer.SwitchActivity
setCases(List<SwitchCase> cases)
Set the cases property: List of cases that correspond to expected values of the 'on' property.SwitchActivity
setDefaultActivities(List<Activity> defaultActivities)
Set the defaultActivities property: List of activities to execute if no case condition is satisfied.SwitchActivity
setDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.SwitchActivity
setDescription(String description)
Set the description property: Activity description.SwitchActivity
setName(String name)
Set the name property: Activity name.SwitchActivity
setOn(Expression on)
Set the on property: An expression that would evaluate to a string or integer.SwitchActivity
setUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.-
Methods inherited from class com.azure.analytics.synapse.artifacts.models.Activity
getAdditionalProperties, getDependsOn, getDescription, getName, getUserProperties, setAdditionalProperties
-
-
-
-
Method Detail
-
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:
- the on value.
-
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:
on
- the on value to set.- Returns:
- the SwitchActivity object itself.
-
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:
- the cases value.
-
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:
cases
- the cases value to set.- Returns:
- the SwitchActivity object itself.
-
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:
- the defaultActivities value.
-
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:
defaultActivities
- the defaultActivities value to set.- Returns:
- the SwitchActivity object itself.
-
setName
public SwitchActivity setName(String name)
Set the name property: Activity name.- Overrides:
setName
in classControlActivity
- Parameters:
name
- the name value to set.- Returns:
- the Activity object itself.
-
setDescription
public SwitchActivity setDescription(String description)
Set the description property: Activity description.- Overrides:
setDescription
in classControlActivity
- Parameters:
description
- the description value to set.- Returns:
- the Activity object itself.
-
setDependsOn
public SwitchActivity setDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.- Overrides:
setDependsOn
in classControlActivity
- Parameters:
dependsOn
- the dependsOn value to set.- Returns:
- the Activity object itself.
-
setUserProperties
public SwitchActivity setUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.- Overrides:
setUserProperties
in classControlActivity
- Parameters:
userProperties
- the userProperties value to set.- Returns:
- the Activity object itself.
-
-