Class ActivityPolicy
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.models.ActivityPolicy
-
public final class ActivityPolicy extends Object
Execution policy for an activity.
-
-
Constructor Summary
Constructors Constructor Description ActivityPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>additionalProperties()Get the additionalProperties property: Execution policy for an activity.Objectretry()Get the retry property: Maximum ordinary retry attempts.IntegerretryIntervalInSeconds()Get the retryIntervalInSeconds property: Interval between each retry attempt (in seconds).BooleansecureInput()Get the secureInput property: When set to true, Input from activity is considered as secure and will not be logged to monitoring.BooleansecureOutput()Get the secureOutput property: When set to true, Output from activity is considered as secure and will not be logged to monitoring.Objecttimeout()Get the timeout property: Specifies the timeout for the activity to run.voidvalidate()Validates the instance.ActivityPolicywithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: Execution policy for an activity.ActivityPolicywithRetry(Object retry)Set the retry property: Maximum ordinary retry attempts.ActivityPolicywithRetryIntervalInSeconds(Integer retryIntervalInSeconds)Set the retryIntervalInSeconds property: Interval between each retry attempt (in seconds).ActivityPolicywithSecureInput(Boolean secureInput)Set the secureInput property: When set to true, Input from activity is considered as secure and will not be logged to monitoring.ActivityPolicywithSecureOutput(Boolean secureOutput)Set the secureOutput property: When set to true, Output from activity is considered as secure and will not be logged to monitoring.ActivityPolicywithTimeout(Object timeout)Set the timeout property: Specifies the timeout for the activity to run.
-
-
-
Method Detail
-
timeout
public Object 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
public ActivityPolicy withTimeout(Object timeout)
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
public Object 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
public ActivityPolicy withRetry(Object retry)
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
public Integer retryIntervalInSeconds()
Get the retryIntervalInSeconds property: Interval between each retry attempt (in seconds). The default is 30 sec.- Returns:
- the retryIntervalInSeconds value.
-
withRetryIntervalInSeconds
public ActivityPolicy withRetryIntervalInSeconds(Integer retryIntervalInSeconds)
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
public Boolean 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
public ActivityPolicy 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.- Parameters:
secureInput- the secureInput value to set.- Returns:
- the ActivityPolicy object itself.
-
secureOutput
public Boolean 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
public ActivityPolicy 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.- Parameters:
secureOutput- the secureOutput value to set.- Returns:
- the ActivityPolicy object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: Execution policy for an activity.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public ActivityPolicy withAdditionalProperties(Map<String,Object> additionalProperties)
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.
-
-