public class CreateLegalHoldPolicyRequestBody extends SerializableObject
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateLegalHoldPolicyRequestBody.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
description
A description for the policy.
|
protected OffsetDateTime |
filterEndedAt
The filter end date.
|
protected OffsetDateTime |
filterStartedAt
The filter start date.
|
protected Boolean |
isOngoing
Whether new assignments under this policy should continue applying to files even after
initialization.
|
protected String |
policyName
The name of the policy.
|
explicitlySetNullableFields| Modifier | Constructor and Description |
|---|---|
protected |
CreateLegalHoldPolicyRequestBody(CreateLegalHoldPolicyRequestBody.Builder builder) |
|
CreateLegalHoldPolicyRequestBody(String policyName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getDescription() |
OffsetDateTime |
getFilterEndedAt() |
OffsetDateTime |
getFilterStartedAt() |
Boolean |
getIsOngoing() |
String |
getPolicyName() |
int |
hashCode() |
String |
toString() |
getRawData, setRawDatagetExplicitlySetNullableFields, isFieldExplicitlySet, markNullableFieldAsSet, markNullableFieldsAsSetprotected final String policyName
protected String description
protected OffsetDateTime filterStartedAt
When this policy is applied using a `custodian` legal hold assignments, it will only apply to file versions created or uploaded inside of the date range. Other assignment types, such as folders and files, will ignore the date filter.
Required if `is_ongoing` is set to `false`.
protected OffsetDateTime filterEndedAt
When this policy is applied using a `custodian` legal hold assignments, it will only apply to file versions created or uploaded inside of the date range. Other assignment types, such as folders and files, will ignore the date filter.
Required if `is_ongoing` is set to `false`.
protected Boolean isOngoing
When this policy is applied using a legal hold assignment, it will continue applying the policy to any new file versions even after it has been applied.
For example, if a legal hold assignment is placed on a user today, and that user uploads a file tomorrow, that file will get held. This will continue until the policy is retired.
Required if no filter dates are set.
public CreateLegalHoldPolicyRequestBody(String policyName)
protected CreateLegalHoldPolicyRequestBody(CreateLegalHoldPolicyRequestBody.Builder builder)
public String getPolicyName()
public String getDescription()
public OffsetDateTime getFilterStartedAt()
public OffsetDateTime getFilterEndedAt()
public Boolean getIsOngoing()