Class LegalHoldPolicy.Builder

    • Field Detail

      • id

        protected final java.lang.String id
      • name

        protected final java.lang.String name
      • startDate

        protected final java.util.Date startDate
      • description

        protected java.lang.String description
      • activationTime

        protected java.util.Date activationTime
      • endDate

        protected java.util.Date endDate
    • Constructor Detail

      • Builder

        protected Builder​(java.lang.String id,
                          java.lang.String name,
                          MembersInfo members,
                          LegalHoldStatus status,
                          java.util.Date startDate)
    • Method Detail

      • withDescription

        public LegalHoldPolicy.Builder withDescription​(java.lang.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:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withActivationTime

        public LegalHoldPolicy.Builder withActivationTime​(java.util.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​(java.util.Date endDate)
        Set value for optional field.
        Parameters:
        endDate - End date of the legal hold policy.
        Returns:
        this builder