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 StringThe identifier of the Amazon Q Business attachment.static Attachment.Builderbuilder()final StringThe identifier of the Amazon Q Business conversation the attachment is associated with.final CopyFromSourcecopyFrom()A CopyFromSource containing a reference to the original source of the Amazon Q Business attachment.final InstantThe Unix timestamp when the Amazon Q Business attachment was created.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final ErrorDetailerror()ErrorDetail providing information about a Amazon Q Business attachment error.final IntegerfileSize()Size in bytes of the Amazon Q Business attachment.final StringfileType()Filetype of the Amazon Q Business attachment.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringMD5 checksum of the Amazon Q Business attachment contents.final Stringname()Filename of the Amazon Q Business attachment.static Class<? extends Attachment.Builder> final AttachmentStatusstatus()AttachmentStatus of the Amazon Q Business attachment.final StringAttachmentStatus 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 StringtoString()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,
statuswill 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,
statuswill 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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Attachment.Builder,Attachment> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-