Class Attachment
- All Implemented Interfaces:
- Serializable,- SdkPojo,- ToCopyableBuilder<Attachment.Builder,- Attachment> 
An attachment in an Amazon Q Business conversation.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier 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.ToCopyableBuildercopy
- 
Method Details- 
attachmentIdThe identifier of the Amazon Q Business attachment. - Returns:
- The identifier of the Amazon Q Business attachment.
 
- 
conversationIdThe 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.
 
- 
nameFilename of the Amazon Q Business attachment. - Returns:
- Filename of the Amazon Q Business attachment.
 
- 
copyFromA 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.
 
- 
fileTypeFiletype of the Amazon Q Business attachment. - Returns:
- Filetype of the Amazon Q Business attachment.
 
- 
fileSizeSize in bytes of the Amazon Q Business attachment. - Returns:
- Size in bytes of the Amazon Q Business attachment.
 
- 
md5chksumMD5 checksum of the Amazon Q Business attachment contents. - Returns:
- MD5 checksum of the Amazon Q Business attachment contents.
 
- 
createdAtThe Unix timestamp when the Amazon Q Business attachment was created. - Returns:
- The Unix timestamp when the Amazon Q Business attachment was created.
 
- 
statusAttachmentStatus 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:
 
- 
statusAsStringAttachmentStatus 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:
 
- 
errorErrorDetail providing information about a Amazon Q Business attachment error. - Returns:
- ErrorDetail providing information about a Amazon Q Business attachment error.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<Attachment.Builder,- Attachment> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription 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 interface- SdkPojo
- 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 interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
 
 
-