AzureFunctionActivity Class
- java.
lang. Object - com.
azure. analytics. synapse. artifacts. models. Activity - com.
azure. analytics. synapse. artifacts. models. ExecutionActivity - com.
azure. analytics. synapse. artifacts. models. AzureFunctionActivity
- com.
- com.
- com.
public class AzureFunctionActivity
extends ExecutionActivity
Azure Function activity.
Constructor Summary
| Constructor | Description |
|---|---|
| AzureFunctionActivity() |
Creates an instance of Azure |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Azure |
fromJson(JsonReader jsonReader)
Reads an instance of Azure |
| Object |
getBody()
Get the body property: Represents the payload that will be sent to the endpoint. |
| Object |
getFunctionName()
Get the function |
| Object |
getHeaders()
Get the headers property: Represents the headers that will be sent to the request. |
|
Azure |
getMethod()
Get the method property: Rest API method for target endpoint. |
| String |
getType()
Get the type property: Type of activity. |
|
Azure |
setBody(Object body)
Set the body property: Represents the payload that will be sent to the endpoint. |
|
Azure |
setDependsOn(List<ActivityDependency> dependsOn)
Set the depends |
|
Azure |
setDescription(String description)
Set the description property: Activity description. |
|
Azure |
setFunctionName(Object functionName)
Set the function |
|
Azure |
setHeaders(Object headers)
Set the headers property: Represents the headers that will be sent to the request. |
|
Azure |
setLinkedServiceName(LinkedServiceReference linkedServiceName)
Set the linked |
|
Azure |
setMethod(AzureFunctionActivityMethod method)
Set the method property: Rest API method for target endpoint. |
|
Azure |
setName(String name)
Set the name property: Activity name. |
|
Azure |
setOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)
Set the on |
|
Azure |
setPolicy(ActivityPolicy policy)
Set the policy property: Activity policy. |
|
Azure |
setState(ActivityState state)
Set the state property: Activity state. |
|
Azure |
setUserProperties(List<UserProperty> userProperties)
Set the user |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from Activity
Methods inherited from ExecutionActivity
Methods inherited from java.lang.Object
Constructor Details
AzureFunctionActivity
public AzureFunctionActivity()
Creates an instance of AzureFunctionActivity class.
Method Details
fromJson
public static AzureFunctionActivity fromJson(JsonReader jsonReader)
Reads an instance of AzureFunctionActivity from the JsonReader.
Parameters:
Returns:
Throws:
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:
getFunctionName
public Object getFunctionName()
Get the functionName property: Name of the Function that the Azure Function Activity will call. 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 AzureFunctionActivityMethod getMethod()
Get the method property: Rest API method for target endpoint.
Returns:
getType
public String getType()
Get the type property: Type of activity.
Overrides:
AzureFunctionActivity.getType()Returns:
setBody
public AzureFunctionActivity 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 AzureFunctionActivity setDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.
Overrides:
AzureFunctionActivity.setDependsOn(List<ActivityDependency> dependsOn)Parameters:
setDescription
public AzureFunctionActivity setDescription(String description)
Set the description property: Activity description.
Overrides:
AzureFunctionActivity.setDescription(String description)Parameters:
setFunctionName
public AzureFunctionActivity setFunctionName(Object functionName)
Set the functionName property: Name of the Function that the Azure Function Activity will call. Type: string (or Expression with resultType string).
Parameters:
Returns:
setHeaders
public AzureFunctionActivity 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:
setLinkedServiceName
public AzureFunctionActivity setLinkedServiceName(LinkedServiceReference linkedServiceName)
Set the linkedServiceName property: Linked service reference.
Overrides:
AzureFunctionActivity.setLinkedServiceName(LinkedServiceReference linkedServiceName)Parameters:
setMethod
public AzureFunctionActivity setMethod(AzureFunctionActivityMethod method)
Set the method property: Rest API method for target endpoint.
Parameters:
Returns:
setName
public AzureFunctionActivity setName(String name)
Set the name property: Activity name.
Overrides:
AzureFunctionActivity.setName(String name)Parameters:
setOnInactiveMarkAs
public AzureFunctionActivity 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:
AzureFunctionActivity.setOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)Parameters:
setPolicy
public AzureFunctionActivity setPolicy(ActivityPolicy policy)
Set the policy property: Activity policy.
Overrides:
AzureFunctionActivity.setPolicy(ActivityPolicy policy)Parameters:
setState
public AzureFunctionActivity 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:
AzureFunctionActivity.setState(ActivityState state)Parameters:
setUserProperties
public AzureFunctionActivity setUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.
Overrides:
AzureFunctionActivity.setUserProperties(List<UserProperty> userProperties)Parameters:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AzureFunctionActivity.toJson(JsonWriter jsonWriter)Parameters:
Throws: