Class SwitchActivityTypeProperties
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.fluent.models.SwitchActivityTypeProperties
-
public final class SwitchActivityTypeProperties extends Object
Switch activity properties.
-
-
Constructor Summary
Constructors Constructor Description SwitchActivityTypeProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SwitchCase>
cases()
Get the cases property: List of cases that correspond to expected values of the 'on' property.List<Activity>
defaultActivities()
Get the defaultActivities property: List of activities to execute if no case condition is satisfied.Expression
on()
Get the on property: An expression that would evaluate to a string or integer.void
validate()
Validates the instance.SwitchActivityTypeProperties
withCases(List<SwitchCase> cases)
Set the cases property: List of cases that correspond to expected values of the 'on' property.SwitchActivityTypeProperties
withDefaultActivities(List<Activity> defaultActivities)
Set the defaultActivities property: List of activities to execute if no case condition is satisfied.SwitchActivityTypeProperties
withOn(Expression on)
Set the on property: An expression that would evaluate to a string or integer.
-
-
-
Method Detail
-
on
public Expression 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
public SwitchActivityTypeProperties withOn(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 SwitchActivityTypeProperties object itself.
-
cases
public List<SwitchCase> 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
public SwitchActivityTypeProperties withCases(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 SwitchActivityTypeProperties object itself.
-
defaultActivities
public List<Activity> 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
public SwitchActivityTypeProperties withDefaultActivities(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 SwitchActivityTypeProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-