Interface CodeError.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<CodeError.Builder,CodeError>
,SdkBuilder<CodeError.Builder,CodeError>
,SdkPojo
- Enclosing class:
- CodeError
public static interface CodeError.Builder extends SdkPojo, CopyableBuilder<CodeError.Builder,CodeError>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CodeError.Builder
errorType(String errorType)
The type of code error.default CodeError.Builder
location(Consumer<CodeErrorLocation.Builder> location)
The line, column, and span location of the error in the code.CodeError.Builder
location(CodeErrorLocation location)
The line, column, and span location of the error in the code.CodeError.Builder
value(String value)
A user presentable error.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
errorType
CodeError.Builder errorType(String errorType)
The type of code error.
Examples include, but aren't limited to:
LINT_ERROR
,PARSER_ERROR
.- Parameters:
errorType
- The type of code error.Examples include, but aren't limited to:
LINT_ERROR
,PARSER_ERROR
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
CodeError.Builder value(String value)
A user presentable error.
Examples include, but aren't limited to:
Parsing error: Unterminated string literal
.- Parameters:
value
- A user presentable error.Examples include, but aren't limited to:
Parsing error: Unterminated string literal
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
CodeError.Builder location(CodeErrorLocation location)
The line, column, and span location of the error in the code.
- Parameters:
location
- The line, column, and span location of the error in the code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
default CodeError.Builder location(Consumer<CodeErrorLocation.Builder> location)
The line, column, and span location of the error in the code.
This is a convenience method that creates an instance of theCodeErrorLocation.Builder
avoiding the need to create one manually viaCodeErrorLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolocation(CodeErrorLocation)
.- Parameters:
location
- a consumer that will call methods onCodeErrorLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
location(CodeErrorLocation)
-
-