• 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

5.71
/src/main/java/com/box/sdkgen/schemas/searchresultwithsharedlink/SearchResultWithSharedLink.java
1
package com.box.sdkgen.schemas.searchresultwithsharedlink;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.filefull.FileFull;
6
import com.box.sdkgen.schemas.folderfull.FolderFull;
7
import com.box.sdkgen.schemas.searchresultwithsharedlinkitem.SearchResultWithSharedLinkItem;
8
import com.box.sdkgen.schemas.weblink.WebLink;
9
import com.fasterxml.jackson.annotation.JsonFilter;
10
import com.fasterxml.jackson.annotation.JsonProperty;
11
import java.util.Objects;
12

13
/**
14
 * A single of files, folder or web link that matched the search query, including the additional
15
 * information about the shared link through which the item has been shared with the user.
16
 *
17
 * <p>This response format is only returned when the `include_recent_shared_links` query parameter
18
 * has been set to `true`.
19
 */
20
@JsonFilter("nullablePropertyFilter")
21
public class SearchResultWithSharedLink extends SerializableObject {
22

23
  /**
24
   * The optional shared link through which the user has access to this item. This value is only
25
   * returned for items for which the user has recently accessed the file through a shared link. For
26
   * all other items this value will return `null`.
27
   */
28
  @JsonProperty("accessible_via_shared_link")
29
  protected String accessibleViaSharedLink;
30

31
  protected SearchResultWithSharedLinkItem item;
32

33
  /** The result type. The value is always `search_result`. */
34
  protected String type;
35

36
  public SearchResultWithSharedLink() {
37
    super();
1✔
38
  }
1✔
39

40
  protected SearchResultWithSharedLink(Builder builder) {
41
    super();
×
42
    this.accessibleViaSharedLink = builder.accessibleViaSharedLink;
×
43
    this.item = builder.item;
×
44
    this.type = builder.type;
×
45
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
46
  }
×
47

48
  public String getAccessibleViaSharedLink() {
49
    return accessibleViaSharedLink;
×
50
  }
51

52
  public SearchResultWithSharedLinkItem getItem() {
53
    return item;
×
54
  }
55

56
  public String getType() {
57
    return type;
×
58
  }
59

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

74
  @Override
75
  public int hashCode() {
76
    return Objects.hash(accessibleViaSharedLink, item, type);
×
77
  }
78

79
  @Override
80
  public String toString() {
81
    return "SearchResultWithSharedLink{"
×
82
        + "accessibleViaSharedLink='"
83
        + accessibleViaSharedLink
84
        + '\''
85
        + ", "
86
        + "item='"
87
        + item
88
        + '\''
89
        + ", "
90
        + "type='"
91
        + type
92
        + '\''
93
        + "}";
94
  }
95

96
  public static class Builder extends NullableFieldTracker {
×
97

98
    protected String accessibleViaSharedLink;
99

100
    protected SearchResultWithSharedLinkItem item;
101

102
    protected String type;
103

104
    public Builder accessibleViaSharedLink(String accessibleViaSharedLink) {
105
      this.accessibleViaSharedLink = accessibleViaSharedLink;
×
106
      return this;
×
107
    }
108

109
    public Builder item(FileFull item) {
110
      this.item = new SearchResultWithSharedLinkItem(item);
×
111
      return this;
×
112
    }
113

114
    public Builder item(FolderFull item) {
115
      this.item = new SearchResultWithSharedLinkItem(item);
×
116
      return this;
×
117
    }
118

119
    public Builder item(WebLink item) {
120
      this.item = new SearchResultWithSharedLinkItem(item);
×
121
      return this;
×
122
    }
123

124
    public Builder item(SearchResultWithSharedLinkItem item) {
125
      this.item = item;
×
126
      return this;
×
127
    }
128

129
    public Builder type(String type) {
130
      this.type = type;
×
131
      return this;
×
132
    }
133

134
    public SearchResultWithSharedLink build() {
135
      return new SearchResultWithSharedLink(this);
×
136
    }
137
  }
138
}
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