@Generated(value="software.amazon.awssdk:codegen") public final class Item extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Item.Builder,Item>
A metadata entry for a folder or object.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Item.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Item.Builder |
builder() |
Long |
contentLength()
The length of the item in bytes.
|
String |
contentType()
The content type of the item.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
eTag()
The ETag that represents a unique instance of the item.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Instant |
lastModified()
The date and time that the item was last modified.
|
String |
name()
The name of the item.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Item.Builder> |
serializableBuilderClass() |
Item.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
ItemType |
type()
The item type (folder or object).
|
String |
typeAsString()
The item type (folder or object).
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the item.
public final ItemType type()
The item type (folder or object).
If the service returns an enum value that is not available in the current SDK version, type will return
ItemType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
ItemTypepublic final String typeAsString()
The item type (folder or object).
If the service returns an enum value that is not available in the current SDK version, type will return
ItemType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
ItemTypepublic final String eTag()
The ETag that represents a unique instance of the item.
public final Instant lastModified()
The date and time that the item was last modified.
public final String contentType()
The content type of the item.
public final Long contentLength()
The length of the item in bytes.
public Item.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Item.Builder,Item>public static Item.Builder builder()
public static Class<? extends Item.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2020. All rights reserved.