• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk / #7690

28 Oct 2026 03:14PM UTC coverage: 34.078% (-0.04%) from 34.12%
#7690

push

github

web-flow
feat: add `DocumentSplitManager` and document split APIs + OTP for shared links (box/box-openapi#621)

Co-authored-by: Tsitsi Nyamutswa <128546813+tnyamutswa@users.noreply.github.com>

47 of 1790 new or added lines in 64 files covered. (2.63%)

485 existing lines in 22 files now uncovered.

20002 of 58694 relevant lines covered (34.08%)

0.34 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

12.5
/src/main/java/com/box/sdkgen/schemas/folder/FolderSharedLinkOneTimePasscodeField.java
1
package com.box.sdkgen.schemas.folder;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.sharedlinkotpallowlistentry.SharedLinkOtpAllowlistEntry;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import java.util.List;
9
import java.util.Objects;
10

11
@JsonFilter("nullablePropertyFilter")
12
public class FolderSharedLinkOneTimePasscodeField extends SerializableObject {
13

14
  /**
15
   * The current OTP enforcement mode for the shared link.
16
   *
17
   * <p>* `none` - OTP enforcement is turned off. The shared link is accessible without any
18
   * one-time-passcode verification. * `open` - Any anonymous recipient can request a
19
   * one-time-passcode to any email address and access the shared link after verifying it.
20
   * Collaborators and registered Box users access the link without being prompted. * `allowlist` -
21
   * Anonymous recipients can request a one-time-passcode only when they enter an email that matches
22
   * an entry on the `allowlist`.
23
   */
24
  protected final String mode;
25

26
  /**
27
   * The list of email and domain entries that are permitted to access the shared link when `mode`
28
   * is `allowlist`. Anonymous users whose email matches an entry can request and verify a
29
   * one-time-passcode.
30
   *
31
   * <p>Because the entries carry recipient email addresses and the identity of the user who added
32
   * them, this field is only returned to users with owner, co-owner, or editor access on the item.
33
   * For viewer collaborators and below the field is omitted.
34
   *
35
   * <p>An allowlist contains at most 1000 entries, matching the limit enforced when setting the
36
   * allowlist on a shared link.
37
   */
38
  protected List<SharedLinkOtpAllowlistEntry> allowlist;
39

40
  public FolderSharedLinkOneTimePasscodeField(@JsonProperty("mode") String mode) {
41
    super();
1 ✔
42
    this.mode = mode;
1 ✔
43
  }
1 ✔
44

45
  protected FolderSharedLinkOneTimePasscodeField(Builder builder) {
NEW
46
    super();
×
NEW
47
    this.mode = builder.mode;
×
NEW
48
    this.allowlist = builder.allowlist;
×
NEW
49
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
NEW
50
  }
×
51

52
  public String getMode() {
NEW
53
    return mode;
×
54
  }
55

56
  public List<SharedLinkOtpAllowlistEntry> getAllowlist() {
NEW
57
    return allowlist;
×
58
  }
59

60
  @Override
61
  public boolean equals(Object o) {
NEW
62
    if (this == o) {
×
NEW
63
      return true;
×
64
    }
NEW
65
    if (o == null || getClass() != o.getClass()) {
×
NEW
66
      return false;
×
67
    }
NEW
68
    FolderSharedLinkOneTimePasscodeField casted = (FolderSharedLinkOneTimePasscodeField) o;
×
NEW
69
    return Objects.equals(mode, casted.mode) && Objects.equals(allowlist, casted.allowlist);
×
70
  }
71

72
  @Override
73
  public int hashCode() {
NEW
74
    return Objects.hash(mode, allowlist);
×
75
  }
76

77
  @Override
78
  public String toString() {
NEW
79
    return "FolderSharedLinkOneTimePasscodeField{"
×
80
        + "mode='"
81
        + mode
82
        + '\''
83
        + ", "
84
        + "allowlist='"
85
        + allowlist
86
        + '\''
87
        + "}";
88
  }
89

90
  public static class Builder extends NullableFieldTracker {
91

92
    protected final String mode;
93

94
    protected List<SharedLinkOtpAllowlistEntry> allowlist;
95

96
    public Builder(String mode) {
NEW
97
      super();
×
NEW
98
      this.mode = mode;
×
NEW
99
    }
×
100

101
    public Builder allowlist(List<SharedLinkOtpAllowlistEntry> allowlist) {
NEW
102
      this.allowlist = allowlist;
×
NEW
103
      return this;
×
104
    }
105

106
    public FolderSharedLinkOneTimePasscodeField build() {
NEW
107
      return new FolderSharedLinkOneTimePasscodeField(this);
×
108
    }
109
  }
110
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc