Interface Attachment.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Attachment.Builder,,Attachment> SdkBuilder<Attachment.Builder,,Attachment> SdkPojo
- Enclosing class:
Attachment
-
Method Summary
Modifier and TypeMethodDescriptionattachmentId(String attachmentId) The identifier of the Amazon Q Business attachment.conversationId(String conversationId) The identifier of the Amazon Q Business conversation the attachment is associated with.default Attachment.BuildercopyFrom(Consumer<CopyFromSource.Builder> copyFrom) A CopyFromSource containing a reference to the original source of the Amazon Q Business attachment.copyFrom(CopyFromSource copyFrom) A CopyFromSource containing a reference to the original source of the Amazon Q Business attachment.The Unix timestamp when the Amazon Q Business attachment was created.default Attachment.Buildererror(Consumer<ErrorDetail.Builder> error) ErrorDetail providing information about a Amazon Q Business attachment error.error(ErrorDetail error) ErrorDetail providing information about a Amazon Q Business attachment error.Size in bytes of the Amazon Q Business attachment.Filetype of the Amazon Q Business attachment.MD5 checksum of the Amazon Q Business attachment contents.Filename of the Amazon Q Business attachment.AttachmentStatus of the Amazon Q Business attachment.status(AttachmentStatus status) AttachmentStatus of the Amazon Q Business attachment.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
-
attachmentId
The identifier of the Amazon Q Business attachment.
- Parameters:
attachmentId- The identifier of the Amazon Q Business attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conversationId
The identifier of the Amazon Q Business conversation the attachment is associated with.
- Parameters:
conversationId- The identifier of the Amazon Q Business conversation the attachment is associated with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
Filename of the Amazon Q Business attachment.
- Parameters:
name- Filename of the Amazon Q Business attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
copyFrom
A CopyFromSource containing a reference to the original source of the Amazon Q Business attachment.
- Parameters:
copyFrom- A CopyFromSource containing a reference to the original source of the Amazon Q Business attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
copyFrom
A CopyFromSource containing a reference to the original source of the Amazon Q Business attachment.
This is a convenience method that creates an instance of theCopyFromSource.Builderavoiding the need to create one manually viaCopyFromSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocopyFrom(CopyFromSource).- Parameters:
copyFrom- a consumer that will call methods onCopyFromSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fileType
Filetype of the Amazon Q Business attachment.
- Parameters:
fileType- Filetype of the Amazon Q Business attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileSize
Size in bytes of the Amazon Q Business attachment.
- Parameters:
fileSize- Size in bytes of the Amazon Q Business attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
md5chksum
MD5 checksum of the Amazon Q Business attachment contents.
- Parameters:
md5chksum- MD5 checksum of the Amazon Q Business attachment contents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The Unix timestamp when the Amazon Q Business attachment was created.
- Parameters:
createdAt- The Unix timestamp when the Amazon Q Business attachment was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
AttachmentStatus of the Amazon Q Business attachment.
- Parameters:
status- AttachmentStatus of the Amazon Q Business attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
AttachmentStatus of the Amazon Q Business attachment.
- Parameters:
status- AttachmentStatus of the Amazon Q Business attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
error
ErrorDetail providing information about a Amazon Q Business attachment error.
- Parameters:
error- ErrorDetail providing information about a Amazon Q Business attachment error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
ErrorDetail providing information about a Amazon Q Business attachment error.
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:
-