@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
function code that contains the request and response functions. |
String |
getDataSourceName()
The
Function DataSource name. |
String |
getDescription()
The
Function description. |
String |
getFunctionVersion()
The
version of the request mapping template. |
Integer |
getMaxBatchSize()
The maximum batching size for a resolver.
|
String |
getName()
The
Function name. |
String |
getRequestMappingTemplate()
The
Function request mapping template. |
String |
getResponseMappingTemplate()
The
Function response mapping template. |
AppSyncRuntime |
getRuntime() |
SyncConfig |
getSyncConfig() |
int |
hashCode() |
void |
setApiId(String apiId)
The GraphQL API ID.
|
void |
setCode(String code)
The
function code that contains the request and response functions. |
void |
setDataSourceName(String dataSourceName)
The
Function DataSource name. |
void |
setDescription(String description)
The
Function description. |
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
Function name. |
void |
setRequestMappingTemplate(String requestMappingTemplate)
The
Function request mapping template. |
void |
setResponseMappingTemplate(String responseMappingTemplate)
The
Function response 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
function code that contains the request and response functions. |
CreateFunctionRequest |
withDataSourceName(String dataSourceName)
The
Function DataSource name. |
CreateFunctionRequest |
withDescription(String description)
The
Function description. |
CreateFunctionRequest |
withFunctionVersion(String functionVersion)
The
version of the request mapping template. |
CreateFunctionRequest |
withMaxBatchSize(Integer maxBatchSize)
The maximum batching size for a resolver.
|
CreateFunctionRequest |
withName(String name)
The
Function name. |
CreateFunctionRequest |
withRequestMappingTemplate(String requestMappingTemplate)
The
Function request mapping template. |
CreateFunctionRequest |
withResponseMappingTemplate(String responseMappingTemplate)
The
Function response 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, withSdkRequestTimeout
public 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 Object
Object.toString()
public CreateFunctionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()