AzureFunctionActivity Class
- java.
lang. Object - com.
azure. resourcemanager. datafactory. models. Activity - com.
azure. resourcemanager. datafactory. models. ExecutionActivity - com.
azure. resourcemanager. datafactory. models. AzureFunctionActivity
- com.
- com.
- com.
public final 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 |
|---|---|
| Object |
body()
Get the body property: Represents the payload that will be sent to the endpoint. |
|
static
Azure |
fromJson(JsonReader jsonReader)
Reads an instance of Azure |
| Object |
functionName()
Get the function |
| Map<String,Object> |
headers()
Get the headers property: Represents the headers that will be sent to the request. |
|
Azure |
method()
Get the method property: Rest API method for target endpoint. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Type of activity. |
| void |
validate()
Validates the instance. |
|
Azure |
withBody(Object body)
Set the body property: Represents the payload that will be sent to the endpoint. |
|
Azure |
withDependsOn(List<ActivityDependency> dependsOn)
Set the depends |
|
Azure |
withDescription(String description)
Set the description property: Activity description. |
|
Azure |
withFunctionName(Object functionName)
Set the function |
|
Azure |
withHeaders(Map<String,Object> headers)
Set the headers property: Represents the headers that will be sent to the request. |
|
Azure |
withLinkedServiceName(LinkedServiceReference linkedServiceName)
Set the linked |
|
Azure |
withMethod(AzureFunctionActivityMethod method)
Set the method property: Rest API method for target endpoint. |
|
Azure |
withName(String name)
Set the name property: Activity name. |
|
Azure |
withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)
Set the on |
|
Azure |
withPolicy(ActivityPolicy policy)
Set the policy property: Activity policy. |
|
Azure |
withState(ActivityState state)
Set the state property: Activity state. |
|
Azure |
withUserProperties(List<UserProperty> userProperties)
Set the user |
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
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:
fromJson
public static AzureFunctionActivity fromJson(JsonReader jsonReader)
Reads an instance of AzureFunctionActivity from the JsonReader.
Parameters:
Returns:
Throws:
functionName
public Object functionName()
Get the functionName property: Name of the Function that the Azure Function Activity will call. Type: string (or Expression with resultType string).
Returns:
headers
public Map<String,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:
method
public AzureFunctionActivityMethod method()
Get the method property: Rest API method for target endpoint.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AzureFunctionActivity.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Type of activity.
Overrides:
AzureFunctionActivity.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
AzureFunctionActivity.validate()withBody
public AzureFunctionActivity 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:
Returns:
withDependsOn
public AzureFunctionActivity withDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.
Overrides:
AzureFunctionActivity.withDependsOn(List<ActivityDependency> dependsOn)Parameters:
withDescription
public AzureFunctionActivity withDescription(String description)
Set the description property: Activity description.
Overrides:
AzureFunctionActivity.withDescription(String description)Parameters:
withFunctionName
public AzureFunctionActivity withFunctionName(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:
withHeaders
public AzureFunctionActivity withHeaders(Map<String,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:
withLinkedServiceName
public AzureFunctionActivity withLinkedServiceName(LinkedServiceReference linkedServiceName)
Set the linkedServiceName property: Linked service reference.
Overrides:
AzureFunctionActivity.withLinkedServiceName(LinkedServiceReference linkedServiceName)Parameters:
withMethod
public AzureFunctionActivity withMethod(AzureFunctionActivityMethod method)
Set the method property: Rest API method for target endpoint.
Parameters:
Returns:
withName
public AzureFunctionActivity withName(String name)
Set the name property: Activity name.
Overrides:
AzureFunctionActivity.withName(String name)Parameters:
withOnInactiveMarkAs
public AzureFunctionActivity withOnInactiveMarkAs(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.withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)Parameters:
withPolicy
public AzureFunctionActivity withPolicy(ActivityPolicy policy)
Set the policy property: Activity policy.
Overrides:
AzureFunctionActivity.withPolicy(ActivityPolicy policy)Parameters:
withState
public AzureFunctionActivity withState(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.withState(ActivityState state)Parameters:
withUserProperties
public AzureFunctionActivity withUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.
Overrides:
AzureFunctionActivity.withUserProperties(List<UserProperty> userProperties)Parameters: