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 interfaceCreateFunctionRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringapiId()The GraphQL API ID.static CreateFunctionRequest.Builderbuilder()Stringcode()Thefunctioncode that contains the request and response functions.StringdataSourceName()TheFunctionDataSourcename.Stringdescription()TheFunctiondescription.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfunctionVersion()Theversionof the request mapping template.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegermaxBatchSize()The maximum batching size for a resolver.Stringname()TheFunctionname.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 CreateFunctionRequest.Builder>serializableBuilderClass()SyncConfigsyncConfig()Returns the value of the SyncConfig property for this object.CreateFunctionRequest.BuildertoBuilder()StringtoString()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
Functionname. The function name does not have to be unique.- Returns:
- The
Functionname. The function name does not have to be unique.
-
description
public final String description()
The
Functiondescription.- Returns:
- The
Functiondescription.
-
dataSourceName
public final String dataSourceName()
The
FunctionDataSourcename.- Returns:
- The
FunctionDataSourcename.
-
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
versionof the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, thefunctionVersionis required.- Returns:
- The
versionof the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, thefunctionVersionis 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
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 CreateFunctionRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateFunctionRequest.Builder,CreateFunctionRequest>- Specified by:
toBuilderin classAppSyncRequest
-
builder
public static CreateFunctionRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateFunctionRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-