Class SwitchCase
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.models.SwitchCase
-
public final class SwitchCase extends Object
Switch cases with have a value and corresponding activities.
-
-
Constructor Summary
Constructors Constructor Description SwitchCase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Activity>
activities()
Get the activities property: List of activities to execute for satisfied case condition.void
validate()
Validates the instance.String
value()
Get the value property: Expected value that satisfies the expression result of the 'on' property.SwitchCase
withActivities(List<Activity> activities)
Set the activities property: List of activities to execute for satisfied case condition.SwitchCase
withValue(String value)
Set the value property: Expected value that satisfies the expression result of the 'on' property.
-
-
-
Method Detail
-
value
public String value()
Get the value property: Expected value that satisfies the expression result of the 'on' property.- Returns:
- the value value.
-
withValue
public SwitchCase withValue(String value)
Set the value property: Expected value that satisfies the expression result of the 'on' property.- Parameters:
value
- the value value to set.- Returns:
- the SwitchCase object itself.
-
activities
public List<Activity> activities()
Get the activities property: List of activities to execute for satisfied case condition.- Returns:
- the activities value.
-
withActivities
public SwitchCase withActivities(List<Activity> activities)
Set the activities property: List of activities to execute for satisfied case condition.- Parameters:
activities
- the activities value to set.- Returns:
- the SwitchCase object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-