@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) |
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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
ItemType |
type()
The item type (folder or object).
|
String |
typeAsString()
The item type (folder or object).
|
copy
public String name()
The name of the item.
public 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()
.
ItemType
public 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()
.
ItemType
public String eTag()
The ETag that represents a unique instance of the item.
public Instant lastModified()
The date and time that the item was last modified.
public String contentType()
The content type of the item.
public Long contentLength()
The length of the item in bytes.
public Item.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Item.Builder,Item>
public static Item.Builder builder()
public static Class<? extends Item.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.