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 interface
FunctionConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FunctionConfiguration.Builder
builder()
String
code()
Thefunction
code that contains the request and response functions.String
dataSourceName()
The name of theDataSource
.String
description()
TheFunction
description.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
String
functionArn()
The Amazon Resource Name (ARN) of theFunction
object.String
functionId()
A unique ID representing theFunction
object.String
functionVersion()
The version of the request mapping template.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Integer
maxBatchSize()
The maximum batching size for a resolver.String
name()
The name of theFunction
object.String
requestMappingTemplate()
TheFunction
request mapping template.String
responseMappingTemplate()
TheFunction
response mapping template.AppSyncRuntime
runtime()
Returns the value of the Runtime property for this object.List<SdkField<?>>
sdkFields()
static Class<? extends FunctionConfiguration.Builder>
serializableBuilderClass()
SyncConfig
syncConfig()
Returns the value of the SyncConfig property for this object.FunctionConfiguration.Builder
toBuilder()
String
toString()
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
Function
object.- Returns:
- A unique ID representing the
Function
object.
-
functionArn
public final String functionArn()
The Amazon Resource Name (ARN) of the
Function
object.- Returns:
- The Amazon Resource Name (ARN) of the
Function
object.
-
name
public final String name()
The name of the
Function
object.- Returns:
- The name of the
Function
object.
-
description
public final String description()
The
Function
description.- Returns:
- The
Function
description.
-
dataSourceName
public final String dataSourceName()
The name of the
DataSource
.- Returns:
- The name of the
DataSource
.
-
requestMappingTemplate
public final String requestMappingTemplate()
The
Function
request mapping template. Functions support only the 2018-05-29 version of the request mapping template.- Returns:
- The
Function
request mapping template. Functions support only the 2018-05-29 version of the request mapping template.
-
responseMappingTemplate
public final String responseMappingTemplate()
The
Function
response mapping template.- Returns:
- The
Function
response 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
function
code that contains the request and response functions. When code is used, theruntime
is required. Theruntime
value must beAPPSYNC_JS
.- Returns:
- The
function
code that contains the request and response functions. When code is used, theruntime
is required. Theruntime
value must beAPPSYNC_JS
.
-
toBuilder
public FunctionConfiguration.Builder toBuilder()
- Specified by:
toBuilder
in 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:
equalsBySdkFields
in 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.
-
-