WebhookActivity Class
- java.
lang. Object - com.
azure. resourcemanager. datafactory. models. Activity - com.
azure. resourcemanager. datafactory. models. ControlActivity - com.
azure. resourcemanager. datafactory. models. WebhookActivity
- com.
- com.
- com.
public final class WebhookActivity
extends ControlActivity
WebHook activity.
Constructor Summary
| Constructor | Description |
|---|---|
| WebhookActivity() |
Creates an instance of Webhook |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Web |
authentication()
Get the authentication property: Authentication method used for calling the endpoint. |
| Object |
body()
Get the body property: Represents the payload that will be sent to the endpoint. |
|
static
Webhook |
fromJson(JsonReader jsonReader)
Reads an instance of Webhook |
| Map<String,Object> |
headers()
Get the headers property: Represents the headers that will be sent to the request. |
|
Webhook |
method()
Get the method property: Rest API method for target endpoint. |
|
Secure |
policy()
Get the policy property: Activity policy. |
| Object |
reportStatusOnCallBack()
Get the report |
| String |
timeout()
Get the timeout property: The timeout within which the webhook should be called back. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Type of activity. |
| Object |
url()
Get the url property: Web |
| void |
validate()
Validates the instance. |
|
Webhook |
withAuthentication(WebActivityAuthentication authentication)
Set the authentication property: Authentication method used for calling the endpoint. |
|
Webhook |
withBody(Object body)
Set the body property: Represents the payload that will be sent to the endpoint. |
|
Webhook |
withDependsOn(List<ActivityDependency> dependsOn)
Set the depends |
|
Webhook |
withDescription(String description)
Set the description property: Activity description. |
|
Webhook |
withHeaders(Map<String,Object> headers)
Set the headers property: Represents the headers that will be sent to the request. |
|
Webhook |
withMethod(WebhookActivityMethod method)
Set the method property: Rest API method for target endpoint. |
|
Webhook |
withName(String name)
Set the name property: Activity name. |
|
Webhook |
withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)
Set the on |
|
Webhook |
withPolicy(SecureInputOutputPolicy policy)
Set the policy property: Activity policy. |
|
Webhook |
withReportStatusOnCallBack(Object reportStatusOnCallBack)
Set the report |
|
Webhook |
withState(ActivityState state)
Set the state property: Activity state. |
|
Webhook |
withTimeout(String timeout)
Set the timeout property: The timeout within which the webhook should be called back. |
|
Webhook |
withUrl(Object url)
Set the url property: Web |
|
Webhook |
withUserProperties(List<UserProperty> userProperties)
Set the user |
Methods inherited from Activity
Methods inherited from ControlActivity
Methods inherited from java.lang.Object
Constructor Details
WebhookActivity
public WebhookActivity()
Creates an instance of WebhookActivity class.
Method Details
authentication
public WebActivityAuthentication authentication()
Get the authentication property: Authentication method used for calling the endpoint.
Returns:
body
public Object body()
Get the body property: Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string).
Returns:
fromJson
public static WebhookActivity fromJson(JsonReader jsonReader)
Reads an instance of WebhookActivity from the JsonReader.
Parameters:
Returns:
Throws:
headers
public Map<String,Object> headers()
Get the headers property: Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string).
Returns:
method
public WebhookActivityMethod method()
Get the method property: Rest API method for target endpoint.
Returns:
policy
public SecureInputOutputPolicy policy()
Get the policy property: Activity policy.
Returns:
reportStatusOnCallBack
public Object reportStatusOnCallBack()
Get the reportStatusOnCallBack property: When set to true, statusCode, output and error in callback request body will be consumed by activity. The activity can be marked as failed by setting statusCode >= 400 in callback request. Default is false. Type: boolean (or Expression with resultType boolean).
Returns:
timeout
public String timeout()
Get the timeout property: The timeout within which the webhook should be called back. If there is no value specified, it defaults to 10 minutes. Type: string. Pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
WebhookActivity.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Type of activity.
Overrides:
WebhookActivity.type()Returns:
url
public Object url()
Get the url property: WebHook activity target endpoint and path. Type: string (or Expression with resultType string).
Returns:
validate
public void validate()
Validates the instance.
Overrides:
WebhookActivity.validate()withAuthentication
public WebhookActivity withAuthentication(WebActivityAuthentication authentication)
Set the authentication property: Authentication method used for calling the endpoint.
Parameters:
Returns:
withBody
public WebhookActivity withBody(Object body)
Set the body property: Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string).
Parameters:
Returns:
withDependsOn
public WebhookActivity withDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.
Overrides:
WebhookActivity.withDependsOn(List<ActivityDependency> dependsOn)Parameters:
withDescription
public WebhookActivity withDescription(String description)
Set the description property: Activity description.
Overrides:
WebhookActivity.withDescription(String description)Parameters:
withHeaders
public WebhookActivity withHeaders(Map<String,Object> headers)
Set the headers property: Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string).
Parameters:
Returns:
withMethod
public WebhookActivity withMethod(WebhookActivityMethod method)
Set the method property: Rest API method for target endpoint.
Parameters:
Returns:
withName
public WebhookActivity withName(String name)
Set the name property: Activity name.
Overrides:
WebhookActivity.withName(String name)Parameters:
withOnInactiveMarkAs
public WebhookActivity withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)
Set the onInactiveMarkAs property: Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default.
Overrides:
WebhookActivity.withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)Parameters:
withPolicy
public WebhookActivity withPolicy(SecureInputOutputPolicy policy)
Set the policy property: Activity policy.
Parameters:
Returns:
withReportStatusOnCallBack
public WebhookActivity withReportStatusOnCallBack(Object reportStatusOnCallBack)
Set the reportStatusOnCallBack property: When set to true, statusCode, output and error in callback request body will be consumed by activity. The activity can be marked as failed by setting statusCode >= 400 in callback request. Default is false. Type: boolean (or Expression with resultType boolean).
Parameters:
Returns:
withState
public WebhookActivity withState(ActivityState state)
Set the state property: Activity state. This is an optional property and if not provided, the state will be Active by default.
Overrides:
WebhookActivity.withState(ActivityState state)Parameters:
withTimeout
public WebhookActivity withTimeout(String timeout)
Set the timeout property: The timeout within which the webhook should be called back. If there is no value specified, it defaults to 10 minutes. Type: string. Pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
Parameters:
Returns:
withUrl
public WebhookActivity withUrl(Object url)
Set the url property: WebHook activity target endpoint and path. Type: string (or Expression with resultType string).
Parameters:
Returns:
withUserProperties
public WebhookActivity withUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.
Overrides:
WebhookActivity.withUserProperties(List<UserProperty> userProperties)Parameters: