@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ByteContentDoc extends Object implements Serializable, Cloneable, StructuredPojo
This property contains the document to chat with, along with its attributes.
Constructor and Description |
---|
ByteContentDoc() |
Modifier and Type | Method and Description |
---|---|
ByteContentDoc |
clone() |
boolean |
equals(Object obj) |
String |
getContentType()
The MIME type of the document contained in the wrapper object.
|
ByteBuffer |
getData()
The byte value of the file to upload, encoded as a Base-64 string.
|
String |
getIdentifier()
The file name of the document contained in the wrapper object.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContentType(String contentType)
The MIME type of the document contained in the wrapper object.
|
void |
setData(ByteBuffer data)
The byte value of the file to upload, encoded as a Base-64 string.
|
void |
setIdentifier(String identifier)
The file name of the document contained in the wrapper object.
|
String |
toString()
Returns a string representation of this object.
|
ByteContentDoc |
withContentType(String contentType)
The MIME type of the document contained in the wrapper object.
|
ByteContentDoc |
withData(ByteBuffer data)
The byte value of the file to upload, encoded as a Base-64 string.
|
ByteContentDoc |
withIdentifier(String identifier)
The file name of the document contained in the wrapper object.
|
public void setContentType(String contentType)
The MIME type of the document contained in the wrapper object.
contentType
- The MIME type of the document contained in the wrapper object.public String getContentType()
The MIME type of the document contained in the wrapper object.
public ByteContentDoc withContentType(String contentType)
The MIME type of the document contained in the wrapper object.
contentType
- The MIME type of the document contained in the wrapper object.public void setData(ByteBuffer data)
The byte value of the file to upload, encoded as a Base-64 string.
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.
data
- The byte value of the file to upload, encoded as a Base-64 string.public ByteBuffer getData()
The byte value of the file to upload, encoded as a Base-64 string.
ByteBuffer
s 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
.
public ByteContentDoc withData(ByteBuffer data)
The byte value of the file to upload, encoded as a Base-64 string.
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.
data
- The byte value of the file to upload, encoded as a Base-64 string.public void setIdentifier(String identifier)
The file name of the document contained in the wrapper object.
identifier
- The file name of the document contained in the wrapper object.public String getIdentifier()
The file name of the document contained in the wrapper object.
public ByteContentDoc withIdentifier(String identifier)
The file name of the document contained in the wrapper object.
identifier
- The file name of the document contained in the wrapper object.public String toString()
toString
in class Object
Object.toString()
public ByteContentDoc clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.