Class WebhookActivity
java.lang.Object
com.azure.resourcemanager.datafactory.models.Activity
com.azure.resourcemanager.datafactory.models.ControlActivity
com.azure.resourcemanager.datafactory.models.WebhookActivity
WebHook activity.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the authentication property: Authentication method used for calling the endpoint.body()
Get the body property: Represents the payload that will be sent to the endpoint.headers()
Get the headers property: Represents the headers that will be sent to the request.method()
Get the method property: Rest API method for target endpoint.Get the reportStatusOnCallBack property: When set to true, statusCode, output and error in callback request body will be consumed by activity.timeout()
Get the timeout property: The timeout within which the webhook should be called back.url()
Get the url property: WebHook activity target endpoint and path.void
validate()
Validates the instance.withAuthentication
(WebActivityAuthentication authentication) Set the authentication property: Authentication method used for calling the endpoint.Set the body property: Represents the payload that will be sent to the endpoint.withDependsOn
(List<ActivityDependency> dependsOn) Set the dependsOn property: Activity depends on condition.withDescription
(String description) Set the description property: Activity description.withHeaders
(Object headers) Set the headers property: Represents the headers that will be sent to the request.withMethod
(WebhookActivityMethod method) Set the method property: Rest API method for target endpoint.Set the name property: Activity name.withReportStatusOnCallBack
(Object reportStatusOnCallBack) Set the reportStatusOnCallBack property: When set to true, statusCode, output and error in callback request body will be consumed by activity.withTimeout
(String timeout) Set the timeout property: The timeout within which the webhook should be called back.Set the url property: WebHook activity target endpoint and path.withUserProperties
(List<UserProperty> userProperties) Set the userProperties property: Activity user properties.Methods inherited from class com.azure.resourcemanager.datafactory.models.Activity
additionalProperties, dependsOn, description, name, userProperties, withAdditionalProperties
-
Constructor Details
-
WebhookActivity
public WebhookActivity()Creates an instance of WebhookActivity class.
-
-
Method Details
-
withName
Set the name property: Activity name.- Overrides:
withName
in classControlActivity
- Parameters:
name
- the name value to set.- Returns:
- the Activity object itself.
-
withDescription
Set the description property: Activity description.- Overrides:
withDescription
in classControlActivity
- Parameters:
description
- the description value to set.- Returns:
- the Activity object itself.
-
withDependsOn
Set the dependsOn property: Activity depends on condition.- Overrides:
withDependsOn
in classControlActivity
- Parameters:
dependsOn
- the dependsOn value to set.- Returns:
- the Activity object itself.
-
withUserProperties
Set the userProperties property: Activity user properties.- Overrides:
withUserProperties
in classControlActivity
- Parameters:
userProperties
- the userProperties value to set.- Returns:
- the Activity object itself.
-
method
Get the method property: Rest API method for target endpoint.- Returns:
- the method value.
-
withMethod
Set the method property: Rest API method for target endpoint.- Parameters:
method
- the method value to set.- Returns:
- the WebhookActivity object itself.
-
url
Get the url property: WebHook activity target endpoint and path. Type: string (or Expression with resultType string).- Returns:
- the url value.
-
withUrl
Set the url property: WebHook activity target endpoint and path. Type: string (or Expression with resultType string).- Parameters:
url
- the url value to set.- Returns:
- the WebhookActivity object itself.
-
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:
- the timeout value.
-
withTimeout
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:
timeout
- the timeout value to set.- Returns:
- the WebhookActivity object itself.
-
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:
- the headers value.
-
withHeaders
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:
headers
- the headers value to set.- Returns:
- the WebhookActivity object itself.
-
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:
- the body value.
-
withBody
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:
body
- the body value to set.- Returns:
- the WebhookActivity object itself.
-
authentication
Get the authentication property: Authentication method used for calling the endpoint.- Returns:
- the authentication value.
-
withAuthentication
Set the authentication property: Authentication method used for calling the endpoint.- Parameters:
authentication
- the authentication value to set.- Returns:
- the WebhookActivity object itself.
-
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:
- the reportStatusOnCallBack value.
-
withReportStatusOnCallBack
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:
reportStatusOnCallBack
- the reportStatusOnCallBack value to set.- Returns:
- the WebhookActivity object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classControlActivity
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-