Package com.dropbox.core.v2.teamlog
Class LegalHoldsActivateAHoldDetails
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.LegalHoldsActivateAHoldDetails
-
public class LegalHoldsActivateAHoldDetails extends java.lang.Object
Activated a hold.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Date
endDate
protected java.lang.String
legalHoldId
protected java.lang.String
name
protected java.util.Date
startDate
-
Constructor Summary
Constructors Constructor Description LegalHoldsActivateAHoldDetails(java.lang.String legalHoldId, java.lang.String name, java.util.Date startDate)
Activated a hold.LegalHoldsActivateAHoldDetails(java.lang.String legalHoldId, java.lang.String name, java.util.Date startDate, java.util.Date endDate)
Activated a hold.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.Date
getEndDate()
Hold end date.java.lang.String
getLegalHoldId()
Hold ID.java.lang.String
getName()
Hold name.java.util.Date
getStartDate()
Hold start date.int
hashCode()
java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Constructor Detail
-
LegalHoldsActivateAHoldDetails
public LegalHoldsActivateAHoldDetails(@Nonnull java.lang.String legalHoldId, @Nonnull java.lang.String name, @Nonnull java.util.Date startDate, @Nullable java.util.Date endDate)
Activated a hold.- Parameters:
legalHoldId
- Hold ID. Must not benull
.name
- Hold name. Must not benull
.startDate
- Hold start date. Must not benull
.endDate
- Hold end date.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
LegalHoldsActivateAHoldDetails
public LegalHoldsActivateAHoldDetails(@Nonnull java.lang.String legalHoldId, @Nonnull java.lang.String name, @Nonnull java.util.Date startDate)
Activated a hold.The default values for unset fields will be used.
- Parameters:
legalHoldId
- Hold ID. Must not benull
.name
- Hold name. Must not benull
.startDate
- Hold start date. Must not benull
.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getLegalHoldId
@Nonnull public java.lang.String getLegalHoldId()
Hold ID.- Returns:
- value for this field, never
null
.
-
getName
@Nonnull public java.lang.String getName()
Hold name.- Returns:
- value for this field, never
null
.
-
getStartDate
@Nonnull public java.util.Date getStartDate()
Hold start date.- Returns:
- value for this field, never
null
.
-
getEndDate
@Nullable public java.util.Date getEndDate()
Hold end date.- Returns:
- value for this field, or
null
if not present.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public java.lang.String 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
-
-