@Generated(value="software.amazon.awssdk:codegen") public class ObjectVersion extends Object implements ToCopyableBuilder<ObjectVersion.Builder,ObjectVersion>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ObjectVersion.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ObjectVersion.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() |
Boolean |
isLatest()
Specifies whether the object is (true) or is not (false) the latest version of an object.
|
String |
key()
The object key.
|
Instant |
lastModified()
Date and time the object was last modified.
|
Owner |
owner()
Returns the value of the Owner property for this object.
|
static Class<? extends ObjectVersion.Builder> |
serializableBuilderClass() |
Long |
size()
Size in bytes of the object.
|
ObjectVersionStorageClass |
storageClass()
The class of storage used to store the object.
|
String |
storageClassAsString()
The class of storage used to store the object.
|
ObjectVersion.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
versionId()
Version ID of an object.
|
copypublic String eTag()
public Long size()
public ObjectVersionStorageClass storageClass()
If the service returns an enum value that is not available in the current SDK version, storageClass will
return ObjectVersionStorageClass.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from storageClassAsString().
ObjectVersionStorageClasspublic String storageClassAsString()
If the service returns an enum value that is not available in the current SDK version, storageClass will
return ObjectVersionStorageClass.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from storageClassAsString().
ObjectVersionStorageClasspublic String key()
public String versionId()
public Boolean isLatest()
public Instant lastModified()
public Owner owner()
public ObjectVersion.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<ObjectVersion.Builder,ObjectVersion>public static ObjectVersion.Builder builder()
public static Class<? extends ObjectVersion.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.