@Generated(value="com.ibm.cos.v2:codegen") public final class DeletedObject extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DeletedObject.Builder,DeletedObject>
Information about the deleted object.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DeletedObject.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DeletedObject.Builder |
builder() |
Boolean |
deleteMarker()
Indicates whether the specified object version that was permanently deleted was (true) or was not (false) a
delete marker before deletion.
|
String |
deleteMarkerVersionId()
The version ID of the delete marker created as a result of the DELETE operation.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
key()
The name of the deleted object.
|
Map<String,SdkField<?>> |
sdkFieldNameToField() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends DeletedObject.Builder> |
serializableBuilderClass() |
DeletedObject.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()
The version ID of the deleted object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String key()
The name of the deleted object.
public final String versionId()
The version ID of the deleted object.
This functionality is not supported for directory buckets.
This functionality is not supported for directory buckets.
public final Boolean deleteMarker()
Indicates whether the specified object version that was permanently deleted was (true) or was not (false) a delete marker before deletion. In a simple DELETE, this header indicates whether (true) or not (false) the current version of the object is a delete marker. To learn more about delete markers, see Working with delete markers.
This functionality is not supported for directory buckets.
This functionality is not supported for directory buckets.
public final String deleteMarkerVersionId()
The version ID of the delete marker created as a result of the DELETE operation. If you delete a specific object version, the value returned by this header is the version ID of the object version deleted.
This functionality is not supported for directory buckets.
This functionality is not supported for directory buckets.
public DeletedObject.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<DeletedObject.Builder,DeletedObject>public static DeletedObject.Builder builder()
public static Class<? extends DeletedObject.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojoSdkPojo 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 SdkPojoobj - the object to be compared withpublic final String toString()
public final Map<String,SdkField<?>> sdkFieldNameToField()
sdkFieldNameToField in interface SdkPojoCopyright © 2026. All rights reserved.