Struct aws_sdk_appsync::model::code_error::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CodeError
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn error_type(self, input: impl Into<String>) -> Self
pub fn error_type(self, input: impl Into<String>) -> Self
The type of code error.
Examples include, but aren't limited to: LINT_ERROR
, PARSER_ERROR
.
sourcepub fn set_error_type(self, input: Option<String>) -> Self
pub fn set_error_type(self, input: Option<String>) -> Self
The type of code error.
Examples include, but aren't limited to: LINT_ERROR
, PARSER_ERROR
.
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
A user presentable error.
Examples include, but aren't limited to: Parsing error: Unterminated string literal
.
sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
A user presentable error.
Examples include, but aren't limited to: Parsing error: Unterminated string literal
.
sourcepub fn location(self, input: CodeErrorLocation) -> Self
pub fn location(self, input: CodeErrorLocation) -> Self
The line, column, and span location of the error in the code.
sourcepub fn set_location(self, input: Option<CodeErrorLocation>) -> Self
pub fn set_location(self, input: Option<CodeErrorLocation>) -> Self
The line, column, and span location of the error in the code.