#[non_exhaustive]pub struct EvaluateCodeInputBuilder { /* private fields */ }
Expand description
A builder for EvaluateCodeInput
.
Implementations§
source§impl EvaluateCodeInputBuilder
impl EvaluateCodeInputBuilder
sourcepub fn runtime(self, input: AppSyncRuntime) -> Self
pub fn runtime(self, input: AppSyncRuntime) -> Self
The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS
runtime is supported.
sourcepub fn set_runtime(self, input: Option<AppSyncRuntime>) -> Self
pub fn set_runtime(self, input: Option<AppSyncRuntime>) -> Self
The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS
runtime is supported.
sourcepub fn get_runtime(&self) -> &Option<AppSyncRuntime>
pub fn get_runtime(&self) -> &Option<AppSyncRuntime>
The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS
runtime is supported.
sourcepub fn code(self, input: impl Into<String>) -> Self
pub fn code(self, input: impl Into<String>) -> Self
The code definition to be evaluated. Note that code
and runtime
are both required for this action. The runtime
value must be APPSYNC_JS
.
sourcepub fn set_code(self, input: Option<String>) -> Self
pub fn set_code(self, input: Option<String>) -> Self
The code definition to be evaluated. Note that code
and runtime
are both required for this action. The runtime
value must be APPSYNC_JS
.
sourcepub fn get_code(&self) -> &Option<String>
pub fn get_code(&self) -> &Option<String>
The code definition to be evaluated. Note that code
and runtime
are both required for this action. The runtime
value must be APPSYNC_JS
.
sourcepub fn context(self, input: impl Into<String>) -> Self
pub fn context(self, input: impl Into<String>) -> Self
The map that holds all of the contextual information for your resolver invocation. A context
is required for this action.
sourcepub fn set_context(self, input: Option<String>) -> Self
pub fn set_context(self, input: Option<String>) -> Self
The map that holds all of the contextual information for your resolver invocation. A context
is required for this action.
sourcepub fn get_context(&self) -> &Option<String>
pub fn get_context(&self) -> &Option<String>
The map that holds all of the contextual information for your resolver invocation. A context
is required for this action.
sourcepub fn function(self, input: impl Into<String>) -> Self
pub fn function(self, input: impl Into<String>) -> Self
The function within the code to be evaluated. If provided, the valid values are request
and response
.
sourcepub fn set_function(self, input: Option<String>) -> Self
pub fn set_function(self, input: Option<String>) -> Self
The function within the code to be evaluated. If provided, the valid values are request
and response
.
sourcepub fn get_function(&self) -> &Option<String>
pub fn get_function(&self) -> &Option<String>
The function within the code to be evaluated. If provided, the valid values are request
and response
.
sourcepub fn build(self) -> Result<EvaluateCodeInput, BuildError>
pub fn build(self) -> Result<EvaluateCodeInput, BuildError>
Consumes the builder and constructs a EvaluateCodeInput
.
source§impl EvaluateCodeInputBuilder
impl EvaluateCodeInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<EvaluateCodeOutput, SdkError<EvaluateCodeError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<EvaluateCodeOutput, SdkError<EvaluateCodeError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for EvaluateCodeInputBuilder
impl Clone for EvaluateCodeInputBuilder
source§fn clone(&self) -> EvaluateCodeInputBuilder
fn clone(&self) -> EvaluateCodeInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EvaluateCodeInputBuilder
impl Debug for EvaluateCodeInputBuilder
source§impl Default for EvaluateCodeInputBuilder
impl Default for EvaluateCodeInputBuilder
source§fn default() -> EvaluateCodeInputBuilder
fn default() -> EvaluateCodeInputBuilder
source§impl PartialEq<EvaluateCodeInputBuilder> for EvaluateCodeInputBuilder
impl PartialEq<EvaluateCodeInputBuilder> for EvaluateCodeInputBuilder
source§fn eq(&self, other: &EvaluateCodeInputBuilder) -> bool
fn eq(&self, other: &EvaluateCodeInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.