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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AttachmentOutput.Buildererror(Consumer<ErrorDetail.Builder> error)An error associated with a file uploaded during chat.AttachmentOutput.Buildererror(ErrorDetail error)An error associated with a file uploaded during chat.AttachmentOutput.Buildername(String name)The name of a file uploaded during chat.AttachmentOutput.Builderstatus(String status)The status of a file uploaded during chat.AttachmentOutput.Builderstatus(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 Detail
-
error
AttachmentOutput.Builder error(ErrorDetail 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
default AttachmentOutput.Builder error(Consumer<ErrorDetail.Builder> error)
An error associated with a file uploaded during chat.
This is a convenience method that creates an instance of theErrorDetail.Builderavoiding the need to create one manually viaErrorDetail.builder().When the
Consumercompletes,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:
error(ErrorDetail)
-
name
AttachmentOutput.Builder name(String 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
AttachmentOutput.Builder status(String 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:
AttachmentStatus,AttachmentStatus
-
status
AttachmentOutput.Builder status(AttachmentStatus 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:
AttachmentStatus,AttachmentStatus
-
-