@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateResolverRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreateResolverRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateResolverRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getApiId()
The ID for the GraphQL API for which the resolver is being created.
|
CachingConfig |
getCachingConfig()
The caching configuration for the resolver.
|
String |
getCode()
The
resolver code that contains the request and response functions. |
String |
getDataSourceName()
The name of the data source for which the resolver is being created.
|
String |
getFieldName()
The name of the field to attach the resolver to.
|
String |
getKind()
The resolver type.
|
Integer |
getMaxBatchSize()
The maximum batching size for a resolver.
|
String |
getMetricsConfig()
Enables or disables enhanced resolver metrics for specified resolvers.
|
PipelineConfig |
getPipelineConfig()
The
PipelineConfig. |
String |
getRequestMappingTemplate()
The mapping template to use for requests.
|
String |
getResponseMappingTemplate()
The mapping template to use for responses from the data source.
|
AppSyncRuntime |
getRuntime() |
SyncConfig |
getSyncConfig()
The
SyncConfig for a resolver attached to a versioned data source. |
String |
getTypeName()
The name of the
Type. |
int |
hashCode() |
void |
setApiId(String apiId)
The ID for the GraphQL API for which the resolver is being created.
|
void |
setCachingConfig(CachingConfig cachingConfig)
The caching configuration for the resolver.
|
void |
setCode(String code)
The
resolver code that contains the request and response functions. |
void |
setDataSourceName(String dataSourceName)
The name of the data source for which the resolver is being created.
|
void |
setFieldName(String fieldName)
The name of the field to attach the resolver to.
|
void |
setKind(String kind)
The resolver type.
|
void |
setMaxBatchSize(Integer maxBatchSize)
The maximum batching size for a resolver.
|
void |
setMetricsConfig(String metricsConfig)
Enables or disables enhanced resolver metrics for specified resolvers.
|
void |
setPipelineConfig(PipelineConfig pipelineConfig)
The
PipelineConfig. |
void |
setRequestMappingTemplate(String requestMappingTemplate)
The mapping template to use for requests.
|
void |
setResponseMappingTemplate(String responseMappingTemplate)
The mapping template to use for responses from the data source.
|
void |
setRuntime(AppSyncRuntime runtime) |
void |
setSyncConfig(SyncConfig syncConfig)
The
SyncConfig for a resolver attached to a versioned data source. |
void |
setTypeName(String typeName)
The name of the
Type. |
String |
toString()
Returns a string representation of this object.
|
CreateResolverRequest |
withApiId(String apiId)
The ID for the GraphQL API for which the resolver is being created.
|
CreateResolverRequest |
withCachingConfig(CachingConfig cachingConfig)
The caching configuration for the resolver.
|
CreateResolverRequest |
withCode(String code)
The
resolver code that contains the request and response functions. |
CreateResolverRequest |
withDataSourceName(String dataSourceName)
The name of the data source for which the resolver is being created.
|
CreateResolverRequest |
withFieldName(String fieldName)
The name of the field to attach the resolver to.
|
CreateResolverRequest |
withKind(ResolverKind kind)
The resolver type.
|
CreateResolverRequest |
withKind(String kind)
The resolver type.
|
CreateResolverRequest |
withMaxBatchSize(Integer maxBatchSize)
The maximum batching size for a resolver.
|
CreateResolverRequest |
withMetricsConfig(ResolverLevelMetricsConfig metricsConfig)
Enables or disables enhanced resolver metrics for specified resolvers.
|
CreateResolverRequest |
withMetricsConfig(String metricsConfig)
Enables or disables enhanced resolver metrics for specified resolvers.
|
CreateResolverRequest |
withPipelineConfig(PipelineConfig pipelineConfig)
The
PipelineConfig. |
CreateResolverRequest |
withRequestMappingTemplate(String requestMappingTemplate)
The mapping template to use for requests.
|
CreateResolverRequest |
withResponseMappingTemplate(String responseMappingTemplate)
The mapping template to use for responses from the data source.
|
CreateResolverRequest |
withRuntime(AppSyncRuntime runtime) |
CreateResolverRequest |
withSyncConfig(SyncConfig syncConfig)
The
SyncConfig for a resolver attached to a versioned data source. |
CreateResolverRequest |
withTypeName(String typeName)
The name of the
Type. |
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 ID for the GraphQL API for which the resolver is being created.
apiId - The ID for the GraphQL API for which the resolver is being created.public String getApiId()
The ID for the GraphQL API for which the resolver is being created.
public CreateResolverRequest withApiId(String apiId)
The ID for the GraphQL API for which the resolver is being created.
apiId - The ID for the GraphQL API for which the resolver is being created.public void setTypeName(String typeName)
The name of the Type.
typeName - The name of the Type.public String getTypeName()
The name of the Type.
Type.public CreateResolverRequest withTypeName(String typeName)
The name of the Type.
typeName - The name of the Type.public void setFieldName(String fieldName)
The name of the field to attach the resolver to.
fieldName - The name of the field to attach the resolver to.public String getFieldName()
The name of the field to attach the resolver to.
public CreateResolverRequest withFieldName(String fieldName)
The name of the field to attach the resolver to.
fieldName - The name of the field to attach the resolver to.public void setDataSourceName(String dataSourceName)
The name of the data source for which the resolver is being created.
dataSourceName - The name of the data source for which the resolver is being created.public String getDataSourceName()
The name of the data source for which the resolver is being created.
public CreateResolverRequest withDataSourceName(String dataSourceName)
The name of the data source for which the resolver is being created.
dataSourceName - The name of the data source for which the resolver is being created.public void setRequestMappingTemplate(String requestMappingTemplate)
The mapping template to use for requests.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
requestMappingTemplate - The mapping template to use for requests.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
public String getRequestMappingTemplate()
The mapping template to use for requests.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
public CreateResolverRequest withRequestMappingTemplate(String requestMappingTemplate)
The mapping template to use for requests.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
requestMappingTemplate - The mapping template to use for requests.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
public void setResponseMappingTemplate(String responseMappingTemplate)
The mapping template to use for responses from the data source.
responseMappingTemplate - The mapping template to use for responses from the data source.public String getResponseMappingTemplate()
The mapping template to use for responses from the data source.
public CreateResolverRequest withResponseMappingTemplate(String responseMappingTemplate)
The mapping template to use for responses from the data source.
responseMappingTemplate - The mapping template to use for responses from the data source.public void setKind(String kind)
The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against
multiple data sources.
kind - The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query
against multiple data sources.
ResolverKindpublic String getKind()
The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against
multiple data sources.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query
against multiple data sources.
ResolverKindpublic CreateResolverRequest withKind(String kind)
The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against
multiple data sources.
kind - The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query
against multiple data sources.
ResolverKindpublic CreateResolverRequest withKind(ResolverKind kind)
The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against
multiple data sources.
kind - The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query
against multiple data sources.
ResolverKindpublic void setPipelineConfig(PipelineConfig pipelineConfig)
The PipelineConfig.
pipelineConfig - The PipelineConfig.public PipelineConfig getPipelineConfig()
The PipelineConfig.
PipelineConfig.public CreateResolverRequest withPipelineConfig(PipelineConfig pipelineConfig)
The PipelineConfig.
pipelineConfig - The PipelineConfig.public void setSyncConfig(SyncConfig syncConfig)
The SyncConfig for a resolver attached to a versioned data source.
syncConfig - The SyncConfig for a resolver attached to a versioned data source.public SyncConfig getSyncConfig()
The SyncConfig for a resolver attached to a versioned data source.
SyncConfig for a resolver attached to a versioned data source.public CreateResolverRequest withSyncConfig(SyncConfig syncConfig)
The SyncConfig for a resolver attached to a versioned data source.
syncConfig - The SyncConfig for a resolver attached to a versioned data source.public void setCachingConfig(CachingConfig cachingConfig)
The caching configuration for the resolver.
cachingConfig - The caching configuration for the resolver.public CachingConfig getCachingConfig()
The caching configuration for the resolver.
public CreateResolverRequest withCachingConfig(CachingConfig cachingConfig)
The caching configuration for the resolver.
cachingConfig - The caching configuration for the resolver.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 CreateResolverRequest 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 CreateResolverRequest withRuntime(AppSyncRuntime runtime)
runtime - public void setCode(String code)
The resolver 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 resolver 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 resolver code that contains the request and response functions. When code is used, the
runtime is required. The runtime value must be APPSYNC_JS.
resolver code that contains the request and response functions. When code is used, the
runtime is required. The runtime value must be APPSYNC_JS.public CreateResolverRequest withCode(String code)
The resolver 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 resolver code that contains the request and response functions. When code is used, the
runtime is required. The runtime value must be APPSYNC_JS.public void setMetricsConfig(String metricsConfig)
Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't
be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS.
If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead,
metricsConfig will be ignored. However, you can still set its value.
metricsConfig can be ENABLED or DISABLED.
metricsConfig - Enables or disables enhanced resolver metrics for specified resolvers. Note that
metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set
to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to
FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However,
you can still set its value.
metricsConfig can be ENABLED or DISABLED.
ResolverLevelMetricsConfigpublic String getMetricsConfig()
Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't
be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS.
If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead,
metricsConfig will be ignored. However, you can still set its value.
metricsConfig can be ENABLED or DISABLED.
metricsConfig won't be used unless the resolverLevelMetricsBehavior value is
set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to
FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However,
you can still set its value.
metricsConfig can be ENABLED or DISABLED.
ResolverLevelMetricsConfigpublic CreateResolverRequest withMetricsConfig(String metricsConfig)
Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't
be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS.
If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead,
metricsConfig will be ignored. However, you can still set its value.
metricsConfig can be ENABLED or DISABLED.
metricsConfig - Enables or disables enhanced resolver metrics for specified resolvers. Note that
metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set
to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to
FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However,
you can still set its value.
metricsConfig can be ENABLED or DISABLED.
ResolverLevelMetricsConfigpublic CreateResolverRequest withMetricsConfig(ResolverLevelMetricsConfig metricsConfig)
Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't
be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS.
If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead,
metricsConfig will be ignored. However, you can still set its value.
metricsConfig can be ENABLED or DISABLED.
metricsConfig - Enables or disables enhanced resolver metrics for specified resolvers. Note that
metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set
to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to
FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However,
you can still set its value.
metricsConfig can be ENABLED or DISABLED.
ResolverLevelMetricsConfigpublic String toString()
toString in class ObjectObject.toString()public CreateResolverRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()