Class IfConditionActivity
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.models.Activity
-
- com.azure.resourcemanager.datafactory.models.ControlActivity
-
- com.azure.resourcemanager.datafactory.models.IfConditionActivity
-
public final class IfConditionActivity extends ControlActivity
This activity evaluates a boolean expression and executes either the activities under the ifTrueActivities property or the ifFalseActivities property depending on the result of the expression.
-
-
Constructor Summary
Constructors Constructor Description IfConditionActivity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
expression()
Get the expression property: An expression that would evaluate to Boolean.List<Activity>
ifFalseActivities()
Get the ifFalseActivities property: List of activities to execute if expression is evaluated to false.List<Activity>
ifTrueActivities()
Get the ifTrueActivities property: List of activities to execute if expression is evaluated to true.void
validate()
Validates the instance.IfConditionActivity
withDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.IfConditionActivity
withDescription(String description)
Set the description property: Activity description.IfConditionActivity
withExpression(Expression expression)
Set the expression property: An expression that would evaluate to Boolean.IfConditionActivity
withIfFalseActivities(List<Activity> ifFalseActivities)
Set the ifFalseActivities property: List of activities to execute if expression is evaluated to false.IfConditionActivity
withIfTrueActivities(List<Activity> ifTrueActivities)
Set the ifTrueActivities property: List of activities to execute if expression is evaluated to true.IfConditionActivity
withName(String name)
Set the name property: Activity name.IfConditionActivity
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
-
-
-
-
Method Detail
-
withName
public IfConditionActivity withName(String name)
Set the name property: Activity name.- Overrides:
withName
in classControlActivity
- Parameters:
name
- the name value to set.- Returns:
- the Activity object itself.
-
withDescription
public IfConditionActivity withDescription(String description)
Set the description property: Activity description.- Overrides:
withDescription
in classControlActivity
- Parameters:
description
- the description value to set.- Returns:
- the Activity object itself.
-
withDependsOn
public IfConditionActivity withDependsOn(List<ActivityDependency> dependsOn)
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
public IfConditionActivity withUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.- Overrides:
withUserProperties
in classControlActivity
- Parameters:
userProperties
- the userProperties value to set.- Returns:
- the Activity object itself.
-
expression
public Expression expression()
Get the expression property: An expression that would evaluate to Boolean. This is used to determine the block of activities (ifTrueActivities or ifFalseActivities) that will be executed.- Returns:
- the expression value.
-
withExpression
public IfConditionActivity withExpression(Expression expression)
Set the expression property: An expression that would evaluate to Boolean. This is used to determine the block of activities (ifTrueActivities or ifFalseActivities) that will be executed.- Parameters:
expression
- the expression value to set.- Returns:
- the IfConditionActivity object itself.
-
ifTrueActivities
public List<Activity> ifTrueActivities()
Get the ifTrueActivities property: List of activities to execute if expression is evaluated to true. This is an optional property and if not provided, the activity will exit without any action.- Returns:
- the ifTrueActivities value.
-
withIfTrueActivities
public IfConditionActivity withIfTrueActivities(List<Activity> ifTrueActivities)
Set the ifTrueActivities property: List of activities to execute if expression is evaluated to true. This is an optional property and if not provided, the activity will exit without any action.- Parameters:
ifTrueActivities
- the ifTrueActivities value to set.- Returns:
- the IfConditionActivity object itself.
-
ifFalseActivities
public List<Activity> ifFalseActivities()
Get the ifFalseActivities property: List of activities to execute if expression is evaluated to false. This is an optional property and if not provided, the activity will exit without any action.- Returns:
- the ifFalseActivities value.
-
withIfFalseActivities
public IfConditionActivity withIfFalseActivities(List<Activity> ifFalseActivities)
Set the ifFalseActivities property: List of activities to execute if expression is evaluated to false. This is an optional property and if not provided, the activity will exit without any action.- Parameters:
ifFalseActivities
- the ifFalseActivities value to set.- Returns:
- the IfConditionActivity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classControlActivity
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-