objectRetention property

ObjectRetention? objectRetention
getter/setter pair

Updates an object's retention configuration.

To clear an object's retention, both retentionMode and retainUntilTime must be left unset (omitted). Setting retentionMode to RETENTION_MODE_UNSPECIFIED is treated as a no-op. Unlike an unset field, it doesn't modify or clear the retention settings. An object with LOCKED retention mode can't have its retention cleared or its retainUntilTime reduced. For more information, see Object retention.

Optional.

Implementation

ObjectRetention? objectRetention;