@Generated(value="software.amazon.awssdk:codegen") public final class S3Object extends Object implements SdkPojo, Serializable, ToCopyableBuilder<S3Object.Builder,S3Object>
An object consists of data and its descriptive metadata.
Modifier and Type | Class and Description |
---|---|
static interface |
S3Object.Builder |
Modifier and Type | Method and Description |
---|---|
static S3Object.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
eTag()
The entity tag is an MD5 hash of the object.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
key()
The name that you assign to an object.
|
Instant |
lastModified()
The date the Object was Last Modified
|
Owner |
owner()
The owner of the object
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends S3Object.Builder> |
serializableBuilderClass() |
Long |
size()
Size in bytes of the object
|
ObjectStorageClass |
storageClass()
The class of storage used to store the object.
|
String |
storageClassAsString()
The class of storage used to store the object.
|
S3Object.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String key()
The name that you assign to an object. You use the object key to retrieve the object.
public Instant lastModified()
The date the Object was Last Modified
public String eTag()
The entity tag is an MD5 hash of the object. ETag reflects only changes to the contents of an object, not its metadata.
public Long size()
Size in bytes of the object
public ObjectStorageClass storageClass()
The class of storage used to store the object.
If the service returns an enum value that is not available in the current SDK version, storageClass
will
return ObjectStorageClass.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
storageClassAsString()
.
ObjectStorageClass
public String storageClassAsString()
The class of storage used to store the object.
If the service returns an enum value that is not available in the current SDK version, storageClass
will
return ObjectStorageClass.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
storageClassAsString()
.
ObjectStorageClass
public Owner owner()
The owner of the object
public S3Object.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<S3Object.Builder,S3Object>
public static S3Object.Builder builder()
public static Class<? extends S3Object.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2020. All rights reserved.