Interface TemplateError.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TemplateError.Builder,,TemplateError> SdkBuilder<TemplateError.Builder,,TemplateError> SdkPojo
- Enclosing class:
TemplateError
@Mutable
@NotThreadSafe
public static interface TemplateError.Builder
extends SdkPojo, CopyableBuilder<TemplateError.Builder,TemplateError>
-
Method Summary
Modifier and TypeMethodDescriptionDescription of the error type.Type of error.type(TemplateErrorType type) Type of error.violatedEntities(Collection<Entity> violatedEntities) An error path that shows which entities caused the template error.violatedEntities(Consumer<Entity.Builder>... violatedEntities) An error path that shows which entities caused the template error.violatedEntities(Entity... violatedEntities) An error path that shows which entities caused the template 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, sdkFieldNameToField, sdkFields
-
Method Details
-
type
Type of error.
- Parameters:
type- Type of error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
Type of error.
- Parameters:
type- Type of error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
message
Description of the error type.
- Parameters:
message- Description of the error type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
violatedEntities
An error path that shows which entities caused the template error.
- Parameters:
violatedEntities- An error path that shows which entities caused the template error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
violatedEntities
An error path that shows which entities caused the template error.
- Parameters:
violatedEntities- An error path that shows which entities caused the template error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
violatedEntities
An error path that shows which entities caused the template error.
This is a convenience method that creates an instance of theEntity.Builderavoiding the need to create one manually viaEntity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toviolatedEntities(List<Entity>).- Parameters:
violatedEntities- a consumer that will call methods onEntity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-