Class LegalHoldPolicy.Builder

java.lang.Object
com.dropbox.core.v2.team.LegalHoldPolicy.Builder
Enclosing class:
LegalHoldPolicy

public static class LegalHoldPolicy.Builder extends Object
Builder for LegalHoldPolicy.
  • Field Details

    • id

      protected final String id
    • name

      protected final String name
    • members

      protected final MembersInfo members
    • status

      protected final LegalHoldStatus status
    • startDate

      protected final Date startDate
    • description

      protected String description
    • activationTime

      protected Date activationTime
    • endDate

      protected Date endDate
  • Constructor Details

  • Method Details

    • withDescription

      public LegalHoldPolicy.Builder withDescription(String description)
      Set value for optional field.
      Parameters:
      description - A description of the legal hold policy. Must have length of at most 501.
      Returns:
      this builder
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • withActivationTime

      public LegalHoldPolicy.Builder withActivationTime(Date activationTime)
      Set value for optional field.
      Parameters:
      activationTime - The time at which the legal hold was activated.
      Returns:
      this builder
    • withEndDate

      public LegalHoldPolicy.Builder withEndDate(Date endDate)
      Set value for optional field.
      Parameters:
      endDate - End date of the legal hold policy.
      Returns:
      this builder
    • build

      public LegalHoldPolicy build()
      Builds an instance of LegalHoldPolicy configured with this builder's values
      Returns:
      new instance of LegalHoldPolicy