public final class SwitchActivity extends ControlActivity
| Constructor and Description |
|---|
SwitchActivity() |
| Modifier and Type | Method and 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.
|
SwitchActivity |
withCases(List<SwitchCase> cases)
Set the cases property: List of cases that correspond to expected values of the 'on' property.
|
SwitchActivity |
withDefaultActivities(List<Activity> defaultActivities)
Set the defaultActivities property: List of activities to execute if no case condition is satisfied.
|
SwitchActivity |
withDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.
|
SwitchActivity |
withDescription(String description)
Set the description property: Activity description.
|
SwitchActivity |
withName(String name)
Set the name property: Activity name.
|
SwitchActivity |
withOn(Expression on)
Set the on property: An expression that would evaluate to a string or integer.
|
SwitchActivity |
withUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.
|
additionalProperties, dependsOn, description, name, userProperties, withAdditionalPropertiespublic SwitchActivity withName(String name)
withName in class ControlActivityname - the name value to set.public SwitchActivity withDescription(String description)
withDescription in class ControlActivitydescription - the description value to set.public SwitchActivity withDependsOn(List<ActivityDependency> dependsOn)
withDependsOn in class ControlActivitydependsOn - the dependsOn value to set.public SwitchActivity withUserProperties(List<UserProperty> userProperties)
withUserProperties in class ControlActivityuserProperties - the userProperties value to set.public Expression on()
public SwitchActivity withOn(Expression on)
on - the on value to set.public List<SwitchCase> cases()
public SwitchActivity withCases(List<SwitchCase> cases)
cases - the cases value to set.public List<Activity> defaultActivities()
public SwitchActivity withDefaultActivities(List<Activity> defaultActivities)
defaultActivities - the defaultActivities value to set.public void validate()
validate in class ControlActivityIllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.