次の方法で共有


ActivityPolicy Class

  • java.lang.Object
    • com.azure.resourcemanager.datafactory.models.ActivityPolicy

Implements

public final class ActivityPolicy
implements JsonSerializable<ActivityPolicy>

Execution policy for an activity.

Constructor Summary

Constructor Description
ActivityPolicy()

Creates an instance of ActivityPolicy class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: Execution policy for an activity.

static ActivityPolicy fromJson(JsonReader jsonReader)

Reads an instance of ActivityPolicy from the JsonReader.

Object retry()

Get the retry property: Maximum ordinary retry attempts.

Integer retryIntervalInSeconds()

Get the retryIntervalInSeconds property: Interval between each retry attempt (in seconds).

Boolean secureInput()

Get the secureInput property: When set to true, Input from activity is considered as secure and will not be logged to monitoring.

Boolean secureOutput()

Get the secureOutput property: When set to true, Output from activity is considered as secure and will not be logged to monitoring.

Object timeout()

Get the timeout property: Specifies the timeout for the activity to run.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ActivityPolicy withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Execution policy for an activity.

ActivityPolicy withRetry(Object retry)

Set the retry property: Maximum ordinary retry attempts.

ActivityPolicy withRetryIntervalInSeconds(Integer retryIntervalInSeconds)

Set the retryIntervalInSeconds property: Interval between each retry attempt (in seconds).

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.

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.

ActivityPolicy withTimeout(Object timeout)

Set the timeout property: Specifies the timeout for the activity to run.

Methods inherited from java.lang.Object

Constructor Details

ActivityPolicy

public ActivityPolicy()

Creates an instance of ActivityPolicy class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: Execution policy for an activity.

Returns:

the additionalProperties value.

fromJson

public static ActivityPolicy fromJson(JsonReader jsonReader)

Reads an instance of ActivityPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ActivityPolicy if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ActivityPolicy.

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.

retryIntervalInSeconds

public Integer retryIntervalInSeconds()

Get the retryIntervalInSeconds property: Interval between each retry attempt (in seconds). The default is 30 sec.

Returns:

the retryIntervalInSeconds value.

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.

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

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.

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.

Applies to