AzureFunctionActivity.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.analytics.synapse.artifacts.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/** Azure Function activity. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("AzureFunctionActivity")
@JsonFlatten
@Fluent
public class AzureFunctionActivity extends ExecutionActivity {
/*
* Rest API method for target endpoint.
*/
@JsonProperty(value = "typeProperties.method", required = true)
private AzureFunctionActivityMethod method;
/*
* Name of the Function that the Azure Function Activity will call. Type:
* string (or Expression with resultType string)
*/
@JsonProperty(value = "typeProperties.functionName", required = true)
private Object functionName;
/*
* 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).
*/
@JsonProperty(value = "typeProperties.headers")
private Object headers;
/*
* 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).
*/
@JsonProperty(value = "typeProperties.body")
private Object body;
/**
* Get the method property: Rest API method for target endpoint.
*
* @return the method value.
*/
public AzureFunctionActivityMethod getMethod() {
return this.method;
}
/**
* Set the method property: Rest API method for target endpoint.
*
* @param method the method value to set.
* @return the AzureFunctionActivity object itself.
*/
public AzureFunctionActivity setMethod(AzureFunctionActivityMethod method) {
this.method = method;
return this;
}
/**
* Get the functionName property: Name of the Function that the Azure Function Activity will call. Type: string (or
* Expression with resultType string).
*
* @return the functionName value.
*/
public Object getFunctionName() {
return this.functionName;
}
/**
* Set the functionName property: Name of the Function that the Azure Function Activity will call. Type: string (or
* Expression with resultType string).
*
* @param functionName the functionName value to set.
* @return the AzureFunctionActivity object itself.
*/
public AzureFunctionActivity setFunctionName(Object functionName) {
this.functionName = functionName;
return this;
}
/**
* 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).
*
* @return the headers value.
*/
public Object getHeaders() {
return this.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).
*
* @param headers the headers value to set.
* @return the AzureFunctionActivity object itself.
*/
public AzureFunctionActivity setHeaders(Object headers) {
this.headers = headers;
return this;
}
/**
* 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).
*
* @return the body value.
*/
public Object getBody() {
return this.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).
*
* @param body the body value to set.
* @return the AzureFunctionActivity object itself.
*/
public AzureFunctionActivity setBody(Object body) {
this.body = body;
return this;
}
}