Class Item
- java.lang.Object
-
- software.amazon.awssdk.services.mediastoredata.model.Item
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Item.Builder,Item>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceItem.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Item.Builderbuilder()LongcontentLength()The length of the item in bytes.StringcontentType()The content type of the item.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringeTag()The ETag that represents a unique instance of the item.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlastModified()The date and time that the item was last modified.Stringname()The name of the item.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Item.Builder>serializableBuilderClass()Item.BuildertoBuilder()StringtoString()Returns a string representation of this object.ItemTypetype()The item type (folder or object).StringtypeAsString()The item type (folder or object).-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final String name()
The name of the item.
- Returns:
- The name of the item.
-
type
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,
typewill returnItemType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The item type (folder or object).
- See Also:
ItemType
-
typeAsString
public 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,
typewill returnItemType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The item type (folder or object).
- See Also:
ItemType
-
eTag
public final String eTag()
The ETag that represents a unique instance of the item.
- Returns:
- The ETag that represents a unique instance of the item.
-
lastModified
public final Instant lastModified()
The date and time that the item was last modified.
- Returns:
- The date and time that the item was last modified.
-
contentType
public final String contentType()
The content type of the item.
- Returns:
- The content type of the item.
-
contentLength
public final Long contentLength()
The length of the item in bytes.
- Returns:
- The length of the item in bytes.
-
toBuilder
public Item.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Item.Builder,Item>
-
builder
public static Item.Builder builder()
-
serializableBuilderClass
public static Class<? extends Item.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-