Struct aws_sdk_appsync::operation::evaluate_mapping_template::builders::EvaluateMappingTemplateFluentBuilder
source · pub struct EvaluateMappingTemplateFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to EvaluateMappingTemplate
.
Evaluates a given template and returns the response. The mapping template can be a request or response template.
Request templates take the incoming request after a GraphQL operation is parsed and convert it into a request configuration for the selected data source operation. Response templates interpret responses from the data source and map it to the shape of the GraphQL field output type.
Mapping templates are written in the Apache Velocity Template Language (VTL).
Implementations§
source§impl EvaluateMappingTemplateFluentBuilder
impl EvaluateMappingTemplateFluentBuilder
sourcepub fn as_input(&self) -> &EvaluateMappingTemplateInputBuilder
pub fn as_input(&self) -> &EvaluateMappingTemplateInputBuilder
Access the EvaluateMappingTemplate as a reference.
sourcepub async fn send(
self
) -> Result<EvaluateMappingTemplateOutput, SdkError<EvaluateMappingTemplateError, HttpResponse>>
pub async fn send( self ) -> Result<EvaluateMappingTemplateOutput, SdkError<EvaluateMappingTemplateError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<EvaluateMappingTemplateOutput, EvaluateMappingTemplateError, Self>
pub fn customize( self ) -> CustomizableOperation<EvaluateMappingTemplateOutput, EvaluateMappingTemplateError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn template(self, input: impl Into<String>) -> Self
pub fn template(self, input: impl Into<String>) -> Self
The mapping template; this can be a request or response template. A template
is required for this action.
sourcepub fn set_template(self, input: Option<String>) -> Self
pub fn set_template(self, input: Option<String>) -> Self
The mapping template; this can be a request or response template. A template
is required for this action.
sourcepub fn get_template(&self) -> &Option<String>
pub fn get_template(&self) -> &Option<String>
The mapping template; this can be a request or response template. A template
is required for this action.
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.
Trait Implementations§
source§impl Clone for EvaluateMappingTemplateFluentBuilder
impl Clone for EvaluateMappingTemplateFluentBuilder
source§fn clone(&self) -> EvaluateMappingTemplateFluentBuilder
fn clone(&self) -> EvaluateMappingTemplateFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more