Class ForEachActivity
java.lang.Object
com.azure.resourcemanager.datafactory.models.Activity
com.azure.resourcemanager.datafactory.models.ControlActivity
com.azure.resourcemanager.datafactory.models.ForEachActivity
This activity is used for iterating over a collection and execute given activities.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the activities property: List of activities to execute .Get the batchCount property: Batch count to be used for controlling the number of parallel execution (when isSequential is set to false).Get the isSequential property: Should the loop be executed in sequence or in parallel (max 50).items()
Get the items property: Collection to iterate.void
validate()
Validates the instance.withActivities
(List<Activity> activities) Set the activities property: List of activities to execute .withBatchCount
(Integer batchCount) Set the batchCount property: Batch count to be used for controlling the number of parallel execution (when isSequential is set to false).withDependsOn
(List<ActivityDependency> dependsOn) Set the dependsOn property: Activity depends on condition.withDescription
(String description) Set the description property: Activity description.withIsSequential
(Boolean isSequential) Set the isSequential property: Should the loop be executed in sequence or in parallel (max 50).withItems
(Expression items) Set the items property: Collection to iterate.Set the name property: Activity name.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
-
Constructor Details
-
ForEachActivity
public ForEachActivity()Creates an instance of ForEachActivity class.
-
-
Method Details
-
withName
Set the name property: Activity name.- Overrides:
withName
in classControlActivity
- Parameters:
name
- the name value to set.- Returns:
- the Activity object itself.
-
withDescription
Set the description property: Activity description.- Overrides:
withDescription
in classControlActivity
- Parameters:
description
- the description value to set.- Returns:
- the Activity object itself.
-
withDependsOn
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
Set the userProperties property: Activity user properties.- Overrides:
withUserProperties
in classControlActivity
- Parameters:
userProperties
- the userProperties value to set.- Returns:
- the Activity object itself.
-
isSequential
Get the isSequential property: Should the loop be executed in sequence or in parallel (max 50).- Returns:
- the isSequential value.
-
withIsSequential
Set the isSequential property: Should the loop be executed in sequence or in parallel (max 50).- Parameters:
isSequential
- the isSequential value to set.- Returns:
- the ForEachActivity object itself.
-
batchCount
Get the batchCount property: Batch count to be used for controlling the number of parallel execution (when isSequential is set to false).- Returns:
- the batchCount value.
-
withBatchCount
Set the batchCount property: Batch count to be used for controlling the number of parallel execution (when isSequential is set to false).- Parameters:
batchCount
- the batchCount value to set.- Returns:
- the ForEachActivity object itself.
-
items
Get the items property: Collection to iterate.- Returns:
- the items value.
-
withItems
Set the items property: Collection to iterate.- Parameters:
items
- the items value to set.- Returns:
- the ForEachActivity object itself.
-
activities
Get the activities property: List of activities to execute .- Returns:
- the activities value.
-
withActivities
Set the activities property: List of activities to execute .- Parameters:
activities
- the activities value to set.- Returns:
- the ForEachActivity object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classControlActivity
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-