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
Modifier and TypeMethodDescriptionThe type of code error.default CodeError.Builderlocation(Consumer<CodeErrorLocation.Builder> location) The line, column, and span location of the error in the code.location(CodeErrorLocation location) The line, column, and span location of the error in the code.A user presentable error.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
The line, column, and span location of the error in the code.
This is a convenience method that creates an instance of theCodeErrorLocation.Builderavoiding the need to create one manually viaCodeErrorLocation.builder().When the
Consumercompletes,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:
-