Class AzureFunctionActivity
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.models.Activity
-
- com.azure.resourcemanager.datafactory.models.ExecutionActivity
-
- com.azure.resourcemanager.datafactory.models.AzureFunctionActivity
-
public final class AzureFunctionActivity extends ExecutionActivity
Azure Function activity.
-
-
Constructor Summary
Constructors Constructor Description AzureFunctionActivity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
body()
Get the body property: Represents the payload that will be sent to the endpoint.Object
functionName()
Get the functionName property: Name of the Function that the Azure Function Activity will call.Object
headers()
Get the headers property: Represents the headers that will be sent to the request.AzureFunctionActivityMethod
method()
Get the method property: Rest API method for target endpoint.void
validate()
Validates the instance.AzureFunctionActivity
withBody(Object body)
Set the body property: Represents the payload that will be sent to the endpoint.AzureFunctionActivity
withDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.AzureFunctionActivity
withDescription(String description)
Set the description property: Activity description.AzureFunctionActivity
withFunctionName(Object functionName)
Set the functionName property: Name of the Function that the Azure Function Activity will call.AzureFunctionActivity
withHeaders(Object headers)
Set the headers property: Represents the headers that will be sent to the request.AzureFunctionActivity
withLinkedServiceName(LinkedServiceReference linkedServiceName)
Set the linkedServiceName property: Linked service reference.AzureFunctionActivity
withMethod(AzureFunctionActivityMethod method)
Set the method property: Rest API method for target endpoint.AzureFunctionActivity
withName(String name)
Set the name property: Activity name.AzureFunctionActivity
withPolicy(ActivityPolicy policy)
Set the policy property: Activity policy.AzureFunctionActivity
withUserProperties(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 AzureFunctionActivity withLinkedServiceName(LinkedServiceReference linkedServiceName)
Set the linkedServiceName property: Linked service reference.- Overrides:
withLinkedServiceName
in classExecutionActivity
- Parameters:
linkedServiceName
- the linkedServiceName value to set.- Returns:
- the ExecutionActivity object itself.
-
withPolicy
public AzureFunctionActivity withPolicy(ActivityPolicy policy)
Set the policy property: Activity policy.- Overrides:
withPolicy
in classExecutionActivity
- Parameters:
policy
- the policy value to set.- Returns:
- the ExecutionActivity object itself.
-
withName
public AzureFunctionActivity withName(String name)
Set the name property: Activity name.- Overrides:
withName
in classExecutionActivity
- Parameters:
name
- the name value to set.- Returns:
- the Activity object itself.
-
withDescription
public AzureFunctionActivity withDescription(String description)
Set the description property: Activity description.- Overrides:
withDescription
in classExecutionActivity
- Parameters:
description
- the description value to set.- Returns:
- the Activity object itself.
-
withDependsOn
public AzureFunctionActivity withDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.- Overrides:
withDependsOn
in classExecutionActivity
- Parameters:
dependsOn
- the dependsOn value to set.- Returns:
- the Activity object itself.
-
withUserProperties
public AzureFunctionActivity withUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.- Overrides:
withUserProperties
in classExecutionActivity
- Parameters:
userProperties
- the userProperties value to set.- Returns:
- the Activity object itself.
-
method
public AzureFunctionActivityMethod method()
Get the method property: Rest API method for target endpoint.- Returns:
- the method value.
-
withMethod
public AzureFunctionActivity withMethod(AzureFunctionActivityMethod method)
Set the method property: Rest API method for target endpoint.- Parameters:
method
- the method value to set.- Returns:
- the AzureFunctionActivity object itself.
-
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:
- the functionName value.
-
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:
functionName
- the functionName value to set.- Returns:
- the AzureFunctionActivity 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 AzureFunctionActivity 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 AzureFunctionActivity 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 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:
body
- the body value to set.- Returns:
- the AzureFunctionActivity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classExecutionActivity
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-