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 interface
EvaluateCodeRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EvaluateCodeRequest.Builder
builder()
String
code()
The code definition to be evaluated.String
context()
The map that holds all of the contextual information for your resolver invocation.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
String
function()
The function within the code to be evaluated.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
AppSyncRuntime
runtime()
The runtime to be used when evaluating the code.List<SdkField<?>>
sdkFields()
static Class<? extends EvaluateCodeRequest.Builder>
serializableBuilderClass()
EvaluateCodeRequest.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
-
runtime
public final AppSyncRuntime runtime()
The runtime to be used when evaluating the code. Currently, only the
APPSYNC_JS
runtime is supported.- Returns:
- The runtime to be used when evaluating the code. Currently, only the
APPSYNC_JS
runtime is supported.
-
code
public final String code()
The code definition to be evaluated. Note that
code
andruntime
are both required for this action. Theruntime
value must beAPPSYNC_JS
.- Returns:
- The code definition to be evaluated. Note that
code
andruntime
are both required for this action. Theruntime
value must beAPPSYNC_JS
.
-
context
public final String context()
The map that holds all of the contextual information for your resolver invocation. A
context
is required for this action.- Returns:
- The map that holds all of the contextual information for your resolver invocation. A
context
is required for this action.
-
function
public final String function()
The function within the code to be evaluated. If provided, the valid values are
request
andresponse
.- Returns:
- The function within the code to be evaluated. If provided, the valid values are
request
andresponse
.
-
toBuilder
public EvaluateCodeRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<EvaluateCodeRequest.Builder,EvaluateCodeRequest>
- Specified by:
toBuilder
in classAppSyncRequest
-
builder
public static EvaluateCodeRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends EvaluateCodeRequest.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
-
-