Class ActivityPolicy
java.lang.Object
com.azure.resourcemanager.datafactory.models.ActivityPolicy
Execution policy for an activity.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: Execution policy for an activity.retry()
Get the retry property: Maximum ordinary retry attempts.Get the retryIntervalInSeconds property: Interval between each retry attempt (in seconds).Get the secureInput property: When set to true, Input from activity is considered as secure and will not be logged to monitoring.Get the secureOutput property: When set to true, Output from activity is considered as secure and will not be logged to monitoring.timeout()
Get the timeout property: Specifies the timeout for the activity to run.void
validate()
Validates the instance.withAdditionalProperties
(Map<String, Object> additionalProperties) Set the additionalProperties property: Execution policy for an activity.Set the retry property: Maximum ordinary retry attempts.withRetryIntervalInSeconds
(Integer retryIntervalInSeconds) Set the retryIntervalInSeconds property: Interval between each retry attempt (in seconds).withSecureInput
(Boolean secureInput) Set the secureInput property: When set to true, Input from activity is considered as secure and will not be logged to monitoring.withSecureOutput
(Boolean secureOutput) Set the secureOutput property: When set to true, Output from activity is considered as secure and will not be logged to monitoring.withTimeout
(Object timeout) Set the timeout property: Specifies the timeout for the activity to run.
-
Constructor Details
-
ActivityPolicy
public ActivityPolicy()Creates an instance of ActivityPolicy class.
-
-
Method Details
-
timeout
Get the timeout property: Specifies the timeout for the activity to run. The default timeout is 7 days. 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
Set the timeout property: Specifies the timeout for the activity to run. The default timeout is 7 days. 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 ActivityPolicy object itself.
-
retry
Get the retry property: Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0.- Returns:
- the retry value.
-
withRetry
Set the retry property: Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0.- Parameters:
retry
- the retry value to set.- Returns:
- the ActivityPolicy object itself.
-
retryIntervalInSeconds
Get the retryIntervalInSeconds property: Interval between each retry attempt (in seconds). The default is 30 sec.- Returns:
- the retryIntervalInSeconds value.
-
withRetryIntervalInSeconds
Set the retryIntervalInSeconds property: Interval between each retry attempt (in seconds). The default is 30 sec.- Parameters:
retryIntervalInSeconds
- the retryIntervalInSeconds value to set.- Returns:
- the ActivityPolicy object itself.
-
secureInput
Get the secureInput property: When set to true, Input from activity is considered as secure and will not be logged to monitoring.- Returns:
- the secureInput value.
-
withSecureInput
Set the secureInput property: When set to true, Input from activity is considered as secure and will not be logged to monitoring.- Parameters:
secureInput
- the secureInput value to set.- Returns:
- the ActivityPolicy object itself.
-
secureOutput
Get the secureOutput property: When set to true, Output from activity is considered as secure and will not be logged to monitoring.- Returns:
- the secureOutput value.
-
withSecureOutput
Set the secureOutput property: When set to true, Output from activity is considered as secure and will not be logged to monitoring.- Parameters:
secureOutput
- the secureOutput value to set.- Returns:
- the ActivityPolicy object itself.
-
additionalProperties
Get the additionalProperties property: Execution policy for an activity.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: Execution policy for an activity.- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the ActivityPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-