public class BoxRetentionPolicy.Info extends BoxResource.Info
Constructor and Description |
---|
Info()
Constructs an empty Info object.
|
Info(String json)
Constructs an Info object by parsing information from a JSON string.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAreOwnersNotified()
Gets the flag to denote that owners and co-owners of a retained file will get notified when near expiration.
|
boolean |
getCanOwnerExtendRetention()
Gets the flag to denote that the owner of a retained file can extend the retention when near expiration.
|
Date |
getCreatedAt()
Gets the time that the retention policy was created.
|
BoxUser.Info |
getCreatedBy()
Gets info about the user created the retention policy.
|
List<BoxUser.Info> |
getCustomNotificationRecipients()
Gets the list of users to be notified of a retained file when near expiration.
|
String |
getDescription()
Gets the additional text desription of the retention policy.
|
String |
getDispositionAction()
Gets the disposition action of the retention policy.
|
Date |
getModifiedAt()
Gets the time that the retention policy was last modified.
|
String |
getPolicyName()
Gets the name given to the retention policy.
|
String |
getPolicyType()
Gets the type of the retention policy.
|
BoxResource |
getResource()
Gets the resource associated with this Info.
|
int |
getRetentionLength()
Gets the length of the retention policy.
|
RetentionPolicyParams.RetentionType |
getRetentionType() |
String |
getStatus()
Gets the status of the retention policy.
|
void |
setDescription(String description)
Set the additional text desription of the retention policy.
|
void |
setDispositionAction(String dispositionAction)
Set the action to take when retention period ends.
|
void |
setPolicyName(String policyName)
Update the policy name to a new value.
|
void |
setRetentionLength(int retentionLength) |
void |
setRetentionTypeToNonModifiable()
It is not possible to set retention type to `modifiable` once it was set to `non-modifiable`.
|
void |
setStatus(String status)
Set the policy status.
|
getID
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public Info()
public BoxResource getResource()
getResource
in class BoxResource.Info
public String getPolicyName()
public void setPolicyName(String policyName)
policyName
- the new policy name.public String getPolicyType()
public int getRetentionLength()
public void setRetentionLength(int retentionLength)
retentionLength
- The length of the retention policy.public String getDispositionAction()
public void setDispositionAction(String dispositionAction)
dispositionAction
- the new action.public String getStatus()
public void setStatus(String status)
status
- the new status value.public BoxUser.Info getCreatedBy()
public Date getCreatedAt()
public Date getModifiedAt()
public boolean getCanOwnerExtendRetention()
public boolean getAreOwnersNotified()
public String getDescription()
public void setDescription(String description)
description
- the new text desription of the retention policypublic RetentionPolicyParams.RetentionType getRetentionType()
public void setRetentionTypeToNonModifiable()
public List<BoxUser.Info> getCustomNotificationRecipients()