WebHookActivity Class
- java.
lang. Object - com.
azure. analytics. synapse. artifacts. models. Activity - com.
azure. analytics. synapse. artifacts. models. ControlActivity - com.
azure. analytics. synapse. artifacts. models. WebHookActivity
- com.
- com.
- com.
public class WebHookActivity
extends ControlActivity
WebHook activity.
Constructor Summary
| Constructor | Description |
|---|---|
| WebHookActivity() |
Creates an instance of Web |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Web |
fromJson(JsonReader jsonReader)
Reads an instance of Web |
|
Web |
getAuthentication()
Get the authentication property: Authentication method used for calling the endpoint. |
| Object |
getBody()
Get the body property: Represents the payload that will be sent to the endpoint. |
| Object |
getHeaders()
Get the headers property: Represents the headers that will be sent to the request. |
|
Web |
getMethod()
Get the method property: Rest API method for target endpoint. |
| Object |
getReportStatusOnCallBack()
Get the report |
| String |
getTimeout()
Get the timeout property: The timeout within which the webhook should be called back. |
| String |
getType()
Get the type property: Type of activity. |
| Object |
getUrl()
Get the url property: Web |
|
Web |
setAuthentication(WebActivityAuthentication authentication)
Set the authentication property: Authentication method used for calling the endpoint. |
|
Web |
setBody(Object body)
Set the body property: Represents the payload that will be sent to the endpoint. |
|
Web |
setDependsOn(List<ActivityDependency> dependsOn)
Set the depends |
|
Web |
setDescription(String description)
Set the description property: Activity description. |
|
Web |
setHeaders(Object headers)
Set the headers property: Represents the headers that will be sent to the request. |
|
Web |
setMethod(WebHookActivityMethod method)
Set the method property: Rest API method for target endpoint. |
|
Web |
setName(String name)
Set the name property: Activity name. |
|
Web |
setOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)
Set the on |
|
Web |
setReportStatusOnCallBack(Object reportStatusOnCallBack)
Set the report |
|
Web |
setState(ActivityState state)
Set the state property: Activity state. |
|
Web |
setTimeout(String timeout)
Set the timeout property: The timeout within which the webhook should be called back. |
|
Web |
setUrl(Object url)
Set the url property: Web |
|
Web |
setUserProperties(List<UserProperty> userProperties)
Set the user |
|
Json |
toJson(JsonWriter jsonWriter) |
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
fromJson
public static WebHookActivity fromJson(JsonReader jsonReader)
Reads an instance of WebHookActivity from the JsonReader.
Parameters:
Returns:
Throws:
getAuthentication
public WebActivityAuthentication getAuthentication()
Get the authentication property: Authentication method used for calling the endpoint.
Returns:
getBody
public Object getBody()
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:
getHeaders
public Object getHeaders()
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:
getMethod
public WebHookActivityMethod getMethod()
Get the method property: Rest API method for target endpoint.
Returns:
getReportStatusOnCallBack
public Object getReportStatusOnCallBack()
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:
getTimeout
public String getTimeout()
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:
getType
public String getType()
Get the type property: Type of activity.
Overrides:
WebHookActivity.getType()Returns:
getUrl
public Object getUrl()
Get the url property: WebHook activity target endpoint and path. Type: string (or Expression with resultType string).
Returns:
setAuthentication
public WebHookActivity setAuthentication(WebActivityAuthentication authentication)
Set the authentication property: Authentication method used for calling the endpoint.
Parameters:
Returns:
setBody
public WebHookActivity setBody(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:
setDependsOn
public WebHookActivity setDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.
Overrides:
WebHookActivity.setDependsOn(List<ActivityDependency> dependsOn)Parameters:
setDescription
public WebHookActivity setDescription(String description)
Set the description property: Activity description.
Overrides:
WebHookActivity.setDescription(String description)Parameters:
setHeaders
public WebHookActivity setHeaders(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:
setMethod
public WebHookActivity setMethod(WebHookActivityMethod method)
Set the method property: Rest API method for target endpoint.
Parameters:
Returns:
setName
public WebHookActivity setName(String name)
Set the name property: Activity name.
Overrides:
WebHookActivity.setName(String name)Parameters:
setOnInactiveMarkAs
public WebHookActivity setOnInactiveMarkAs(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.setOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)Parameters:
setReportStatusOnCallBack
public WebHookActivity setReportStatusOnCallBack(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:
setState
public WebHookActivity setState(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.setState(ActivityState state)Parameters:
setTimeout
public WebHookActivity setTimeout(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:
setUrl
public WebHookActivity setUrl(Object url)
Set the url property: WebHook activity target endpoint and path. Type: string (or Expression with resultType string).
Parameters:
Returns:
setUserProperties
public WebHookActivity setUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.
Overrides:
WebHookActivity.setUserProperties(List<UserProperty> userProperties)Parameters:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
WebHookActivity.toJson(JsonWriter jsonWriter)Parameters:
Throws: