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

box / box-java-sdk-gen / #361

14 Jul 2025 11:20AM UTC coverage: 38.075% (+2.5%) from 35.58%
#361

push

github

web-flow
feat: Support common union fields and implicit union conversion (box/box-codegen#758) (#361)

288 of 1203 new or added lines in 106 files covered. (23.94%)

165 existing lines in 43 files now uncovered.

18537 of 48685 relevant lines covered (38.08%)

0.38 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.filefullorfolderfullorweblink.FileFullOrFolderFullOrWebLink;
7
import com.box.sdkgen.schemas.folderfull.FolderFull;
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
@JsonFilter("nullablePropertyFilter")
14
public class SearchResultWithSharedLink extends SerializableObject {
15

16
  @JsonProperty("accessible_via_shared_link")
17
  protected String accessibleViaSharedLink;
18

19
  protected FileFullOrFolderFullOrWebLink item;
20

21
  protected String type;
22

23
  public SearchResultWithSharedLink() {
24
    super();
1✔
25
  }
1✔
26

27
  protected SearchResultWithSharedLink(Builder builder) {
28
    super();
×
29
    this.accessibleViaSharedLink = builder.accessibleViaSharedLink;
×
30
    this.item = builder.item;
×
31
    this.type = builder.type;
×
32
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
33
  }
×
34

35
  public String getAccessibleViaSharedLink() {
36
    return accessibleViaSharedLink;
×
37
  }
38

39
  public FileFullOrFolderFullOrWebLink getItem() {
40
    return item;
×
41
  }
42

43
  public String getType() {
44
    return type;
×
45
  }
46

47
  @Override
48
  public boolean equals(Object o) {
49
    if (this == o) {
×
50
      return true;
×
51
    }
52
    if (o == null || getClass() != o.getClass()) {
×
53
      return false;
×
54
    }
55
    SearchResultWithSharedLink casted = (SearchResultWithSharedLink) o;
×
56
    return Objects.equals(accessibleViaSharedLink, casted.accessibleViaSharedLink)
×
57
        && Objects.equals(item, casted.item)
×
58
        && Objects.equals(type, casted.type);
×
59
  }
60

61
  @Override
62
  public int hashCode() {
63
    return Objects.hash(accessibleViaSharedLink, item, type);
×
64
  }
65

66
  @Override
67
  public String toString() {
68
    return "SearchResultWithSharedLink{"
×
69
        + "accessibleViaSharedLink='"
70
        + accessibleViaSharedLink
71
        + '\''
72
        + ", "
73
        + "item='"
74
        + item
75
        + '\''
76
        + ", "
77
        + "type='"
78
        + type
79
        + '\''
80
        + "}";
81
  }
82

83
  public static class Builder extends NullableFieldTracker {
×
84

85
    protected String accessibleViaSharedLink;
86

87
    protected FileFullOrFolderFullOrWebLink item;
88

89
    protected String type;
90

91
    public Builder accessibleViaSharedLink(String accessibleViaSharedLink) {
92
      this.accessibleViaSharedLink = accessibleViaSharedLink;
×
93
      return this;
×
94
    }
95

96
    public Builder item(FileFull item) {
NEW
97
      this.item = new FileFullOrFolderFullOrWebLink(item);
×
NEW
98
      return this;
×
99
    }
100

101
    public Builder item(FolderFull item) {
NEW
102
      this.item = new FileFullOrFolderFullOrWebLink(item);
×
NEW
103
      return this;
×
104
    }
105

106
    public Builder item(WebLink item) {
NEW
107
      this.item = new FileFullOrFolderFullOrWebLink(item);
×
NEW
108
      return this;
×
109
    }
110

111
    public Builder item(FileFullOrFolderFullOrWebLink item) {
112
      this.item = item;
×
113
      return this;
×
114
    }
115

116
    public Builder type(String type) {
117
      this.type = type;
×
118
      return this;
×
119
    }
120

121
    public SearchResultWithSharedLink build() {
122
      return new SearchResultWithSharedLink(this);
×
123
    }
124
  }
125
}
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