@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EvaluateCodeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
EvaluateCodeRequest() |
Modifier and Type | Method and Description |
---|---|
EvaluateCodeRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCode()
The code definition to be evaluated.
|
String |
getContext()
The map that holds all of the contextual information for your resolver invocation.
|
String |
getFunction()
The function within the code to be evaluated.
|
AppSyncRuntime |
getRuntime()
The runtime to be used when evaluating the code.
|
int |
hashCode() |
void |
setCode(String code)
The code definition to be evaluated.
|
void |
setContext(String context)
The map that holds all of the contextual information for your resolver invocation.
|
void |
setFunction(String function)
The function within the code to be evaluated.
|
void |
setRuntime(AppSyncRuntime runtime)
The runtime to be used when evaluating the code.
|
String |
toString()
Returns a string representation of this object.
|
EvaluateCodeRequest |
withCode(String code)
The code definition to be evaluated.
|
EvaluateCodeRequest |
withContext(String context)
The map that holds all of the contextual information for your resolver invocation.
|
EvaluateCodeRequest |
withFunction(String function)
The function within the code to be evaluated.
|
EvaluateCodeRequest |
withRuntime(AppSyncRuntime runtime)
The runtime to be used when evaluating the code.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setRuntime(AppSyncRuntime runtime)
The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS
runtime is
supported.
runtime
- The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS
runtime is
supported.public AppSyncRuntime getRuntime()
The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS
runtime is
supported.
APPSYNC_JS
runtime is
supported.public EvaluateCodeRequest withRuntime(AppSyncRuntime runtime)
The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS
runtime is
supported.
runtime
- The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS
runtime is
supported.public void setCode(String code)
The code definition to be evaluated. Note that code
and runtime
are both required for
this action. The runtime
value must be APPSYNC_JS
.
code
- The code definition to be evaluated. Note that code
and runtime
are both
required for this action. The runtime
value must be APPSYNC_JS
.public String getCode()
The code definition to be evaluated. Note that code
and runtime
are both required for
this action. The runtime
value must be APPSYNC_JS
.
code
and runtime
are both
required for this action. The runtime
value must be APPSYNC_JS
.public EvaluateCodeRequest withCode(String code)
The code definition to be evaluated. Note that code
and runtime
are both required for
this action. The runtime
value must be APPSYNC_JS
.
code
- The code definition to be evaluated. Note that code
and runtime
are both
required for this action. The runtime
value must be APPSYNC_JS
.public void setContext(String context)
The map that holds all of the contextual information for your resolver invocation. A context
is
required for this action.
context
- The map that holds all of the contextual information for your resolver invocation. A context
is required for this action.public String getContext()
The map that holds all of the contextual information for your resolver invocation. A context
is
required for this action.
context
is required for this action.public EvaluateCodeRequest withContext(String context)
The map that holds all of the contextual information for your resolver invocation. A context
is
required for this action.
context
- The map that holds all of the contextual information for your resolver invocation. A context
is required for this action.public void setFunction(String function)
The function within the code to be evaluated. If provided, the valid values are request
and
response
.
function
- The function within the code to be evaluated. If provided, the valid values are request
and
response
.public String getFunction()
The function within the code to be evaluated. If provided, the valid values are request
and
response
.
request
and
response
.public EvaluateCodeRequest withFunction(String function)
The function within the code to be evaluated. If provided, the valid values are request
and
response
.
function
- The function within the code to be evaluated. If provided, the valid values are request
and
response
.public String toString()
toString
in class Object
Object.toString()
public EvaluateCodeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()