@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DocumentContent extends Object implements Serializable, Cloneable, StructuredPojo
The contents of a document.
| Constructor and Description |
|---|
DocumentContent() |
| Modifier and Type | Method and Description |
|---|---|
DocumentContent |
clone() |
boolean |
equals(Object obj) |
ByteBuffer |
getBlob()
The contents of the document.
|
S3 |
getS3()
The path to the document in an Amazon S3 bucket.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setBlob(ByteBuffer blob)
The contents of the document.
|
void |
setS3(S3 s3)
The path to the document in an Amazon S3 bucket.
|
String |
toString()
Returns a string representation of this object.
|
DocumentContent |
withBlob(ByteBuffer blob)
The contents of the document.
|
DocumentContent |
withS3(S3 s3)
The path to the document in an Amazon S3 bucket.
|
public void setBlob(ByteBuffer blob)
The contents of the document. Documents passed to the blob parameter must be base64 encoded. Your
code might not need to encode the document file bytes if you're using an Amazon Web Services SDK to call Amazon Q
Business APIs. If you are calling the Amazon Q Business endpoint directly using REST, you must base64 encode the
contents before sending.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
blob - The contents of the document. Documents passed to the blob parameter must be base64 encoded.
Your code might not need to encode the document file bytes if you're using an Amazon Web Services SDK to
call Amazon Q Business APIs. If you are calling the Amazon Q Business endpoint directly using REST, you
must base64 encode the contents before sending.public ByteBuffer getBlob()
The contents of the document. Documents passed to the blob parameter must be base64 encoded. Your
code might not need to encode the document file bytes if you're using an Amazon Web Services SDK to call Amazon Q
Business APIs. If you are calling the Amazon Q Business endpoint directly using REST, you must base64 encode the
contents before sending.
ByteBuffers are stateful. Calling their get methods changes their position. We recommend
using ByteBuffer.asReadOnlyBuffer() to create a read-only view of the buffer with an independent
position, and calling get methods on this rather than directly on the returned ByteBuffer.
Doing so will ensure that anyone else using the ByteBuffer will not be affected by changes to the
position.
blob parameter must be base64 encoded.
Your code might not need to encode the document file bytes if you're using an Amazon Web Services SDK to
call Amazon Q Business APIs. If you are calling the Amazon Q Business endpoint directly using REST, you
must base64 encode the contents before sending.public DocumentContent withBlob(ByteBuffer blob)
The contents of the document. Documents passed to the blob parameter must be base64 encoded. Your
code might not need to encode the document file bytes if you're using an Amazon Web Services SDK to call Amazon Q
Business APIs. If you are calling the Amazon Q Business endpoint directly using REST, you must base64 encode the
contents before sending.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
blob - The contents of the document. Documents passed to the blob parameter must be base64 encoded.
Your code might not need to encode the document file bytes if you're using an Amazon Web Services SDK to
call Amazon Q Business APIs. If you are calling the Amazon Q Business endpoint directly using REST, you
must base64 encode the contents before sending.public void setS3(S3 s3)
The path to the document in an Amazon S3 bucket.
s3 - The path to the document in an Amazon S3 bucket.public S3 getS3()
The path to the document in an Amazon S3 bucket.
public DocumentContent withS3(S3 s3)
The path to the document in an Amazon S3 bucket.
s3 - The path to the document in an Amazon S3 bucket.public String toString()
toString in class ObjectObject.toString()public DocumentContent clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.