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

box / box-java-sdk-gen / #294

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

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%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 relevant lines covered (35.66%)

0.36 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/v2025r0/clienterrorv2025r0/ClientErrorV2025R0.java
1
package com.box.sdkgen.schemas.v2025r0.clienterrorv2025r0;
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.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
10
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
11
import java.util.Map;
12
import java.util.Objects;
13

14
@JsonFilter("nullablePropertyFilter")
15
public class ClientErrorV2025R0 extends SerializableObject {
16

17
  @JsonDeserialize(
18
      using = ClientErrorV2025R0TypeField.ClientErrorV2025R0TypeFieldDeserializer.class)
19
  @JsonSerialize(using = ClientErrorV2025R0TypeField.ClientErrorV2025R0TypeFieldSerializer.class)
20
  protected EnumWrapper<ClientErrorV2025R0TypeField> type;
21

22
  protected Integer status;
23

24
  @JsonDeserialize(
25
      using = ClientErrorV2025R0CodeField.ClientErrorV2025R0CodeFieldDeserializer.class)
26
  @JsonSerialize(using = ClientErrorV2025R0CodeField.ClientErrorV2025R0CodeFieldSerializer.class)
27
  protected EnumWrapper<ClientErrorV2025R0CodeField> code;
28

29
  protected String message;
30

31
  @JsonProperty("context_info")
32
  @Nullable
33
  protected Map<String, Object> contextInfo;
34

35
  @JsonProperty("help_url")
36
  protected String helpUrl;
37

38
  @JsonProperty("request_id")
39
  protected String requestId;
40

41
  public ClientErrorV2025R0() {
42
    super();
×
43
  }
×
44

45
  protected ClientErrorV2025R0(Builder builder) {
46
    super();
×
47
    this.type = builder.type;
×
48
    this.status = builder.status;
×
49
    this.code = builder.code;
×
UNCOV
50
    this.message = builder.message;
×
UNCOV
51
    this.contextInfo = builder.contextInfo;
×
52
    this.helpUrl = builder.helpUrl;
×
UNCOV
53
    this.requestId = builder.requestId;
×
UNCOV
54
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
55
  }
×
56

57
  public EnumWrapper<ClientErrorV2025R0TypeField> getType() {
UNCOV
58
    return type;
×
59
  }
60

61
  public Integer getStatus() {
UNCOV
62
    return status;
×
63
  }
64

65
  public EnumWrapper<ClientErrorV2025R0CodeField> getCode() {
UNCOV
66
    return code;
×
67
  }
68

69
  public String getMessage() {
UNCOV
70
    return message;
×
71
  }
72

73
  public Map<String, Object> getContextInfo() {
UNCOV
74
    return contextInfo;
×
75
  }
76

77
  public String getHelpUrl() {
UNCOV
78
    return helpUrl;
×
79
  }
80

81
  public String getRequestId() {
82
    return requestId;
×
83
  }
84

85
  @Override
86
  public boolean equals(Object o) {
87
    if (this == o) {
×
88
      return true;
×
89
    }
90
    if (o == null || getClass() != o.getClass()) {
×
91
      return false;
×
92
    }
93
    ClientErrorV2025R0 casted = (ClientErrorV2025R0) o;
×
94
    return Objects.equals(type, casted.type)
×
UNCOV
95
        && Objects.equals(status, casted.status)
×
UNCOV
96
        && Objects.equals(code, casted.code)
×
UNCOV
97
        && Objects.equals(message, casted.message)
×
UNCOV
98
        && Objects.equals(contextInfo, casted.contextInfo)
×
99
        && Objects.equals(helpUrl, casted.helpUrl)
×
UNCOV
100
        && Objects.equals(requestId, casted.requestId);
×
101
  }
102

103
  @Override
104
  public int hashCode() {
UNCOV
105
    return Objects.hash(type, status, code, message, contextInfo, helpUrl, requestId);
×
106
  }
107

108
  @Override
109
  public String toString() {
UNCOV
110
    return "ClientErrorV2025R0{"
×
111
        + "type='"
112
        + type
113
        + '\''
114
        + ", "
115
        + "status='"
116
        + status
117
        + '\''
118
        + ", "
119
        + "code='"
120
        + code
121
        + '\''
122
        + ", "
123
        + "message='"
124
        + message
125
        + '\''
126
        + ", "
127
        + "contextInfo='"
128
        + contextInfo
129
        + '\''
130
        + ", "
131
        + "helpUrl='"
132
        + helpUrl
133
        + '\''
134
        + ", "
135
        + "requestId='"
136
        + requestId
137
        + '\''
138
        + "}";
139
  }
140

UNCOV
141
  public static class Builder extends NullableFieldTracker {
×
142

143
    protected EnumWrapper<ClientErrorV2025R0TypeField> type;
144

145
    protected Integer status;
146

147
    protected EnumWrapper<ClientErrorV2025R0CodeField> code;
148

149
    protected String message;
150

151
    protected Map<String, Object> contextInfo;
152

153
    protected String helpUrl;
154

155
    protected String requestId;
156

157
    public Builder type(ClientErrorV2025R0TypeField type) {
158
      this.type = new EnumWrapper<ClientErrorV2025R0TypeField>(type);
×
UNCOV
159
      return this;
×
160
    }
161

162
    public Builder type(EnumWrapper<ClientErrorV2025R0TypeField> type) {
163
      this.type = type;
×
UNCOV
164
      return this;
×
165
    }
166

167
    public Builder status(Integer status) {
168
      this.status = status;
×
UNCOV
169
      return this;
×
170
    }
171

172
    public Builder code(ClientErrorV2025R0CodeField code) {
173
      this.code = new EnumWrapper<ClientErrorV2025R0CodeField>(code);
×
UNCOV
174
      return this;
×
175
    }
176

177
    public Builder code(EnumWrapper<ClientErrorV2025R0CodeField> code) {
178
      this.code = code;
×
UNCOV
179
      return this;
×
180
    }
181

182
    public Builder message(String message) {
183
      this.message = message;
×
UNCOV
184
      return this;
×
185
    }
186

187
    public Builder contextInfo(Map<String, Object> contextInfo) {
188
      this.contextInfo = contextInfo;
×
UNCOV
189
      this.markNullableFieldAsSet("context_info");
×
UNCOV
190
      return this;
×
191
    }
192

193
    public Builder helpUrl(String helpUrl) {
UNCOV
194
      this.helpUrl = helpUrl;
×
UNCOV
195
      return this;
×
196
    }
197

198
    public Builder requestId(String requestId) {
UNCOV
199
      this.requestId = requestId;
×
UNCOV
200
      return this;
×
201
    }
202

203
    public ClientErrorV2025R0 build() {
UNCOV
204
      return new ClientErrorV2025R0(this);
×
205
    }
206
  }
207
}
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