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

box / box-java-sdk-gen / #188

04 Jun 2025 10:42AM UTC coverage: 34.762% (-0.9%) from 35.631%
#188

Pull #327

github

web-flow
Merge a4b5eccbc into 28f2ec7f8
Pull Request #327: chore: Update .codegen.json with commit hash of codegen and openapi spec

15770 of 45365 relevant lines covered (34.76%)

0.35 hits per line

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

0.0
/src/main/java/com/box/sdkgen/schemas/searchresultswithsharedlinks/SearchResultsWithSharedLinks.java
1
package com.box.sdkgen.schemas.searchresultswithsharedlinks;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.schemas.searchresultwithsharedlink.SearchResultWithSharedLink;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
8
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
9
import java.util.List;
10
import java.util.Objects;
11

12
public class SearchResultsWithSharedLinks extends SerializableObject {
13

14
  @JsonProperty("total_count")
15
  protected Long totalCount;
16

17
  protected Long limit;
18

19
  protected Long offset;
20

21
  @JsonDeserialize(
22
      using =
23
          SearchResultsWithSharedLinksTypeField.SearchResultsWithSharedLinksTypeFieldDeserializer
24
              .class)
25
  @JsonSerialize(
26
      using =
27
          SearchResultsWithSharedLinksTypeField.SearchResultsWithSharedLinksTypeFieldSerializer
28
              .class)
29
  protected EnumWrapper<SearchResultsWithSharedLinksTypeField> type;
30

31
  protected List<SearchResultWithSharedLink> entries;
32

33
  public SearchResultsWithSharedLinks() {
34
    super();
×
35
    this.type =
×
36
        new EnumWrapper<SearchResultsWithSharedLinksTypeField>(
37
            SearchResultsWithSharedLinksTypeField.SEARCH_RESULTS_WITH_SHARED_LINKS);
38
  }
×
39

40
  protected SearchResultsWithSharedLinks(SearchResultsWithSharedLinksBuilder builder) {
41
    super();
×
42
    this.totalCount = builder.totalCount;
×
43
    this.limit = builder.limit;
×
44
    this.offset = builder.offset;
×
45
    this.type = builder.type;
×
46
    this.entries = builder.entries;
×
47
  }
×
48

49
  public Long getTotalCount() {
50
    return totalCount;
×
51
  }
52

53
  public Long getLimit() {
54
    return limit;
×
55
  }
56

57
  public Long getOffset() {
58
    return offset;
×
59
  }
60

61
  public EnumWrapper<SearchResultsWithSharedLinksTypeField> getType() {
62
    return type;
×
63
  }
64

65
  public List<SearchResultWithSharedLink> getEntries() {
66
    return entries;
×
67
  }
68

69
  @Override
70
  public boolean equals(Object o) {
71
    if (this == o) {
×
72
      return true;
×
73
    }
74
    if (o == null || getClass() != o.getClass()) {
×
75
      return false;
×
76
    }
77
    SearchResultsWithSharedLinks casted = (SearchResultsWithSharedLinks) o;
×
78
    return Objects.equals(totalCount, casted.totalCount)
×
79
        && Objects.equals(limit, casted.limit)
×
80
        && Objects.equals(offset, casted.offset)
×
81
        && Objects.equals(type, casted.type)
×
82
        && Objects.equals(entries, casted.entries);
×
83
  }
84

85
  @Override
86
  public int hashCode() {
87
    return Objects.hash(totalCount, limit, offset, type, entries);
×
88
  }
89

90
  @Override
91
  public String toString() {
92
    return "SearchResultsWithSharedLinks{"
×
93
        + "totalCount='"
94
        + totalCount
95
        + '\''
96
        + ", "
97
        + "limit='"
98
        + limit
99
        + '\''
100
        + ", "
101
        + "offset='"
102
        + offset
103
        + '\''
104
        + ", "
105
        + "type='"
106
        + type
107
        + '\''
108
        + ", "
109
        + "entries='"
110
        + entries
111
        + '\''
112
        + "}";
113
  }
114

115
  public static class SearchResultsWithSharedLinksBuilder {
116

117
    protected Long totalCount;
118

119
    protected Long limit;
120

121
    protected Long offset;
122

123
    protected EnumWrapper<SearchResultsWithSharedLinksTypeField> type;
124

125
    protected List<SearchResultWithSharedLink> entries;
126

127
    public SearchResultsWithSharedLinksBuilder() {
×
128
      this.type =
×
129
          new EnumWrapper<SearchResultsWithSharedLinksTypeField>(
130
              SearchResultsWithSharedLinksTypeField.SEARCH_RESULTS_WITH_SHARED_LINKS);
131
    }
×
132

133
    public SearchResultsWithSharedLinksBuilder totalCount(Long totalCount) {
134
      this.totalCount = totalCount;
×
135
      return this;
×
136
    }
137

138
    public SearchResultsWithSharedLinksBuilder limit(Long limit) {
139
      this.limit = limit;
×
140
      return this;
×
141
    }
142

143
    public SearchResultsWithSharedLinksBuilder offset(Long offset) {
144
      this.offset = offset;
×
145
      return this;
×
146
    }
147

148
    public SearchResultsWithSharedLinksBuilder type(SearchResultsWithSharedLinksTypeField type) {
149
      this.type = new EnumWrapper<SearchResultsWithSharedLinksTypeField>(type);
×
150
      return this;
×
151
    }
152

153
    public SearchResultsWithSharedLinksBuilder type(
154
        EnumWrapper<SearchResultsWithSharedLinksTypeField> type) {
155
      this.type = type;
×
156
      return this;
×
157
    }
158

159
    public SearchResultsWithSharedLinksBuilder entries(List<SearchResultWithSharedLink> entries) {
160
      this.entries = entries;
×
161
      return this;
×
162
    }
163

164
    public SearchResultsWithSharedLinks build() {
165
      return new SearchResultsWithSharedLinks(this);
×
166
    }
167
  }
168
}
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