Class ValidationActivity
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.models.Activity
-
- com.azure.resourcemanager.datafactory.models.ControlActivity
-
- com.azure.resourcemanager.datafactory.models.ValidationActivity
-
public final class ValidationActivity extends ControlActivity
This activity verifies that an external resource exists.
-
-
Constructor Summary
Constructors Constructor Description ValidationActivity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectchildItems()Get the childItems property: Can be used if dataset points to a folder.DatasetReferencedataset()Get the dataset property: Validation activity dataset reference.ObjectminimumSize()Get the minimumSize property: Can be used if dataset points to a file.Objectsleep()Get the sleep property: A delay in seconds between validation attempts.Objecttimeout()Get the timeout property: Specifies the timeout for the activity to run.voidvalidate()Validates the instance.ValidationActivitywithChildItems(Object childItems)Set the childItems property: Can be used if dataset points to a folder.ValidationActivitywithDataset(DatasetReference dataset)Set the dataset property: Validation activity dataset reference.ValidationActivitywithDependsOn(List<ActivityDependency> dependsOn)Set the dependsOn property: Activity depends on condition.ValidationActivitywithDescription(String description)Set the description property: Activity description.ValidationActivitywithMinimumSize(Object minimumSize)Set the minimumSize property: Can be used if dataset points to a file.ValidationActivitywithName(String name)Set the name property: Activity name.ValidationActivitywithSleep(Object sleep)Set the sleep property: A delay in seconds between validation attempts.ValidationActivitywithTimeout(Object timeout)Set the timeout property: Specifies the timeout for the activity to run.ValidationActivitywithUserProperties(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 ValidationActivity withName(String name)
Set the name property: Activity name.- Overrides:
withNamein classControlActivity- Parameters:
name- the name value to set.- Returns:
- the Activity object itself.
-
withDescription
public ValidationActivity withDescription(String description)
Set the description property: Activity description.- Overrides:
withDescriptionin classControlActivity- Parameters:
description- the description value to set.- Returns:
- the Activity object itself.
-
withDependsOn
public ValidationActivity withDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.- Overrides:
withDependsOnin classControlActivity- Parameters:
dependsOn- the dependsOn value to set.- Returns:
- the Activity object itself.
-
withUserProperties
public ValidationActivity withUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.- Overrides:
withUserPropertiesin classControlActivity- Parameters:
userProperties- the userProperties value to set.- Returns:
- the Activity object itself.
-
timeout
public Object timeout()
Get the timeout property: Specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).- Returns:
- the timeout value.
-
withTimeout
public ValidationActivity withTimeout(Object timeout)
Set the timeout property: Specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).- Parameters:
timeout- the timeout value to set.- Returns:
- the ValidationActivity object itself.
-
sleep
public Object sleep()
Get the sleep property: A delay in seconds between validation attempts. If no value is specified, 10 seconds will be used as the default. Type: integer (or Expression with resultType integer).- Returns:
- the sleep value.
-
withSleep
public ValidationActivity withSleep(Object sleep)
Set the sleep property: A delay in seconds between validation attempts. If no value is specified, 10 seconds will be used as the default. Type: integer (or Expression with resultType integer).- Parameters:
sleep- the sleep value to set.- Returns:
- the ValidationActivity object itself.
-
minimumSize
public Object minimumSize()
Get the minimumSize property: Can be used if dataset points to a file. The file must be greater than or equal in size to the value specified. Type: integer (or Expression with resultType integer).- Returns:
- the minimumSize value.
-
withMinimumSize
public ValidationActivity withMinimumSize(Object minimumSize)
Set the minimumSize property: Can be used if dataset points to a file. The file must be greater than or equal in size to the value specified. Type: integer (or Expression with resultType integer).- Parameters:
minimumSize- the minimumSize value to set.- Returns:
- the ValidationActivity object itself.
-
childItems
public Object childItems()
Get the childItems property: Can be used if dataset points to a folder. If set to true, the folder must have at least one file. If set to false, the folder must be empty. Type: boolean (or Expression with resultType boolean).- Returns:
- the childItems value.
-
withChildItems
public ValidationActivity withChildItems(Object childItems)
Set the childItems property: Can be used if dataset points to a folder. If set to true, the folder must have at least one file. If set to false, the folder must be empty. Type: boolean (or Expression with resultType boolean).- Parameters:
childItems- the childItems value to set.- Returns:
- the ValidationActivity object itself.
-
dataset
public DatasetReference dataset()
Get the dataset property: Validation activity dataset reference.- Returns:
- the dataset value.
-
withDataset
public ValidationActivity withDataset(DatasetReference dataset)
Set the dataset property: Validation activity dataset reference.- Parameters:
dataset- the dataset value to set.- Returns:
- the ValidationActivity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classControlActivity- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-