Class SwitchActivity
java.lang.Object
com.azure.resourcemanager.datafactory.models.Activity
com.azure.resourcemanager.datafactory.models.ControlActivity
com.azure.resourcemanager.datafactory.models.SwitchActivity
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
-
Method Summary
Modifier and TypeMethodDescriptioncases()
Get the cases property: List of cases that correspond to expected values of the 'on' property.Get the defaultActivities property: List of activities to execute if no case condition is satisfied.on()
Get the on property: An expression that would evaluate to a string or integer.void
validate()
Validates the instance.withCases
(List<SwitchCase> cases) Set the cases property: List of cases that correspond to expected values of the 'on' property.withDefaultActivities
(List<Activity> defaultActivities) Set the defaultActivities property: List of activities to execute if no case condition is satisfied.withDependsOn
(List<ActivityDependency> dependsOn) Set the dependsOn property: Activity depends on condition.withDescription
(String description) Set the description property: Activity description.Set the name property: Activity name.withOn
(Expression on) Set the on property: An expression that would evaluate to a string or integer.withUserProperties
(List<UserProperty> userProperties) Set the userProperties property: Activity user properties.Methods inherited from class com.azure.resourcemanager.datafactory.models.Activity
additionalProperties, dependsOn, description, name, userProperties, withAdditionalProperties
-
Constructor Details
-
SwitchActivity
public SwitchActivity()Creates an instance of SwitchActivity class.
-
-
Method Details
-
withName
Set the name property: Activity name.- Overrides:
withName
in classControlActivity
- Parameters:
name
- the name value to set.- Returns:
- the Activity object itself.
-
withDescription
Set the description property: Activity description.- Overrides:
withDescription
in classControlActivity
- Parameters:
description
- the description value to set.- Returns:
- the Activity object itself.
-
withDependsOn
Set the dependsOn property: Activity depends on condition.- Overrides:
withDependsOn
in classControlActivity
- Parameters:
dependsOn
- the dependsOn value to set.- Returns:
- the Activity object itself.
-
withUserProperties
Set the userProperties property: Activity user properties.- Overrides:
withUserProperties
in classControlActivity
- Parameters:
userProperties
- the userProperties value to set.- Returns:
- the Activity object itself.
-
on
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.
-
withOn
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.
-
cases
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.
-
withCases
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.
-
defaultActivities
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.
-
withDefaultActivities
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.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classControlActivity
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-