@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 |
getEncodedString()
The image file contents, represented as a base64-encoded string.
|
String |
getFileType()
The file type of the image.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setEncodedString(ByteBuffer encodedString)
The image file contents, represented as a base64-encoded string.
|
void |
setFileType(String fileType)
The file type of the image.
|
String |
toString()
Returns a string representation of this object.
|
ImageFile |
withEncodedString(ByteBuffer encodedString)
The image file contents, represented as a base64-encoded string.
|
ImageFile |
withFileType(ImageFileType fileType)
The file type of the image.
|
ImageFile |
withFileType(String fileType)
The file type of the image.
|
public void setEncodedString(ByteBuffer encodedString)
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.
encodedString - The image file contents, represented as a base64-encoded string. The file size must be less than 1 MB.public ByteBuffer getEncodedString()
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 withEncodedString(ByteBuffer encodedString)
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.
encodedString - The image file contents, represented as a base64-encoded string. The file size must be less than 1 MB.public void setFileType(String fileType)
The file type of the image.
fileType - The file type of the image.ImageFileTypepublic String getFileType()
The file type of the image.
ImageFileTypepublic ImageFile withFileType(String fileType)
The file type of the image.
fileType - The file type of the image.ImageFileTypepublic ImageFile withFileType(ImageFileType fileType)
The file type of the image.
fileType - 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.