Struct aws_sdk_appsync::output::evaluate_code_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for EvaluateCodeOutput
.
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 result of the evaluation operation.
sourcepub fn set_evaluation_result(self, input: Option<String>) -> Self
pub fn set_evaluation_result(self, input: Option<String>) -> Self
The result of the evaluation operation.
sourcepub fn error(self, input: EvaluateCodeErrorDetail) -> Self
pub fn error(self, input: EvaluateCodeErrorDetail) -> Self
Contains the payload of the response error.
sourcepub fn set_error(self, input: Option<EvaluateCodeErrorDetail>) -> Self
pub fn set_error(self, input: Option<EvaluateCodeErrorDetail>) -> Self
Contains the payload of the response error.
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) -> EvaluateCodeOutput
pub fn build(self) -> EvaluateCodeOutput
Consumes the builder and constructs a EvaluateCodeOutput
.