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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

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

27.78
/src/main/java/com/box/sdkgen/schemas/weblink/WebLinkSharedLinkPermissionsField.java
1
package com.box.sdkgen.schemas.weblink;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.fasterxml.jackson.annotation.JsonFilter;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import java.util.Objects;
7

8
@JsonFilter("nullablePropertyFilter")
9
public class WebLinkSharedLinkPermissionsField extends SerializableObject {
10

11
  /**
12
   * Defines if the shared link allows for the item to be downloaded. For shared links on folders,
13
   * this also applies to any items in the folder.
14
   *
15
   * <p>This value can be set to `true` when the effective access level is set to `open` or
16
   * `company`, not `collaborators`.
17
   */
18
  @JsonProperty("can_download")
19
  protected final boolean canDownload;
20

21
  /**
22
   * Defines if the shared link allows for the item to be previewed.
23
   *
24
   * <p>This value is always `true`. For shared links on folders this also applies to any items in
25
   * the folder.
26
   */
27
  @JsonProperty("can_preview")
28
  protected final boolean canPreview;
29

30
  /**
31
   * Defines if the shared link allows for the item to be edited.
32
   *
33
   * <p>This value can only be `true` if `can_download` is also `true` and if the item has a type of
34
   * `file`.
35
   */
36
  @JsonProperty("can_edit")
37
  protected final boolean canEdit;
38

39
  public WebLinkSharedLinkPermissionsField(
40
      @JsonProperty("can_download") boolean canDownload,
41
      @JsonProperty("can_preview") boolean canPreview,
42
      @JsonProperty("can_edit") boolean canEdit) {
43
    super();
1✔
44
    this.canDownload = canDownload;
1✔
45
    this.canPreview = canPreview;
1✔
46
    this.canEdit = canEdit;
1✔
47
  }
1✔
48

49
  public boolean getCanDownload() {
50
    return canDownload;
×
51
  }
52

53
  public boolean getCanPreview() {
54
    return canPreview;
×
55
  }
56

57
  public boolean getCanEdit() {
58
    return canEdit;
×
59
  }
60

61
  @Override
62
  public boolean equals(Object o) {
63
    if (this == o) {
×
64
      return true;
×
65
    }
66
    if (o == null || getClass() != o.getClass()) {
×
67
      return false;
×
68
    }
69
    WebLinkSharedLinkPermissionsField casted = (WebLinkSharedLinkPermissionsField) o;
×
70
    return Objects.equals(canDownload, casted.canDownload)
×
71
        && Objects.equals(canPreview, casted.canPreview)
×
72
        && Objects.equals(canEdit, casted.canEdit);
×
73
  }
74

75
  @Override
76
  public int hashCode() {
77
    return Objects.hash(canDownload, canPreview, canEdit);
×
78
  }
79

80
  @Override
81
  public String toString() {
82
    return "WebLinkSharedLinkPermissionsField{"
×
83
        + "canDownload='"
84
        + canDownload
85
        + '\''
86
        + ", "
87
        + "canPreview='"
88
        + canPreview
89
        + '\''
90
        + ", "
91
        + "canEdit='"
92
        + canEdit
93
        + '\''
94
        + "}";
95
  }
96
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc