Class ObjectRetentionEventData
java.lang.Object
software.amazon.awssdk.eventnotifications.s3.model.ObjectRetentionEventData
The ObjectRetentionEventData is only visible for
s3:ObjectRetention:Put events, which fire on the explicit
PutObjectRetention API call.
The eventHold and eventHoldDuration fields are only present when variable (event-hold) retention is used;
they are absent for fixed retention.-
Constructor Summary
ConstructorsConstructorDescriptionObjectRetentionEventData(String mode, String retainUntilDate, String eventHold, EventHoldDuration eventHoldDuration) -
Method Summary
-
Constructor Details
-
ObjectRetentionEventData
public ObjectRetentionEventData(String mode, String retainUntilDate, String eventHold, EventHoldDuration eventHoldDuration)
-
-
Method Details
-
getMode
- Returns:
- the retention mode,
COMPLIANCEorGOVERNANCE.
-
getRetainUntilDate
- Returns:
- the retain-until-date in ISO-8601 format after the operation completed. For variable retention with event
hold ON, this is dynamically computed as
now + duration.
-
getEventHold
- Returns:
- the event hold state,
ONorOFF. Only present when variable retention is used; absent for fixed retention.
-
getEventHoldDuration
- Returns:
- the event hold duration. Only present when variable retention is used; absent for fixed retention.
-
equals
-
hashCode
-
toString
-