@Generated(value="software.amazon.awssdk:codegen") public final class S3Object extends Object implements SdkPojo, Serializable, ToCopyableBuilder<S3Object.Builder,S3Object>
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()
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
key()
|
Instant |
lastModified()
|
Owner |
owner()
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends S3Object.Builder> |
serializableBuilderClass() |
Long |
size()
|
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()
public Instant lastModified()
public String eTag()
public Long size()
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()
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 © 2019. All rights reserved.