Class WebActivity
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.models.Activity
-
- com.azure.resourcemanager.datafactory.models.ExecutionActivity
-
- com.azure.resourcemanager.datafactory.models.WebActivity
-
public final class WebActivity extends ExecutionActivity
Web activity.
-
-
Constructor Summary
Constructors Constructor Description WebActivity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebActivityAuthenticationauthentication()Get the authentication property: Authentication method used for calling the endpoint.Objectbody()Get the body property: Represents the payload that will be sent to the endpoint.IntegrationRuntimeReferenceconnectVia()Get the connectVia property: The integration runtime reference.List<DatasetReference>datasets()Get the datasets property: List of datasets passed to web endpoint.Objectheaders()Get the headers property: Represents the headers that will be sent to the request.List<LinkedServiceReference>linkedServices()Get the linkedServices property: List of linked services passed to web endpoint.WebActivityMethodmethod()Get the method property: Rest API method for target endpoint.Objecturl()Get the url property: Web activity target endpoint and path.voidvalidate()Validates the instance.WebActivitywithAuthentication(WebActivityAuthentication authentication)Set the authentication property: Authentication method used for calling the endpoint.WebActivitywithBody(Object body)Set the body property: Represents the payload that will be sent to the endpoint.WebActivitywithConnectVia(IntegrationRuntimeReference connectVia)Set the connectVia property: The integration runtime reference.WebActivitywithDatasets(List<DatasetReference> datasets)Set the datasets property: List of datasets passed to web endpoint.WebActivitywithDependsOn(List<ActivityDependency> dependsOn)Set the dependsOn property: Activity depends on condition.WebActivitywithDescription(String description)Set the description property: Activity description.WebActivitywithHeaders(Object headers)Set the headers property: Represents the headers that will be sent to the request.WebActivitywithLinkedServiceName(LinkedServiceReference linkedServiceName)Set the linkedServiceName property: Linked service reference.WebActivitywithLinkedServices(List<LinkedServiceReference> linkedServices)Set the linkedServices property: List of linked services passed to web endpoint.WebActivitywithMethod(WebActivityMethod method)Set the method property: Rest API method for target endpoint.WebActivitywithName(String name)Set the name property: Activity name.WebActivitywithPolicy(ActivityPolicy policy)Set the policy property: Activity policy.WebActivitywithUrl(Object url)Set the url property: Web activity target endpoint and path.WebActivitywithUserProperties(List<UserProperty> userProperties)Set the userProperties property: Activity user properties.-
Methods inherited from class com.azure.resourcemanager.datafactory.models.ExecutionActivity
linkedServiceName, policy
-
Methods inherited from class com.azure.resourcemanager.datafactory.models.Activity
additionalProperties, dependsOn, description, name, userProperties, withAdditionalProperties
-
-
-
-
Method Detail
-
withLinkedServiceName
public WebActivity withLinkedServiceName(LinkedServiceReference linkedServiceName)
Set the linkedServiceName property: Linked service reference.- Overrides:
withLinkedServiceNamein classExecutionActivity- Parameters:
linkedServiceName- the linkedServiceName value to set.- Returns:
- the ExecutionActivity object itself.
-
withPolicy
public WebActivity withPolicy(ActivityPolicy policy)
Set the policy property: Activity policy.- Overrides:
withPolicyin classExecutionActivity- Parameters:
policy- the policy value to set.- Returns:
- the ExecutionActivity object itself.
-
withName
public WebActivity withName(String name)
Set the name property: Activity name.- Overrides:
withNamein classExecutionActivity- Parameters:
name- the name value to set.- Returns:
- the Activity object itself.
-
withDescription
public WebActivity withDescription(String description)
Set the description property: Activity description.- Overrides:
withDescriptionin classExecutionActivity- Parameters:
description- the description value to set.- Returns:
- the Activity object itself.
-
withDependsOn
public WebActivity withDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.- Overrides:
withDependsOnin classExecutionActivity- Parameters:
dependsOn- the dependsOn value to set.- Returns:
- the Activity object itself.
-
withUserProperties
public WebActivity withUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.- Overrides:
withUserPropertiesin classExecutionActivity- Parameters:
userProperties- the userProperties value to set.- Returns:
- the Activity object itself.
-
method
public WebActivityMethod method()
Get the method property: Rest API method for target endpoint.- Returns:
- the method value.
-
withMethod
public WebActivity withMethod(WebActivityMethod method)
Set the method property: Rest API method for target endpoint.- Parameters:
method- the method value to set.- Returns:
- the WebActivity object itself.
-
url
public Object url()
Get the url property: Web activity target endpoint and path. Type: string (or Expression with resultType string).- Returns:
- the url value.
-
withUrl
public WebActivity withUrl(Object url)
Set the url property: Web activity target endpoint and path. Type: string (or Expression with resultType string).- Parameters:
url- the url value to set.- Returns:
- the WebActivity object itself.
-
headers
public 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:
- the headers value.
-
withHeaders
public WebActivity withHeaders(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:
headers- the headers value to set.- Returns:
- the WebActivity object itself.
-
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:
- the body value.
-
withBody
public WebActivity 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:
body- the body value to set.- Returns:
- the WebActivity object itself.
-
authentication
public WebActivityAuthentication authentication()
Get the authentication property: Authentication method used for calling the endpoint.- Returns:
- the authentication value.
-
withAuthentication
public WebActivity withAuthentication(WebActivityAuthentication authentication)
Set the authentication property: Authentication method used for calling the endpoint.- Parameters:
authentication- the authentication value to set.- Returns:
- the WebActivity object itself.
-
datasets
public List<DatasetReference> datasets()
Get the datasets property: List of datasets passed to web endpoint.- Returns:
- the datasets value.
-
withDatasets
public WebActivity withDatasets(List<DatasetReference> datasets)
Set the datasets property: List of datasets passed to web endpoint.- Parameters:
datasets- the datasets value to set.- Returns:
- the WebActivity object itself.
-
linkedServices
public List<LinkedServiceReference> linkedServices()
Get the linkedServices property: List of linked services passed to web endpoint.- Returns:
- the linkedServices value.
-
withLinkedServices
public WebActivity withLinkedServices(List<LinkedServiceReference> linkedServices)
Set the linkedServices property: List of linked services passed to web endpoint.- Parameters:
linkedServices- the linkedServices value to set.- Returns:
- the WebActivity object itself.
-
connectVia
public IntegrationRuntimeReference connectVia()
Get the connectVia property: The integration runtime reference.- Returns:
- the connectVia value.
-
withConnectVia
public WebActivity withConnectVia(IntegrationRuntimeReference connectVia)
Set the connectVia property: The integration runtime reference.- Parameters:
connectVia- the connectVia value to set.- Returns:
- the WebActivity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classExecutionActivity- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-