Package com.dropbox.core.v2.team
Class LegalHoldPolicy
java.lang.Object
com.dropbox.core.v2.team.LegalHoldPolicy
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Dateprotected final Stringprotected final Dateprotected final Stringprotected final MembersInfoprotected final Stringprotected final Dateprotected final LegalHoldStatus -
Constructor Summary
ConstructorsConstructorDescriptionLegalHoldPolicy(String id, String name, MembersInfo members, LegalHoldStatus status, Date startDate) NoneLegalHoldPolicy(String id, String name, MembersInfo members, LegalHoldStatus status, Date startDate, String description, Date activationTime, Date endDate) UsenewBuilder(java.lang.String,java.lang.String,com.dropbox.core.v2.team.MembersInfo,com.dropbox.core.v2.team.LegalHoldStatus,java.util.Date)to create instances of this class without specifying values for all optional fields. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe time at which the legal hold was activated.A description of the legal hold policy.End date of the legal hold policy.getId()The legal hold id.Team members IDs and number of permanently deleted members under hold.getName()Policy name.Start date of the legal hold policy.The current state of the hold.inthashCode()static LegalHoldPolicy.BuildernewBuilder(String id, String name, MembersInfo members, LegalHoldStatus status, Date startDate) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
id
-
name
-
description
-
activationTime
-
members
-
status
-
startDate
-
endDate
-
-
Constructor Details
-
LegalHoldPolicy
public LegalHoldPolicy(@Nonnull String id, @Nonnull String name, @Nonnull MembersInfo members, @Nonnull LegalHoldStatus status, @Nonnull Date startDate, @Nullable String description, @Nullable Date activationTime, @Nullable Date endDate) UsenewBuilder(java.lang.String,java.lang.String,com.dropbox.core.v2.team.MembersInfo,com.dropbox.core.v2.team.LegalHoldStatus,java.util.Date)to create instances of this class without specifying values for all optional fields.- Parameters:
id- The legal hold id. Must match pattern "^pid_dbhid:.+" and not benull.name- Policy name. Must have length of at most 140 and not benull.members- Team members IDs and number of permanently deleted members under hold. Must not benull.status- The current state of the hold. Must not benull.startDate- Start date of the legal hold policy. Must not benull.description- A description of the legal hold policy. Must have length of at most 501.activationTime- The time at which the legal hold was activated.endDate- End date of the legal hold policy.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
LegalHoldPolicy
public LegalHoldPolicy(@Nonnull String id, @Nonnull String name, @Nonnull MembersInfo members, @Nonnull LegalHoldStatus status, @Nonnull Date startDate) NoneThe default values for unset fields will be used.
- Parameters:
id- The legal hold id. Must match pattern "^pid_dbhid:.+" and not benull.name- Policy name. Must have length of at most 140 and not benull.members- Team members IDs and number of permanently deleted members under hold. Must not benull.status- The current state of the hold. Must not benull.startDate- Start date of the legal hold policy. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getId
The legal hold id.- Returns:
- value for this field, never
null.
-
getName
Policy name.- Returns:
- value for this field, never
null.
-
getMembers
Team members IDs and number of permanently deleted members under hold.- Returns:
- value for this field, never
null.
-
getStatus
The current state of the hold.- Returns:
- value for this field, never
null.
-
getStartDate
Start date of the legal hold policy.- Returns:
- value for this field, never
null.
-
getDescription
A description of the legal hold policy.- Returns:
- value for this field, or
nullif not present.
-
getActivationTime
The time at which the legal hold was activated.- Returns:
- value for this field, or
nullif not present.
-
getEndDate
End date of the legal hold policy.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static LegalHoldPolicy.Builder newBuilder(String id, String name, MembersInfo members, LegalHoldStatus status, Date startDate) Returns a new builder for creating an instance of this class.- Parameters:
id- The legal hold id. Must match pattern "^pid_dbhid:.+" and not benull.name- Policy name. Must have length of at most 140 and not benull.members- Team members IDs and number of permanently deleted members under hold. Must not benull.status- The current state of the hold. Must not benull.startDate- Start date of the legal hold policy. Must not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-