#[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 for EvaluateCodeInputBuilder
impl PartialEq for EvaluateCodeInputBuilder
impl StructuralPartialEq for EvaluateCodeInputBuilder
Auto Trait Implementations§
impl Freeze for EvaluateCodeInputBuilder
impl RefUnwindSafe for EvaluateCodeInputBuilder
impl Send for EvaluateCodeInputBuilder
impl Sync for EvaluateCodeInputBuilder
impl Unpin for EvaluateCodeInputBuilder
impl UnwindSafe for EvaluateCodeInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more