• 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

8.33
/src/main/java/com/box/sdkgen/schemas/webhooks/Webhooks.java
1
package com.box.sdkgen.schemas.webhooks;
2

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

12
/** A list of webhooks. */
13
@JsonFilter("nullablePropertyFilter")
14
public class Webhooks extends SerializableObject {
15

16
  /**
17
   * The limit that was used for these entries. This will be the same as the `limit` query parameter
18
   * unless that value exceeded the maximum value allowed. The maximum value varies by API.
19
   */
20
  protected Long limit;
21

22
  /** The marker for the start of the next page of results. */
23
  @JsonProperty("next_marker")
24
  @Nullable
25
  protected String nextMarker;
26

27
  /** The marker for the start of the previous page of results. */
28
  @JsonProperty("prev_marker")
29
  @Nullable
30
  protected String prevMarker;
31

32
  /** A list of webhooks. */
33
  protected List<WebhookMini> entries;
34

35
  public Webhooks() {
36
    super();
1✔
37
  }
1✔
38

39
  protected Webhooks(Builder builder) {
40
    super();
×
41
    this.limit = builder.limit;
×
42
    this.nextMarker = builder.nextMarker;
×
43
    this.prevMarker = builder.prevMarker;
×
44
    this.entries = builder.entries;
×
45
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
46
  }
×
47

48
  public Long getLimit() {
49
    return limit;
×
50
  }
51

52
  public String getNextMarker() {
53
    return nextMarker;
×
54
  }
55

56
  public String getPrevMarker() {
57
    return prevMarker;
×
58
  }
59

60
  public List<WebhookMini> getEntries() {
61
    return entries;
1✔
62
  }
63

64
  @Override
65
  public boolean equals(Object o) {
66
    if (this == o) {
×
67
      return true;
×
68
    }
69
    if (o == null || getClass() != o.getClass()) {
×
70
      return false;
×
71
    }
72
    Webhooks casted = (Webhooks) o;
×
73
    return Objects.equals(limit, casted.limit)
×
74
        && Objects.equals(nextMarker, casted.nextMarker)
×
75
        && Objects.equals(prevMarker, casted.prevMarker)
×
76
        && Objects.equals(entries, casted.entries);
×
77
  }
78

79
  @Override
80
  public int hashCode() {
81
    return Objects.hash(limit, nextMarker, prevMarker, entries);
×
82
  }
83

84
  @Override
85
  public String toString() {
86
    return "Webhooks{"
×
87
        + "limit='"
88
        + limit
89
        + '\''
90
        + ", "
91
        + "nextMarker='"
92
        + nextMarker
93
        + '\''
94
        + ", "
95
        + "prevMarker='"
96
        + prevMarker
97
        + '\''
98
        + ", "
99
        + "entries='"
100
        + entries
101
        + '\''
102
        + "}";
103
  }
104

105
  public static class Builder extends NullableFieldTracker {
×
106

107
    protected Long limit;
108

109
    protected String nextMarker;
110

111
    protected String prevMarker;
112

113
    protected List<WebhookMini> entries;
114

115
    public Builder limit(Long limit) {
116
      this.limit = limit;
×
117
      return this;
×
118
    }
119

120
    public Builder nextMarker(String nextMarker) {
121
      this.nextMarker = nextMarker;
×
122
      this.markNullableFieldAsSet("next_marker");
×
123
      return this;
×
124
    }
125

126
    public Builder prevMarker(String prevMarker) {
127
      this.prevMarker = prevMarker;
×
128
      this.markNullableFieldAsSet("prev_marker");
×
129
      return this;
×
130
    }
131

132
    public Builder entries(List<WebhookMini> entries) {
133
      this.entries = entries;
×
134
      return this;
×
135
    }
136

137
    public Webhooks build() {
138
      return new Webhooks(this);
×
139
    }
140
  }
141
}
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