@Generated(value="software.amazon.awssdk:codegen") public class S3Object extends Object implements 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.
|
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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copypublic String key()
public Instant lastModified()
public String eTag()
public Long size()
public ObjectStorageClass storageClass()
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().
ObjectStorageClasspublic String storageClassAsString()
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().
ObjectStorageClasspublic Owner owner()
public S3Object.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<S3Object.Builder,S3Object>public static S3Object.Builder builder()
public static Class<? extends S3Object.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.