@Generated(value="software.amazon.awssdk:codegen") public final class CreateResolverRequest extends AppSyncRequest implements ToCopyableBuilder<CreateResolverRequest.Builder,CreateResolverRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateResolverRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
apiId()
The ID for the GraphQL API for which the resolver is being created.
|
static CreateResolverRequest.Builder |
builder() |
CachingConfig |
cachingConfig()
The caching configuration for the resolver.
|
String |
dataSourceName()
The name of the data source for which the resolver is being created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
fieldName()
The name of the field to attach the resolver to.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
ResolverKind |
kind()
The resolver type.
|
String |
kindAsString()
The resolver type.
|
PipelineConfig |
pipelineConfig()
The
PipelineConfig. |
String |
requestMappingTemplate()
The mapping template to be used for requests.
|
String |
responseMappingTemplate()
The mapping template to be used for responses from the data source.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateResolverRequest.Builder> |
serializableBuilderClass() |
SyncConfig |
syncConfig()
The
SyncConfig for a resolver attached to a versioned datasource. |
CreateResolverRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
typeName()
The name of the
Type. |
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String apiId()
The ID for the GraphQL API for which the resolver is being created.
public String typeName()
The name of the Type.
Type.public String fieldName()
The name of the field to attach the resolver to.
public String dataSourceName()
The name of the data source for which the resolver is being created.
public 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).
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).
public String responseMappingTemplate()
The mapping template to be used for responses from the data source.
public 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.
If the service returns an enum value that is not available in the current SDK version, kind will return
ResolverKind.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
kindAsString().
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.
ResolverKindpublic String kindAsString()
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.
If the service returns an enum value that is not available in the current SDK version, kind will return
ResolverKind.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
kindAsString().
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.
ResolverKindpublic PipelineConfig pipelineConfig()
The PipelineConfig.
PipelineConfig.public SyncConfig syncConfig()
The SyncConfig for a resolver attached to a versioned datasource.
SyncConfig for a resolver attached to a versioned datasource.public CachingConfig cachingConfig()
The caching configuration for the resolver.
public CreateResolverRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateResolverRequest.Builder,CreateResolverRequest>toBuilder in class AppSyncRequestpublic static CreateResolverRequest.Builder builder()
public static Class<? extends CreateResolverRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.