public class FileVersionRetention extends SerializableObject
**Note**: File retention API is now **deprecated**. To get information about files and file versions under retention, see [files under retention](https://developer.box.com/reference/get-retention-policy-assignments-id-files-under-retention) or [file versions under retention](https://developer.box.com/reference/get-retention-policy-assignments-id-file-versions-under-retention) endpoints.
| Modifier and Type | Class and Description |
|---|---|
static class |
FileVersionRetention.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected OffsetDateTime |
appliedAt
When this file version retention object was created.
|
protected OffsetDateTime |
dispositionAt
When the retention expires on this file version retention.
|
protected FileMini |
file |
protected FileVersionMini |
fileVersion |
protected String |
id
The unique identifier for this file version retention.
|
protected EnumWrapper<FileVersionRetentionTypeField> |
type
The value will always be `file_version_retention`.
|
protected RetentionPolicyMini |
winningRetentionPolicy |
explicitlySetNullableFields| Modifier | Constructor and Description |
|---|---|
|
FileVersionRetention() |
protected |
FileVersionRetention(FileVersionRetention.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
OffsetDateTime |
getAppliedAt() |
OffsetDateTime |
getDispositionAt() |
FileMini |
getFile() |
FileVersionMini |
getFileVersion() |
String |
getId() |
EnumWrapper<FileVersionRetentionTypeField> |
getType() |
RetentionPolicyMini |
getWinningRetentionPolicy() |
int |
hashCode() |
String |
toString() |
getRawData, setRawDatagetExplicitlySetNullableFields, isFieldExplicitlySet, markNullableFieldAsSet, markNullableFieldsAsSetprotected EnumWrapper<FileVersionRetentionTypeField> type
protected FileVersionMini fileVersion
protected OffsetDateTime appliedAt
protected OffsetDateTime dispositionAt
protected RetentionPolicyMini winningRetentionPolicy
public FileVersionRetention()
protected FileVersionRetention(FileVersionRetention.Builder builder)
public EnumWrapper<FileVersionRetentionTypeField> getType()
public FileVersionMini getFileVersion()
public OffsetDateTime getAppliedAt()
public OffsetDateTime getDispositionAt()
public RetentionPolicyMini getWinningRetentionPolicy()