Interface AttachmentOutput.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AttachmentOutput.Builder,
,AttachmentOutput> SdkBuilder<AttachmentOutput.Builder,
,AttachmentOutput> SdkPojo
- Enclosing class:
AttachmentOutput
public static interface AttachmentOutput.Builder
extends SdkPojo, CopyableBuilder<AttachmentOutput.Builder,AttachmentOutput>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AttachmentOutput.Builder
error
(Consumer<ErrorDetail.Builder> error) An error associated with a file uploaded during chat.error
(ErrorDetail error) An error associated with a file uploaded during chat.The name of a file uploaded during chat.The status of a file uploaded during chat.status
(AttachmentStatus status) The status of a file uploaded during chat.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 Details
-
name
The name of a file uploaded during chat.
- Parameters:
name
- The name of a file uploaded during chat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of a file uploaded during chat.
- Parameters:
status
- The status of a file uploaded during chat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of a file uploaded during chat.
- Parameters:
status
- The status of a file uploaded during chat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
error
An error associated with a file uploaded during chat.
- Parameters:
error
- An error associated with a file uploaded during chat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
An error associated with a file uploaded during chat.
This is a convenience method that creates an instance of theErrorDetail.Builder
avoiding the need to create one manually viaErrorDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerror(ErrorDetail)
.- Parameters:
error
- a consumer that will call methods onErrorDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-