@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Image extends Object implements Serializable, Cloneable, StructuredPojo
Contains an image that is one of the following:
An image file. Choose this option to upload a new image.
The ID of an existing image. Choose this option to keep an existing image.
Constructor and Description |
---|
Image() |
Modifier and Type | Method and Description |
---|---|
Image |
clone() |
boolean |
equals(Object obj) |
ImageFile |
getFile() |
String |
getId()
The ID of an existing image.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFile(ImageFile file) |
void |
setId(String id)
The ID of an existing image.
|
String |
toString()
Returns a string representation of this object.
|
Image |
withFile(ImageFile file) |
Image |
withId(String id)
The ID of an existing image.
|
public void setId(String id)
The ID of an existing image. Specify this parameter to keep an existing image.
id
- The ID of an existing image. Specify this parameter to keep an existing image.public String getId()
The ID of an existing image. Specify this parameter to keep an existing image.
public Image withId(String id)
The ID of an existing image. Specify this parameter to keep an existing image.
id
- The ID of an existing image. Specify this parameter to keep an existing image.public void setFile(ImageFile file)
file
- public ImageFile getFile()
public Image withFile(ImageFile file)
file
- public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.