Class EvaluateCodeRequest
- 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.EvaluateCodeRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<EvaluateCodeRequest.Builder,EvaluateCodeRequest>
@Generated("software.amazon.awssdk:codegen") public final class EvaluateCodeRequest extends AppSyncRequest implements ToCopyableBuilder<EvaluateCodeRequest.Builder,EvaluateCodeRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEvaluateCodeRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EvaluateCodeRequest.Builderbuilder()Stringcode()The code definition to be evaluated.Stringcontext()The map that holds all of the contextual information for your resolver invocation.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Stringfunction()The function within the code to be evaluated.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()AppSyncRuntimeruntime()The runtime to be used when evaluating the code.List<SdkField<?>>sdkFields()static Class<? extends EvaluateCodeRequest.Builder>serializableBuilderClass()EvaluateCodeRequest.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
-
runtime
public final AppSyncRuntime runtime()
The runtime to be used when evaluating the code. Currently, only the
APPSYNC_JSruntime is supported.- Returns:
- The runtime to be used when evaluating the code. Currently, only the
APPSYNC_JSruntime is supported.
-
code
public final String code()
The code definition to be evaluated. Note that
codeandruntimeare both required for this action. Theruntimevalue must beAPPSYNC_JS.- Returns:
- The code definition to be evaluated. Note that
codeandruntimeare both required for this action. Theruntimevalue must beAPPSYNC_JS.
-
context
public final String context()
The map that holds all of the contextual information for your resolver invocation. A
contextis required for this action.- Returns:
- The map that holds all of the contextual information for your resolver invocation. A
contextis required for this action.
-
function
public final String function()
The function within the code to be evaluated. If provided, the valid values are
requestandresponse.- Returns:
- The function within the code to be evaluated. If provided, the valid values are
requestandresponse.
-
toBuilder
public EvaluateCodeRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EvaluateCodeRequest.Builder,EvaluateCodeRequest>- Specified by:
toBuilderin classAppSyncRequest
-
builder
public static EvaluateCodeRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends EvaluateCodeRequest.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
-
-