public class WebhookActivity extends ControlActivity
| Constructor and Description |
|---|
WebhookActivity() |
| Modifier and Type | Method and Description |
|---|---|
WebActivityAuthentication |
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.
|
Object |
headers()
Get the headers property: Represents the headers that will be sent to the request.
|
WebhookActivityMethod |
method()
Get the method property: Rest API method for target endpoint.
|
Object |
reportStatusOnCallBack()
Get the reportStatusOnCallBack property: When set to true, statusCode, output and error in callback request body
will be consumed by activity.
|
String |
timeout()
Get the timeout property: The timeout within which the webhook should be called back.
|
Object |
url()
Get the url property: WebHook activity target endpoint and path.
|
void |
validate()
Validates the instance.
|
WebhookActivity |
withAuthentication(WebActivityAuthentication authentication)
Set the authentication property: Authentication method used for calling the endpoint.
|
WebhookActivity |
withBody(Object body)
Set the body property: Represents the payload that will be sent to the endpoint.
|
WebhookActivity |
withDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.
|
WebhookActivity |
withDescription(String description)
Set the description property: Activity description.
|
WebhookActivity |
withHeaders(Object headers)
Set the headers property: Represents the headers that will be sent to the request.
|
WebhookActivity |
withMethod(WebhookActivityMethod method)
Set the method property: Rest API method for target endpoint.
|
WebhookActivity |
withName(String name)
Set the name property: Activity name.
|
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.
|
WebhookActivity |
withTimeout(String timeout)
Set the timeout property: The timeout within which the webhook should be called back.
|
WebhookActivity |
withUrl(Object url)
Set the url property: WebHook activity target endpoint and path.
|
WebhookActivity |
withUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.
|
additionalProperties, dependsOn, description, name, userProperties, withAdditionalPropertiespublic WebhookActivityMethod method()
public WebhookActivity withMethod(WebhookActivityMethod method)
method - the method value to set.public Object url()
public WebhookActivity withUrl(Object url)
url - the url value to set.public String timeout()
public WebhookActivity withTimeout(String timeout)
timeout - the timeout value to set.public Object headers()
public WebhookActivity withHeaders(Object headers)
headers - the headers value to set.public Object body()
public WebhookActivity withBody(Object body)
body - the body value to set.public WebActivityAuthentication authentication()
public WebhookActivity withAuthentication(WebActivityAuthentication authentication)
authentication - the authentication value to set.public Object reportStatusOnCallBack()
public WebhookActivity withReportStatusOnCallBack(Object reportStatusOnCallBack)
reportStatusOnCallBack - the reportStatusOnCallBack value to set.public WebhookActivity withName(String name)
withName in class ControlActivityname - the name value to set.public WebhookActivity withDescription(String description)
withDescription in class ControlActivitydescription - the description value to set.public WebhookActivity withDependsOn(List<ActivityDependency> dependsOn)
withDependsOn in class ControlActivitydependsOn - the dependsOn value to set.public WebhookActivity withUserProperties(List<UserProperty> userProperties)
withUserProperties in class ControlActivityuserProperties - the userProperties value to set.public void validate()
validate in class ControlActivityIllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.