@Generated(value="software.amazon.awssdk:codegen") public final class ObjectVersion extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ObjectVersion.Builder,ObjectVersion>
The version of an object.
Modifier and Type | Class and Description |
---|---|
static interface |
ObjectVersion.Builder |
Modifier and Type | Method and Description |
---|---|
static ObjectVersion.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
String |
eTag()
The entity tag is an MD5 hash of that version of the 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()
Specifies the owner of the object.
|
List<SdkField<?>> |
sdkFields() |
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()
Returns a string representation of this object.
|
String |
versionId()
Version ID of an object.
|
copy
public final String eTag()
The entity tag is an MD5 hash of that version of the object.
public final Long size()
Size in bytes of the object.
public final ObjectVersionStorageClass 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 ObjectVersionStorageClass.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from storageClassAsString()
.
ObjectVersionStorageClass
public final 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 ObjectVersionStorageClass.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from storageClassAsString()
.
ObjectVersionStorageClass
public final String key()
The object key.
public final String versionId()
Version ID of an object.
public final Boolean isLatest()
Specifies whether the object is (true) or is not (false) the latest version of an object.
public final Instant lastModified()
Date and time the object was last modified.
public final Owner owner()
Specifies the owner of the object.
public ObjectVersion.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ObjectVersion.Builder,ObjectVersion>
public static ObjectVersion.Builder builder()
public static Class<? extends ObjectVersion.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.