@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) |
String |
eTag()
Returns the value of the ETag property for this object.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
key()
Returns the value of the Key property for this object.
|
Instant |
lastModified()
Returns the value of the LastModified property for this object.
|
Owner |
owner()
Returns the value of the Owner property for this object.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends S3Object.Builder> |
serializableBuilderClass() |
Long |
size()
Returns the value of the Size property for this 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()
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 String toString()
Copyright © 2019. All rights reserved.