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

box / box-java-sdk-gen / #295

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#295

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 hits per line

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

10.26
/src/main/java/com/box/sdkgen/schemas/realtimeserver/RealtimeServer.java
1
package com.box.sdkgen.schemas.realtimeserver;
2

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

9
@JsonFilter("nullablePropertyFilter")
10
public class RealtimeServer extends SerializableObject {
11

12
  protected String type;
13

14
  protected String url;
15

16
  protected String ttl;
17

18
  @JsonProperty("max_retries")
19
  protected String maxRetries;
20

21
  @JsonProperty("retry_timeout")
22
  protected Long retryTimeout;
23

24
  public RealtimeServer() {
25
    super();
1✔
26
  }
1✔
27

28
  protected RealtimeServer(Builder builder) {
29
    super();
×
30
    this.type = builder.type;
×
31
    this.url = builder.url;
×
32
    this.ttl = builder.ttl;
×
UNCOV
33
    this.maxRetries = builder.maxRetries;
×
UNCOV
34
    this.retryTimeout = builder.retryTimeout;
×
UNCOV
35
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
36
  }
×
37

38
  public String getType() {
39
    return type;
1✔
40
  }
41

42
  public String getUrl() {
43
    return url;
1✔
44
  }
45

46
  public String getTtl() {
47
    return ttl;
×
48
  }
49

50
  public String getMaxRetries() {
51
    return maxRetries;
×
52
  }
53

54
  public Long getRetryTimeout() {
UNCOV
55
    return retryTimeout;
×
56
  }
57

58
  @Override
59
  public boolean equals(Object o) {
60
    if (this == o) {
×
UNCOV
61
      return true;
×
62
    }
63
    if (o == null || getClass() != o.getClass()) {
×
64
      return false;
×
65
    }
66
    RealtimeServer casted = (RealtimeServer) o;
×
67
    return Objects.equals(type, casted.type)
×
UNCOV
68
        && Objects.equals(url, casted.url)
×
UNCOV
69
        && Objects.equals(ttl, casted.ttl)
×
UNCOV
70
        && Objects.equals(maxRetries, casted.maxRetries)
×
UNCOV
71
        && Objects.equals(retryTimeout, casted.retryTimeout);
×
72
  }
73

74
  @Override
75
  public int hashCode() {
UNCOV
76
    return Objects.hash(type, url, ttl, maxRetries, retryTimeout);
×
77
  }
78

79
  @Override
80
  public String toString() {
UNCOV
81
    return "RealtimeServer{"
×
82
        + "type='"
83
        + type
84
        + '\''
85
        + ", "
86
        + "url='"
87
        + url
88
        + '\''
89
        + ", "
90
        + "ttl='"
91
        + ttl
92
        + '\''
93
        + ", "
94
        + "maxRetries='"
95
        + maxRetries
96
        + '\''
97
        + ", "
98
        + "retryTimeout='"
99
        + retryTimeout
100
        + '\''
101
        + "}";
102
  }
103

UNCOV
104
  public static class Builder extends NullableFieldTracker {
×
105

106
    protected String type;
107

108
    protected String url;
109

110
    protected String ttl;
111

112
    protected String maxRetries;
113

114
    protected Long retryTimeout;
115

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

121
    public Builder url(String url) {
UNCOV
122
      this.url = url;
×
123
      return this;
×
124
    }
125

126
    public Builder ttl(String ttl) {
UNCOV
127
      this.ttl = ttl;
×
128
      return this;
×
129
    }
130

131
    public Builder maxRetries(String maxRetries) {
UNCOV
132
      this.maxRetries = maxRetries;
×
133
      return this;
×
134
    }
135

136
    public Builder retryTimeout(Long retryTimeout) {
UNCOV
137
      this.retryTimeout = retryTimeout;
×
138
      return this;
×
139
    }
140

141
    public RealtimeServer build() {
UNCOV
142
      return new RealtimeServer(this);
×
143
    }
144
  }
145
}
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