Class CreateFunctionRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.appsync.model.AppSyncRequest
-
- software.amazon.awssdk.services.appsync.model.CreateFunctionRequest
-
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<CreateFunctionRequest.Builder,CreateFunctionRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateFunctionRequest extends AppSyncRequest implements ToCopyableBuilder<CreateFunctionRequest.Builder,CreateFunctionRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CreateFunctionRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apiId()
The GraphQL API ID.static CreateFunctionRequest.Builder
builder()
String
code()
Thefunction
code that contains the request and response functions.String
dataSourceName()
TheFunction
DataSource
name.String
description()
TheFunction
description.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
String
functionVersion()
Theversion
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()
TheFunction
name.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 CreateFunctionRequest.Builder>
serializableBuilderClass()
SyncConfig
syncConfig()
Returns the value of the SyncConfig property for this object.CreateFunctionRequest.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
apiId
public final String apiId()
The GraphQL API ID.
- Returns:
- The GraphQL API ID.
-
name
public final String name()
The
Function
name. The function name does not have to be unique.- Returns:
- The
Function
name. The function name does not have to be unique.
-
description
public final String description()
The
Function
description.- Returns:
- The
Function
description.
-
dataSourceName
public final String dataSourceName()
The
Function
DataSource
name.- Returns:
- The
Function
DataSource
name.
-
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, the supported value is 2018-05-29. Note that when using VTL and mapping templates, thefunctionVersion
is required.- Returns:
- The
version
of the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, thefunctionVersion
is required.
-
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 CreateFunctionRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<CreateFunctionRequest.Builder,CreateFunctionRequest>
- Specified by:
toBuilder
in classAppSyncRequest
-
builder
public static CreateFunctionRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateFunctionRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equals
in classAwsRequest
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForField
in classSdkRequest
-
-