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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TemplateError.Buildermessage(String message)Description of the error type.TemplateError.Buildertype(String type)Type of error.TemplateError.Buildertype(TemplateErrorType type)Type of error.TemplateError.BuilderviolatedEntities(Collection<Entity> violatedEntities)An error path that shows which entities caused the template error.TemplateError.BuilderviolatedEntities(Consumer<Entity.Builder>... violatedEntities)An error path that shows which entities caused the template error.TemplateError.BuilderviolatedEntities(Entity... violatedEntities)An error path that shows which entities caused the template 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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
type
TemplateError.Builder type(String 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:
TemplateErrorType,TemplateErrorType
-
type
TemplateError.Builder type(TemplateErrorType 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:
TemplateErrorType,TemplateErrorType
-
message
TemplateError.Builder message(String 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
TemplateError.Builder violatedEntities(Collection<Entity> 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
TemplateError.Builder violatedEntities(Entity... 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
TemplateError.Builder violatedEntities(Consumer<Entity.Builder>... 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 to#violatedEntities(List.) - 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:
#violatedEntities(java.util.Collection)
-
-