Class 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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • legalHoldId

        @Nonnull
        protected final java.lang.String legalHoldId
      • name

        @Nonnull
        protected final java.lang.String name
      • startDate

        @Nonnull
        protected final java.util.Date startDate
      • endDate

        @Nullable
        protected final java.util.Date endDate
    • 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 be null.
        name - Hold name. Must not be null.
        startDate - Hold start date. Must not be null.
        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 be null.
        name - Hold name. Must not be null.
        startDate - Hold start date. Must not be null.
        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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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