@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImageFile extends Object implements Serializable, Cloneable, StructuredPojo
Contains an image file.
| Constructor and Description |
|---|
ImageFile() |
| Modifier and Type | Method and Description |
|---|---|
ImageFile |
clone() |
boolean |
equals(Object obj) |
ByteBuffer |
getData()
The image file contents, represented as a base64-encoded string.
|
String |
getType()
The file type of the image.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setData(ByteBuffer data)
The image file contents, represented as a base64-encoded string.
|
void |
setType(String type)
The file type of the image.
|
String |
toString()
Returns a string representation of this object.
|
ImageFile |
withData(ByteBuffer data)
The image file contents, represented as a base64-encoded string.
|
ImageFile |
withType(ImageFileType type)
The file type of the image.
|
ImageFile |
withType(String type)
The file type of the image.
|
public void setData(ByteBuffer data)
The image file contents, represented as a base64-encoded string. The file size must be less than 1 MB.
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 image file contents, represented as a base64-encoded string. The file size must be less than 1 MB.public ByteBuffer getData()
The image file contents, represented as a base64-encoded string. The file size must be less than 1 MB.
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.
public ImageFile withData(ByteBuffer data)
The image file contents, represented as a base64-encoded string. The file size must be less than 1 MB.
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 image file contents, represented as a base64-encoded string. The file size must be less than 1 MB.public void setType(String type)
The file type of the image.
type - The file type of the image.ImageFileTypepublic String getType()
The file type of the image.
ImageFileTypepublic ImageFile withType(String type)
The file type of the image.
type - The file type of the image.ImageFileTypepublic ImageFile withType(ImageFileType type)
The file type of the image.
type - The file type of the image.ImageFileTypepublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.