Class Attachment
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Attachment.Builder,
Attachment>
An attachment in an Amazon Q Business conversation.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal String
The identifier of the Amazon Q Business attachment.static Attachment.Builder
builder()
final String
The identifier of the Amazon Q Business conversation the attachment is associated with.final CopyFromSource
copyFrom()
A CopyFromSource containing a reference to the original source of the Amazon Q Business attachment.final Instant
The Unix timestamp when the Amazon Q Business attachment was created.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final ErrorDetail
error()
ErrorDetail providing information about a Amazon Q Business attachment error.final Integer
fileSize()
Size in bytes of the Amazon Q Business attachment.final String
fileType()
Filetype of the Amazon Q Business attachment.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
MD5 checksum of the Amazon Q Business attachment contents.final String
name()
Filename of the Amazon Q Business attachment.static Class
<? extends Attachment.Builder> final AttachmentStatus
status()
AttachmentStatus of the Amazon Q Business attachment.final String
AttachmentStatus of the Amazon Q Business attachment.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
attachmentId
The identifier of the Amazon Q Business attachment.
- Returns:
- The identifier of the Amazon Q Business attachment.
-
conversationId
The identifier of the Amazon Q Business conversation the attachment is associated with.
- Returns:
- The identifier of the Amazon Q Business conversation the attachment is associated with.
-
name
Filename of the Amazon Q Business attachment.
- Returns:
- Filename of the Amazon Q Business attachment.
-
copyFrom
A CopyFromSource containing a reference to the original source of the Amazon Q Business attachment.
- Returns:
- A CopyFromSource containing a reference to the original source of the Amazon Q Business attachment.
-
fileType
Filetype of the Amazon Q Business attachment.
- Returns:
- Filetype of the Amazon Q Business attachment.
-
fileSize
Size in bytes of the Amazon Q Business attachment.
- Returns:
- Size in bytes of the Amazon Q Business attachment.
-
md5chksum
MD5 checksum of the Amazon Q Business attachment contents.
- Returns:
- MD5 checksum of the Amazon Q Business attachment contents.
-
createdAt
The Unix timestamp when the Amazon Q Business attachment was created.
- Returns:
- The Unix timestamp when the Amazon Q Business attachment was created.
-
status
AttachmentStatus of the Amazon Q Business attachment.
If the service returns an enum value that is not available in the current SDK version,
status
will returnAttachmentStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- AttachmentStatus of the Amazon Q Business attachment.
- See Also:
-
statusAsString
AttachmentStatus of the Amazon Q Business attachment.
If the service returns an enum value that is not available in the current SDK version,
status
will returnAttachmentStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- AttachmentStatus of the Amazon Q Business attachment.
- See Also:
-
error
ErrorDetail providing information about a Amazon Q Business attachment error.
- Returns:
- ErrorDetail providing information about a Amazon Q Business attachment error.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Attachment.Builder,
Attachment> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-