Class FunctionConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.appsync.model.FunctionConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FunctionConfiguration.Builder,FunctionConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class FunctionConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FunctionConfiguration.Builder,FunctionConfiguration>
A function is a reusable entity. You can use multiple functions to compose the resolver logic.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFunctionConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FunctionConfiguration.Builderbuilder()Stringcode()Thefunctioncode that contains the request and response functions.StringdataSourceName()The name of theDataSource.Stringdescription()TheFunctiondescription.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfunctionArn()The Amazon Resource Name (ARN) of theFunctionobject.StringfunctionId()A unique ID representing theFunctionobject.StringfunctionVersion()The version of the request mapping template.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegermaxBatchSize()The maximum batching size for a resolver.Stringname()The name of theFunctionobject.StringrequestMappingTemplate()TheFunctionrequest mapping template.StringresponseMappingTemplate()TheFunctionresponse mapping template.AppSyncRuntimeruntime()Returns the value of the Runtime property for this object.List<SdkField<?>>sdkFields()static Class<? extends FunctionConfiguration.Builder>serializableBuilderClass()SyncConfigsyncConfig()Returns the value of the SyncConfig property for this object.FunctionConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
functionId
public final String functionId()
A unique ID representing the
Functionobject.- Returns:
- A unique ID representing the
Functionobject.
-
functionArn
public final String functionArn()
The Amazon Resource Name (ARN) of the
Functionobject.- Returns:
- The Amazon Resource Name (ARN) of the
Functionobject.
-
name
public final String name()
The name of the
Functionobject.- Returns:
- The name of the
Functionobject.
-
description
public final String description()
The
Functiondescription.- Returns:
- The
Functiondescription.
-
dataSourceName
public final String dataSourceName()
The name of the
DataSource.- Returns:
- The name of the
DataSource.
-
requestMappingTemplate
public final String requestMappingTemplate()
The
Functionrequest mapping template. Functions support only the 2018-05-29 version of the request mapping template.- Returns:
- The
Functionrequest mapping template. Functions support only the 2018-05-29 version of the request mapping template.
-
responseMappingTemplate
public final String responseMappingTemplate()
The
Functionresponse mapping template.- Returns:
- The
Functionresponse mapping template.
-
functionVersion
public final String functionVersion()
The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported.
- Returns:
- The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported.
-
syncConfig
public final SyncConfig syncConfig()
Returns the value of the SyncConfig property for this object.- Returns:
- The value of the SyncConfig property for this object.
-
maxBatchSize
public final Integer maxBatchSize()
The maximum batching size for a resolver.
- Returns:
- The maximum batching size for a resolver.
-
runtime
public final AppSyncRuntime runtime()
Returns the value of the Runtime property for this object.- Returns:
- The value of the Runtime property for this object.
-
code
public final String code()
The
functioncode that contains the request and response functions. When code is used, theruntimeis required. Theruntimevalue must beAPPSYNC_JS.- Returns:
- The
functioncode that contains the request and response functions. When code is used, theruntimeis required. Theruntimevalue must beAPPSYNC_JS.
-
toBuilder
public FunctionConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<FunctionConfiguration.Builder,FunctionConfiguration>
-
builder
public static FunctionConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends FunctionConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-