Struct aws_sdk_appsync::input::evaluate_code_input::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for EvaluateCodeInput.
Implementations§
source§impl Builder
impl Builder
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 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 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 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 build(self) -> Result<EvaluateCodeInput, BuildError>
pub fn build(self) -> Result<EvaluateCodeInput, BuildError>
Consumes the builder and constructs a EvaluateCodeInput.