Describe the bug
ListObjectVersionsResponse has a list of ObjectVersion, which uses its own enum for storage class, ObjectVersionStorageClass. This enum currently has only two values: STANDARD and UNKNOWN_TO_SDK_VERSION. The result is any StorageClass other than Standard is unknown.
Regression Issue
Expected Behavior
Storage class info to be available list as it is via the CLI
Current Behavior
Objects in storage classes other than standard show up as UNKOWN_TO_SDK_VERSION
Reproduction Steps
val listing = s3Client.listObjectVersions(..) // call on a prefix with IntelligentTiering data
for (v in listing.versions()) {
println(version.storageClass().toString()) // prints null or STANDARD only
}
Possible Solution
This train has probably left the station, but use the same enum as a list-objects-v2 or get-objects call
Additional Information/Context
No response
AWS Java SDK version used
2.42.21
JDK version used
Irrelevant
Operating System and version
Irrelevant
Describe the bug
ListObjectVersionsResponsehas a list ofObjectVersion, which uses its own enum for storage class,ObjectVersionStorageClass. This enum currently has only two values: STANDARD and UNKNOWN_TO_SDK_VERSION. The result is any StorageClass other than Standard is unknown.Regression Issue
Expected Behavior
Storage class info to be available list as it is via the CLI
Current Behavior
Objects in storage classes other than standard show up as UNKOWN_TO_SDK_VERSION
Reproduction Steps
Possible Solution
This train has probably left the station, but use the same enum as a list-objects-v2 or get-objects call
Additional Information/Context
No response
AWS Java SDK version used
2.42.21
JDK version used
Irrelevant
Operating System and version
Irrelevant