Class SwitchActivityTypeProperties
java.lang.Object
com.azure.resourcemanager.datafactory.fluent.models.SwitchActivityTypeProperties
Switch activity properties.
-
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.withOn
(Expression on) Set the on property: An expression that would evaluate to a string or integer.
-
Constructor Details
-
SwitchActivityTypeProperties
public SwitchActivityTypeProperties()
-
-
Method Details
-
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 SwitchActivityTypeProperties 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 SwitchActivityTypeProperties 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 SwitchActivityTypeProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-