@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 |
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.
|
PipelineConfig |
getPipelineConfig()
The
PipelineConfig . |
String |
getRequestMappingTemplate()
The mapping template to be used for requests.
|
String |
getResponseMappingTemplate()
The mapping template to be used for responses from the data source.
|
SyncConfig |
getSyncConfig()
The
SyncConfig for a resolver attached to a versioned datasource. |
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 |
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 |
setPipelineConfig(PipelineConfig pipelineConfig)
The
PipelineConfig . |
void |
setRequestMappingTemplate(String requestMappingTemplate)
The mapping template to be used for requests.
|
void |
setResponseMappingTemplate(String responseMappingTemplate)
The mapping template to be used for responses from the data source.
|
void |
setSyncConfig(SyncConfig syncConfig)
The
SyncConfig for a resolver attached to a versioned datasource. |
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 |
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 |
withPipelineConfig(PipelineConfig pipelineConfig)
The
PipelineConfig . |
CreateResolverRequest |
withRequestMappingTemplate(String requestMappingTemplate)
The mapping template to be used for requests.
|
CreateResolverRequest |
withResponseMappingTemplate(String responseMappingTemplate)
The mapping template to be used for responses from the data source.
|
CreateResolverRequest |
withSyncConfig(SyncConfig syncConfig)
The
SyncConfig for a resolver attached to a versioned datasource. |
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, withSdkRequestTimeout
public 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 be used 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 a Lambda data source. For all other data sources, VTL request and response mapping templates are required.
requestMappingTemplate
- The mapping template to be used 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 a Lambda data source. For all other data sources, VTL request and response mapping templates are required.
public String getRequestMappingTemplate()
The mapping template to be used 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 a 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 a 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 be used 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 a Lambda data source. For all other data sources, VTL request and response mapping templates are required.
requestMappingTemplate
- The mapping template to be used 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 a 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 be used for responses from the data source.
responseMappingTemplate
- The mapping template to be used for responses from the data source.public String getResponseMappingTemplate()
The mapping template to be used for responses from the data source.
public CreateResolverRequest withResponseMappingTemplate(String responseMappingTemplate)
The mapping template to be used for responses from the data source.
responseMappingTemplate
- The mapping template to be used 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. A UNIT resolver enables you to execute a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to execute a series of
Function
in a serial manner. You can use a pipeline resolver to execute a GraphQL query against
multiple data sources.
kind
- The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. A UNIT resolver enables you to execute a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to execute a series of
Function
in a serial manner. You can use a pipeline resolver to execute a GraphQL query
against multiple data sources.
ResolverKind
public String getKind()
The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. A UNIT resolver enables you to execute a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to execute a series of
Function
in a serial manner. You can use a pipeline resolver to execute a GraphQL query against
multiple data sources.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. A UNIT resolver enables you to execute a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to execute a series of
Function
in a serial manner. You can use a pipeline resolver to execute a GraphQL query
against multiple data sources.
ResolverKind
public CreateResolverRequest withKind(String kind)
The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. A UNIT resolver enables you to execute a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to execute a series of
Function
in a serial manner. You can use a pipeline resolver to execute a GraphQL query against
multiple data sources.
kind
- The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. A UNIT resolver enables you to execute a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to execute a series of
Function
in a serial manner. You can use a pipeline resolver to execute a GraphQL query
against multiple data sources.
ResolverKind
public CreateResolverRequest withKind(ResolverKind kind)
The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. A UNIT resolver enables you to execute a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to execute a series of
Function
in a serial manner. You can use a pipeline resolver to execute a GraphQL query against
multiple data sources.
kind
- The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. A UNIT resolver enables you to execute a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to execute a series of
Function
in a serial manner. You can use a pipeline resolver to execute a GraphQL query
against multiple data sources.
ResolverKind
public 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 datasource.
syncConfig
- The SyncConfig
for a resolver attached to a versioned datasource.public SyncConfig getSyncConfig()
The SyncConfig
for a resolver attached to a versioned datasource.
SyncConfig
for a resolver attached to a versioned datasource.public CreateResolverRequest withSyncConfig(SyncConfig syncConfig)
The SyncConfig
for a resolver attached to a versioned datasource.
syncConfig
- The SyncConfig
for a resolver attached to a versioned datasource.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 String toString()
toString
in class Object
Object.toString()
public CreateResolverRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()