Class EventHoldDuration
java.lang.Object
software.amazon.awssdk.eventnotifications.s3.model.EventHoldDuration
The duration of an event-hold retention, within
ObjectRetentionEventData. Only present when variable
(event-hold) retention is used.
The duration is modeled as a single unit/value pair to mirror the message-format contract emitted
by the service: the unit becomes the JSON key and the value its number, producing {"days": 90} or
{"years": 1}. Modeling it this way (rather than fixed days/years fields) means the reader
surfaces whatever unit the service emits, so a new unit does not require an SDK change.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EventHoldDuration
-
-
Method Details
-
getUnit
- Returns:
- the duration unit, for example
"days"or"years".
-
getValue
-
equals
-
hashCode
-
toString
-