@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Item extends Object implements Serializable, Cloneable, StructuredPojo
A metadata entry for a folder or object.
Constructor and Description |
---|
Item() |
Modifier and Type | Method and Description |
---|---|
Item |
clone() |
boolean |
equals(Object obj) |
Long |
getContentLength()
The length of the item in bytes.
|
String |
getContentType()
The content type of the item.
|
String |
getETag()
The ETag that represents a unique instance of the item.
|
Date |
getLastModified()
The date and time that the item was last modified.
|
String |
getName()
The name of the item.
|
String |
getType()
The item type (folder or object).
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContentLength(Long contentLength)
The length of the item in bytes.
|
void |
setContentType(String contentType)
The content type of the item.
|
void |
setETag(String eTag)
The ETag that represents a unique instance of the item.
|
void |
setLastModified(Date lastModified)
The date and time that the item was last modified.
|
void |
setName(String name)
The name of the item.
|
void |
setType(String type)
The item type (folder or object).
|
String |
toString()
Returns a string representation of this object.
|
Item |
withContentLength(Long contentLength)
The length of the item in bytes.
|
Item |
withContentType(String contentType)
The content type of the item.
|
Item |
withETag(String eTag)
The ETag that represents a unique instance of the item.
|
Item |
withLastModified(Date lastModified)
The date and time that the item was last modified.
|
Item |
withName(String name)
The name of the item.
|
Item |
withType(ItemType type)
The item type (folder or object).
|
Item |
withType(String type)
The item type (folder or object).
|
public void setName(String name)
The name of the item.
name
- The name of the item.public String getName()
The name of the item.
public Item withName(String name)
The name of the item.
name
- The name of the item.public void setType(String type)
The item type (folder or object).
type
- The item type (folder or object).ItemType
public String getType()
The item type (folder or object).
ItemType
public Item withType(String type)
The item type (folder or object).
type
- The item type (folder or object).ItemType
public Item withType(ItemType type)
The item type (folder or object).
type
- The item type (folder or object).ItemType
public void setETag(String eTag)
The ETag that represents a unique instance of the item.
eTag
- The ETag that represents a unique instance of the item.public String getETag()
The ETag that represents a unique instance of the item.
public Item withETag(String eTag)
The ETag that represents a unique instance of the item.
eTag
- The ETag that represents a unique instance of the item.public void setLastModified(Date lastModified)
The date and time that the item was last modified.
lastModified
- The date and time that the item was last modified.public Date getLastModified()
The date and time that the item was last modified.
public Item withLastModified(Date lastModified)
The date and time that the item was last modified.
lastModified
- The date and time that the item was last modified.public void setContentType(String contentType)
The content type of the item.
contentType
- The content type of the item.public String getContentType()
The content type of the item.
public Item withContentType(String contentType)
The content type of the item.
contentType
- The content type of the item.public void setContentLength(Long contentLength)
The length of the item in bytes.
contentLength
- The length of the item in bytes.public Long getContentLength()
The length of the item in bytes.
public Item withContentLength(Long contentLength)
The length of the item in bytes.
contentLength
- The length of the item in bytes.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.