pub struct Builder { /* private fields */ }
Expand description
A builder for EvaluateMappingTemplateOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn evaluation_result(self, input: impl Into<String>) -> Self
pub fn evaluation_result(self, input: impl Into<String>) -> Self
The mapping template; this can be a request or response template.
sourcepub fn set_evaluation_result(self, input: Option<String>) -> Self
pub fn set_evaluation_result(self, input: Option<String>) -> Self
The mapping template; this can be a request or response template.
sourcepub fn error(self, input: ErrorDetail) -> Self
pub fn error(self, input: ErrorDetail) -> Self
The ErrorDetail
object.
sourcepub fn set_error(self, input: Option<ErrorDetail>) -> Self
pub fn set_error(self, input: Option<ErrorDetail>) -> Self
The ErrorDetail
object.
sourcepub fn logs(self, input: impl Into<String>) -> Self
pub fn logs(self, input: impl Into<String>) -> Self
Appends an item to logs
.
To override the contents of this collection use set_logs
.
A list of logs that were generated by calls to util.log.info
and util.log.error
in the evaluated code.
sourcepub fn set_logs(self, input: Option<Vec<String>>) -> Self
pub fn set_logs(self, input: Option<Vec<String>>) -> Self
A list of logs that were generated by calls to util.log.info
and util.log.error
in the evaluated code.
sourcepub fn build(self) -> EvaluateMappingTemplateOutput
pub fn build(self) -> EvaluateMappingTemplateOutput
Consumes the builder and constructs a EvaluateMappingTemplateOutput
.