public class CreateRetentionPolicyRequestBody extends SerializableObject
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateRetentionPolicyRequestBody.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
areOwnersNotified
Whether owner and co-owners of a file are notified when the policy nears expiration.
|
protected Boolean |
canOwnerExtendRetention
Whether the owner of a file will be allowed to extend the retention.
|
protected List<UserMini> |
customNotificationRecipients
A list of users notified when the retention policy duration is about to end.
|
protected String |
description
The additional text description of the retention policy.
|
protected EnumWrapper<CreateRetentionPolicyRequestBodyDispositionActionField> |
dispositionAction
The disposition action of the retention policy.
|
protected RetentionPolicyMaxExtensionLengthRequest |
maxExtensionLength |
protected String |
policyName
The name for the retention policy.
|
protected EnumWrapper<CreateRetentionPolicyRequestBodyPolicyTypeField> |
policyType
The type of the retention policy.
|
protected CreateRetentionPolicyRequestBodyRetentionLengthField |
retentionLength
The length of the retention policy.
|
protected EnumWrapper<CreateRetentionPolicyRequestBodyRetentionTypeField> |
retentionType
Specifies the retention type:
|
explicitlySetNullableFields| Modifier | Constructor and Description |
|---|---|
protected |
CreateRetentionPolicyRequestBody(CreateRetentionPolicyRequestBody.Builder builder) |
|
CreateRetentionPolicyRequestBody(String policyName,
CreateRetentionPolicyRequestBodyPolicyTypeField policyType,
CreateRetentionPolicyRequestBodyDispositionActionField dispositionAction) |
|
CreateRetentionPolicyRequestBody(String policyName,
CreateRetentionPolicyRequestBodyPolicyTypeField policyType,
EnumWrapper<CreateRetentionPolicyRequestBodyDispositionActionField> dispositionAction) |
|
CreateRetentionPolicyRequestBody(String policyName,
EnumWrapper<CreateRetentionPolicyRequestBodyPolicyTypeField> policyType,
CreateRetentionPolicyRequestBodyDispositionActionField dispositionAction) |
|
CreateRetentionPolicyRequestBody(String policyName,
EnumWrapper<CreateRetentionPolicyRequestBodyPolicyTypeField> policyType,
EnumWrapper<CreateRetentionPolicyRequestBodyDispositionActionField> dispositionAction) |
getRawData, setRawDatagetExplicitlySetNullableFields, isFieldExplicitlySet, markNullableFieldAsSet, markNullableFieldsAsSetprotected final String policyName
protected String description
protected final EnumWrapper<CreateRetentionPolicyRequestBodyPolicyTypeField> policyType
protected final EnumWrapper<CreateRetentionPolicyRequestBodyDispositionActionField> dispositionAction
protected CreateRetentionPolicyRequestBodyRetentionLengthField retentionLength
protected EnumWrapper<CreateRetentionPolicyRequestBodyRetentionTypeField> retentionType
* `modifiable`: You can modify the retention policy. For example, you can add or remove folders, shorten or lengthen the policy duration, or delete the assignment. Use this type if your retention policy is not related to any regulatory purposes.
* `non_modifiable`: You can modify the retention policy only in a limited way: add a folder, lengthen the duration, retire the policy, change the disposition action or notification settings. You cannot perform other actions, such as deleting the assignment or shortening the policy duration. Use this type to ensure compliance with regulatory retention policies.
protected Boolean canOwnerExtendRetention
protected RetentionPolicyMaxExtensionLengthRequest maxExtensionLength
protected Boolean areOwnersNotified
protected List<UserMini> customNotificationRecipients
public CreateRetentionPolicyRequestBody(String policyName, CreateRetentionPolicyRequestBodyPolicyTypeField policyType, CreateRetentionPolicyRequestBodyDispositionActionField dispositionAction)
public CreateRetentionPolicyRequestBody(String policyName, CreateRetentionPolicyRequestBodyPolicyTypeField policyType, EnumWrapper<CreateRetentionPolicyRequestBodyDispositionActionField> dispositionAction)
public CreateRetentionPolicyRequestBody(String policyName, EnumWrapper<CreateRetentionPolicyRequestBodyPolicyTypeField> policyType, CreateRetentionPolicyRequestBodyDispositionActionField dispositionAction)
public CreateRetentionPolicyRequestBody(String policyName, EnumWrapper<CreateRetentionPolicyRequestBodyPolicyTypeField> policyType, EnumWrapper<CreateRetentionPolicyRequestBodyDispositionActionField> dispositionAction)
protected CreateRetentionPolicyRequestBody(CreateRetentionPolicyRequestBody.Builder builder)
public String getPolicyName()
public String getDescription()
public EnumWrapper<CreateRetentionPolicyRequestBodyPolicyTypeField> getPolicyType()
public EnumWrapper<CreateRetentionPolicyRequestBodyDispositionActionField> getDispositionAction()
public CreateRetentionPolicyRequestBodyRetentionLengthField getRetentionLength()
public EnumWrapper<CreateRetentionPolicyRequestBodyRetentionTypeField> getRetentionType()
public Boolean getCanOwnerExtendRetention()
public RetentionPolicyMaxExtensionLengthRequest getMaxExtensionLength()
public Boolean getAreOwnersNotified()
public List<UserMini> getCustomNotificationRecipients()