@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateFunctionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description | 
|---|
| CreateFunctionRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| CreateFunctionRequest | clone()Creates a shallow clone of this object for all fields except the handler context. | 
| boolean | equals(Object obj) | 
| String | getApiId()
 The GraphQL API ID. | 
| String | getCode()
 The  functioncode that contains the request and response functions. | 
| String | getDataSourceName()
 The  FunctionDataSourcename. | 
| String | getDescription()
 The  Functiondescription. | 
| String | getFunctionVersion()
 The  versionof the request mapping template. | 
| Integer | getMaxBatchSize()
 The maximum batching size for a resolver. | 
| String | getName()
 The  Functionname. | 
| String | getRequestMappingTemplate()
 The  Functionrequest mapping template. | 
| String | getResponseMappingTemplate()
 The  Functionresponse mapping template. | 
| AppSyncRuntime | getRuntime() | 
| SyncConfig | getSyncConfig() | 
| int | hashCode() | 
| void | setApiId(String apiId)
 The GraphQL API ID. | 
| void | setCode(String code)
 The  functioncode that contains the request and response functions. | 
| void | setDataSourceName(String dataSourceName)
 The  FunctionDataSourcename. | 
| void | setDescription(String description)
 The  Functiondescription. | 
| void | setFunctionVersion(String functionVersion)
 The  versionof the request mapping template. | 
| void | setMaxBatchSize(Integer maxBatchSize)
 The maximum batching size for a resolver. | 
| void | setName(String name)
 The  Functionname. | 
| 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. | 
| CreateFunctionRequest | withApiId(String apiId)
 The GraphQL API ID. | 
| CreateFunctionRequest | withCode(String code)
 The  functioncode that contains the request and response functions. | 
| CreateFunctionRequest | withDataSourceName(String dataSourceName)
 The  FunctionDataSourcename. | 
| CreateFunctionRequest | withDescription(String description)
 The  Functiondescription. | 
| CreateFunctionRequest | withFunctionVersion(String functionVersion)
 The  versionof the request mapping template. | 
| CreateFunctionRequest | withMaxBatchSize(Integer maxBatchSize)
 The maximum batching size for a resolver. | 
| CreateFunctionRequest | withName(String name)
 The  Functionname. | 
| CreateFunctionRequest | withRequestMappingTemplate(String requestMappingTemplate)
 The  Functionrequest mapping template. | 
| CreateFunctionRequest | withResponseMappingTemplate(String responseMappingTemplate)
 The  Functionresponse mapping template. | 
| CreateFunctionRequest | withRuntime(AppSyncRuntime runtime) | 
| CreateFunctionRequest | withSyncConfig(SyncConfig syncConfig) | 
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setApiId(String apiId)
The GraphQL API ID.
apiId - The GraphQL API ID.public String getApiId()
The GraphQL API ID.
public CreateFunctionRequest withApiId(String apiId)
The GraphQL API ID.
apiId - The GraphQL API ID.public void setName(String name)
 The Function name. The function name does not have to be unique.
 
name - The Function name. The function name does not have to be unique.public String getName()
 The Function name. The function name does not have to be unique.
 
Function name. The function name does not have to be unique.public CreateFunctionRequest withName(String name)
 The Function name. The function name does not have to be unique.
 
name - The Function name. The function name does not have to be unique.public void setDescription(String description)
 The Function description.
 
description - The Function description.public String getDescription()
 The Function description.
 
Function description.public CreateFunctionRequest withDescription(String description)
 The Function description.
 
description - The Function description.public void setDataSourceName(String dataSourceName)
 The Function DataSource name.
 
dataSourceName - The Function DataSource name.public String getDataSourceName()
 The Function DataSource name.
 
Function DataSource name.public CreateFunctionRequest withDataSourceName(String dataSourceName)
 The Function DataSource name.
 
dataSourceName - The Function DataSource name.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 CreateFunctionRequest 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 CreateFunctionRequest 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, the supported value is 2018-05-29. Note that
 when using VTL and mapping templates, the functionVersion is required.
 
functionVersion - The version of the request mapping template. Currently, the supported value is 2018-05-29.
        Note that when using VTL and mapping templates, the functionVersion is required.public String getFunctionVersion()
 The version of the request mapping template. Currently, the supported value is 2018-05-29. Note that
 when using VTL and mapping templates, the functionVersion is required.
 
version of the request mapping template. Currently, the supported value is 2018-05-29.
         Note that when using VTL and mapping templates, the functionVersion is required.public CreateFunctionRequest withFunctionVersion(String functionVersion)
 The version of the request mapping template. Currently, the supported value is 2018-05-29. Note that
 when using VTL and mapping templates, the functionVersion is required.
 
functionVersion - The version of the request mapping template. Currently, the supported value is 2018-05-29.
        Note that when using VTL and mapping templates, the functionVersion is required.public void setSyncConfig(SyncConfig syncConfig)
syncConfig - public SyncConfig getSyncConfig()
public CreateFunctionRequest 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 CreateFunctionRequest 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 CreateFunctionRequest 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 CreateFunctionRequest 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 CreateFunctionRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()