@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FunctionConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
A function is a reusable entity. You can use multiple functions to compose the resolver logic.
| Constructor and Description | 
|---|
| FunctionConfiguration() | 
| Modifier and Type | Method and Description | 
|---|---|
| FunctionConfiguration | clone() | 
| boolean | equals(Object obj) | 
| String | getCode()
 The  functioncode that contains the request and response functions. | 
| String | getDataSourceName()
 The name of the  DataSource. | 
| String | getDescription()
 The  Functiondescription. | 
| String | getFunctionArn()
 The Amazon Resource Name (ARN) of the  Functionobject. | 
| String | getFunctionId()
 A unique ID representing the  Functionobject. | 
| String | getFunctionVersion()
 The version of the request mapping template. | 
| Integer | getMaxBatchSize()
 The maximum batching size for a resolver. | 
| String | getName()
 The name of the  Functionobject. | 
| String | getRequestMappingTemplate()
 The  Functionrequest mapping template. | 
| String | getResponseMappingTemplate()
 The  Functionresponse mapping template. | 
| AppSyncRuntime | getRuntime() | 
| SyncConfig | getSyncConfig() | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setCode(String code)
 The  functioncode that contains the request and response functions. | 
| void | setDataSourceName(String dataSourceName)
 The name of the  DataSource. | 
| void | setDescription(String description)
 The  Functiondescription. | 
| void | setFunctionArn(String functionArn)
 The Amazon Resource Name (ARN) of the  Functionobject. | 
| void | setFunctionId(String functionId)
 A unique ID representing the  Functionobject. | 
| void | setFunctionVersion(String functionVersion)
 The version of the request mapping template. | 
| void | setMaxBatchSize(Integer maxBatchSize)
 The maximum batching size for a resolver. | 
| void | setName(String name)
 The name of the  Functionobject. | 
| void | setRequestMappingTemplate(String requestMappingTemplate)
 The  Functionrequest mapping template. | 
| void | setResponseMappingTemplate(String responseMappingTemplate)
 The  Functionresponse mapping template. | 
| void | setRuntime(AppSyncRuntime runtime) | 
| void | setSyncConfig(SyncConfig syncConfig) | 
| String | toString()Returns a string representation of this object. | 
| FunctionConfiguration | withCode(String code)
 The  functioncode that contains the request and response functions. | 
| FunctionConfiguration | withDataSourceName(String dataSourceName)
 The name of the  DataSource. | 
| FunctionConfiguration | withDescription(String description)
 The  Functiondescription. | 
| FunctionConfiguration | withFunctionArn(String functionArn)
 The Amazon Resource Name (ARN) of the  Functionobject. | 
| FunctionConfiguration | withFunctionId(String functionId)
 A unique ID representing the  Functionobject. | 
| FunctionConfiguration | withFunctionVersion(String functionVersion)
 The version of the request mapping template. | 
| FunctionConfiguration | withMaxBatchSize(Integer maxBatchSize)
 The maximum batching size for a resolver. | 
| FunctionConfiguration | withName(String name)
 The name of the  Functionobject. | 
| FunctionConfiguration | withRequestMappingTemplate(String requestMappingTemplate)
 The  Functionrequest mapping template. | 
| FunctionConfiguration | withResponseMappingTemplate(String responseMappingTemplate)
 The  Functionresponse mapping template. | 
| FunctionConfiguration | withRuntime(AppSyncRuntime runtime) | 
| FunctionConfiguration | withSyncConfig(SyncConfig syncConfig) | 
public void setFunctionId(String functionId)
 A unique ID representing the Function object.
 
functionId - A unique ID representing the Function object.public String getFunctionId()
 A unique ID representing the Function object.
 
Function object.public FunctionConfiguration withFunctionId(String functionId)
 A unique ID representing the Function object.
 
functionId - A unique ID representing the Function object.public void setFunctionArn(String functionArn)
 The Amazon Resource Name (ARN) of the Function object.
 
functionArn - The Amazon Resource Name (ARN) of the Function object.public String getFunctionArn()
 The Amazon Resource Name (ARN) of the Function object.
 
Function object.public FunctionConfiguration withFunctionArn(String functionArn)
 The Amazon Resource Name (ARN) of the Function object.
 
functionArn - The Amazon Resource Name (ARN) of the Function object.public void setName(String name)
 The name of the Function object.
 
name - The name of the Function object.public String getName()
 The name of the Function object.
 
Function object.public FunctionConfiguration withName(String name)
 The name of the Function object.
 
name - The name of the Function object.public void setDescription(String description)
 The Function description.
 
description - The Function description.public String getDescription()
 The Function description.
 
Function description.public FunctionConfiguration withDescription(String description)
 The Function description.
 
description - The Function description.public void setDataSourceName(String dataSourceName)
 The name of the DataSource.
 
dataSourceName - The name of the DataSource.public String getDataSourceName()
 The name of the DataSource.
 
DataSource.public FunctionConfiguration withDataSourceName(String dataSourceName)
 The name of the DataSource.
 
dataSourceName - The name of the DataSource.public void setRequestMappingTemplate(String requestMappingTemplate)
 The Function request mapping template. Functions support only the 2018-05-29 version of the request
 mapping template.
 
requestMappingTemplate - The Function request mapping template. Functions support only the 2018-05-29 version of the
        request mapping template.public String getRequestMappingTemplate()
 The Function request mapping template. Functions support only the 2018-05-29 version of the request
 mapping template.
 
Function request mapping template. Functions support only the 2018-05-29 version of the
         request mapping template.public FunctionConfiguration withRequestMappingTemplate(String requestMappingTemplate)
 The Function request mapping template. Functions support only the 2018-05-29 version of the request
 mapping template.
 
requestMappingTemplate - The Function request mapping template. Functions support only the 2018-05-29 version of the
        request mapping template.public void setResponseMappingTemplate(String responseMappingTemplate)
 The Function response mapping template.
 
responseMappingTemplate - The Function response mapping template.public String getResponseMappingTemplate()
 The Function response mapping template.
 
Function response mapping template.public FunctionConfiguration withResponseMappingTemplate(String responseMappingTemplate)
 The Function response mapping template.
 
responseMappingTemplate - The Function response mapping template.public void setFunctionVersion(String functionVersion)
The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported.
functionVersion - The version of the request mapping template. Currently, only the 2018-05-29 version of the template is
        supported.public String getFunctionVersion()
The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported.
public FunctionConfiguration withFunctionVersion(String functionVersion)
The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported.
functionVersion - The version of the request mapping template. Currently, only the 2018-05-29 version of the template is
        supported.public void setSyncConfig(SyncConfig syncConfig)
syncConfig - public SyncConfig getSyncConfig()
public FunctionConfiguration withSyncConfig(SyncConfig syncConfig)
syncConfig - public void setMaxBatchSize(Integer maxBatchSize)
The maximum batching size for a resolver.
maxBatchSize - The maximum batching size for a resolver.public Integer getMaxBatchSize()
The maximum batching size for a resolver.
public FunctionConfiguration withMaxBatchSize(Integer maxBatchSize)
The maximum batching size for a resolver.
maxBatchSize - The maximum batching size for a resolver.public void setRuntime(AppSyncRuntime runtime)
runtime - public AppSyncRuntime getRuntime()
public FunctionConfiguration withRuntime(AppSyncRuntime runtime)
runtime - public void setCode(String code)
 The function code that contains the request and response functions. When code is used, the
 runtime is required. The runtime value must be APPSYNC_JS.
 
code - The function code that contains the request and response functions. When code is used, the
        runtime is required. The runtime value must be APPSYNC_JS.public String getCode()
 The function code that contains the request and response functions. When code is used, the
 runtime is required. The runtime value must be APPSYNC_JS.
 
function code that contains the request and response functions. When code is used, the
         runtime is required. The runtime value must be APPSYNC_JS.public FunctionConfiguration withCode(String code)
 The function code that contains the request and response functions. When code is used, the
 runtime is required. The runtime value must be APPSYNC_JS.
 
code - The function code that contains the request and response functions. When code is used, the
        runtime is required. The runtime value must be APPSYNC_JS.public String toString()
toString in class ObjectObject.toString()public FunctionConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.