@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 |
getDataSourceName()
The name of the
DataSource . |
String |
getDescription()
The
Function description. |
String |
getFunctionArn()
The Amazon Resource Name (ARN) of the
Function object. |
String |
getFunctionId()
A unique ID representing the
Function object. |
String |
getFunctionVersion()
The version of the request mapping template.
|
Integer |
getMaxBatchSize()
The maximum batching size for a resolver.
|
String |
getName()
The name of the
Function object. |
String |
getRequestMappingTemplate()
The
Function request mapping template. |
String |
getResponseMappingTemplate()
The
Function response mapping template. |
SyncConfig |
getSyncConfig() |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDataSourceName(String dataSourceName)
The name of the
DataSource . |
void |
setDescription(String description)
The
Function description. |
void |
setFunctionArn(String functionArn)
The Amazon Resource Name (ARN) of the
Function object. |
void |
setFunctionId(String functionId)
A unique ID representing the
Function object. |
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
Function object. |
void |
setRequestMappingTemplate(String requestMappingTemplate)
The
Function request mapping template. |
void |
setResponseMappingTemplate(String responseMappingTemplate)
The
Function response mapping template. |
void |
setSyncConfig(SyncConfig syncConfig) |
String |
toString()
Returns a string representation of this object.
|
FunctionConfiguration |
withDataSourceName(String dataSourceName)
The name of the
DataSource . |
FunctionConfiguration |
withDescription(String description)
The
Function description. |
FunctionConfiguration |
withFunctionArn(String functionArn)
The Amazon Resource Name (ARN) of the
Function object. |
FunctionConfiguration |
withFunctionId(String functionId)
A unique ID representing the
Function object. |
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
Function object. |
FunctionConfiguration |
withRequestMappingTemplate(String requestMappingTemplate)
The
Function request mapping template. |
FunctionConfiguration |
withResponseMappingTemplate(String responseMappingTemplate)
The
Function response mapping template. |
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 String toString()
toString
in class Object
Object.toString()
public FunctionConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.