Class LockDurationDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • coolOffDuration

        public LockDurationDetails.Builder coolOffDuration​(Integer coolOffDuration)
        For snapshots in compliance mode, a cooling-off period (measured in days) begins.

        During this time, you can still edit or remove the lock. Once this period ends, the snapshot becomes immutable until the specified retention date expires, permanently preventing any deletion or modification. The cool off duration can be set for a minimum of 0 days and a maximum of 365. It defaults to 14 days if not set.

        Parameters:
        coolOffDuration - the value to set
        Returns:
        this builder
      • lockDuration

        public LockDurationDetails.Builder lockDuration​(Integer lockDuration)
        The retention period (measured in days) defines how long a snapshot remains locked, preventing user modifications or deletions.

        In governance mode this period can be adjusted, but in compliance mode it becomes permanent after a cool-off period. Snapshots can be locked for a minimum of 0 days and a maximum of 36,500 days. A value of 0 days stands for an indefinite retention period and it is used for a legal hold.

        Parameters:
        lockDuration - the value to set
        Returns:
        this builder
      • lockMode

        public LockDurationDetails.Builder lockMode​(LockDurationDetails.LockMode lockMode)
        Can be GOVERNANCE or COMPLIANCE.

        GOVERNANCE MODE: locks snapshots based on either a retention period or a legal hold. COMPLIANCE MODE: the customer can only remove the snapshot during its cooling-off period. Once that time ends, the snapshot becomes immutable; customers cannot delete or modify it until its set retention date passes. After the snapshot is locked, customers can only increase its retention period.

        Parameters:
        lockMode - the value to set
        Returns:
        this builder