• 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

13.89
/src/main/java/com/box/sdkgen/schemas/aisingleagentresponse/AiSingleAgentResponse.java
1
package com.box.sdkgen.schemas.aisingleagentresponse;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.internal.utils.DateTimeUtils;
6
import com.box.sdkgen.schemas.aiagentallowedentity.AiAgentAllowedEntity;
7
import com.box.sdkgen.schemas.userbase.UserBase;
8
import com.box.sdkgen.serialization.json.EnumWrapper;
9
import com.fasterxml.jackson.annotation.JsonFilter;
10
import com.fasterxml.jackson.annotation.JsonProperty;
11
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
12
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
13
import java.util.Date;
14
import java.util.List;
15
import java.util.Objects;
16

17
@JsonFilter("nullablePropertyFilter")
18
public class AiSingleAgentResponse extends SerializableObject {
19

20
  protected final String id;
21

22
  @JsonDeserialize(
23
      using = AiSingleAgentResponseTypeField.AiSingleAgentResponseTypeFieldDeserializer.class)
24
  @JsonSerialize(
25
      using = AiSingleAgentResponseTypeField.AiSingleAgentResponseTypeFieldSerializer.class)
26
  protected EnumWrapper<AiSingleAgentResponseTypeField> type;
27

28
  protected final String origin;
29

30
  protected final String name;
31

32
  @JsonProperty("access_state")
33
  protected final String accessState;
34

35
  @JsonProperty("created_by")
36
  protected UserBase createdBy;
37

38
  @JsonProperty("created_at")
39
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
40
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
41
  protected Date createdAt;
42

43
  @JsonProperty("modified_by")
44
  protected UserBase modifiedBy;
45

46
  @JsonProperty("modified_at")
47
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
48
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
49
  protected Date modifiedAt;
50

51
  @JsonProperty("icon_reference")
52
  protected String iconReference;
53

54
  @JsonProperty("allowed_entities")
55
  protected List<AiAgentAllowedEntity> allowedEntities;
56

57
  public AiSingleAgentResponse(
58
      @JsonProperty("id") String id,
59
      @JsonProperty("origin") String origin,
60
      @JsonProperty("name") String name,
61
      @JsonProperty("access_state") String accessState) {
62
    super();
1✔
63
    this.id = id;
1✔
64
    this.origin = origin;
1✔
65
    this.name = name;
1✔
66
    this.accessState = accessState;
1✔
67
  }
1✔
68

69
  protected AiSingleAgentResponse(Builder builder) {
70
    super();
×
71
    this.id = builder.id;
×
72
    this.type = builder.type;
×
73
    this.origin = builder.origin;
×
74
    this.name = builder.name;
×
75
    this.accessState = builder.accessState;
×
76
    this.createdBy = builder.createdBy;
×
77
    this.createdAt = builder.createdAt;
×
78
    this.modifiedBy = builder.modifiedBy;
×
79
    this.modifiedAt = builder.modifiedAt;
×
UNCOV
80
    this.iconReference = builder.iconReference;
×
UNCOV
81
    this.allowedEntities = builder.allowedEntities;
×
UNCOV
82
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
83
  }
×
84

85
  public String getId() {
86
    return id;
1✔
87
  }
88

89
  public EnumWrapper<AiSingleAgentResponseTypeField> getType() {
90
    return type;
1✔
91
  }
92

93
  public String getOrigin() {
UNCOV
94
    return origin;
×
95
  }
96

97
  public String getName() {
98
    return name;
1✔
99
  }
100

101
  public String getAccessState() {
102
    return accessState;
1✔
103
  }
104

105
  public UserBase getCreatedBy() {
106
    return createdBy;
×
107
  }
108

109
  public Date getCreatedAt() {
110
    return createdAt;
×
111
  }
112

113
  public UserBase getModifiedBy() {
114
    return modifiedBy;
×
115
  }
116

117
  public Date getModifiedAt() {
118
    return modifiedAt;
×
119
  }
120

121
  public String getIconReference() {
122
    return iconReference;
×
123
  }
124

125
  public List<AiAgentAllowedEntity> getAllowedEntities() {
UNCOV
126
    return allowedEntities;
×
127
  }
128

129
  @Override
130
  public boolean equals(Object o) {
131
    if (this == o) {
×
UNCOV
132
      return true;
×
133
    }
134
    if (o == null || getClass() != o.getClass()) {
×
135
      return false;
×
136
    }
137
    AiSingleAgentResponse casted = (AiSingleAgentResponse) o;
×
138
    return Objects.equals(id, casted.id)
×
139
        && Objects.equals(type, casted.type)
×
140
        && Objects.equals(origin, casted.origin)
×
141
        && Objects.equals(name, casted.name)
×
142
        && Objects.equals(accessState, casted.accessState)
×
143
        && Objects.equals(createdBy, casted.createdBy)
×
144
        && Objects.equals(createdAt, casted.createdAt)
×
UNCOV
145
        && Objects.equals(modifiedBy, casted.modifiedBy)
×
UNCOV
146
        && Objects.equals(modifiedAt, casted.modifiedAt)
×
UNCOV
147
        && Objects.equals(iconReference, casted.iconReference)
×
UNCOV
148
        && Objects.equals(allowedEntities, casted.allowedEntities);
×
149
  }
150

151
  @Override
152
  public int hashCode() {
UNCOV
153
    return Objects.hash(
×
154
        id,
155
        type,
156
        origin,
157
        name,
158
        accessState,
159
        createdBy,
160
        createdAt,
161
        modifiedBy,
162
        modifiedAt,
163
        iconReference,
164
        allowedEntities);
165
  }
166

167
  @Override
168
  public String toString() {
UNCOV
169
    return "AiSingleAgentResponse{"
×
170
        + "id='"
171
        + id
172
        + '\''
173
        + ", "
174
        + "type='"
175
        + type
176
        + '\''
177
        + ", "
178
        + "origin='"
179
        + origin
180
        + '\''
181
        + ", "
182
        + "name='"
183
        + name
184
        + '\''
185
        + ", "
186
        + "accessState='"
187
        + accessState
188
        + '\''
189
        + ", "
190
        + "createdBy='"
191
        + createdBy
192
        + '\''
193
        + ", "
194
        + "createdAt='"
195
        + createdAt
196
        + '\''
197
        + ", "
198
        + "modifiedBy='"
199
        + modifiedBy
200
        + '\''
201
        + ", "
202
        + "modifiedAt='"
203
        + modifiedAt
204
        + '\''
205
        + ", "
206
        + "iconReference='"
207
        + iconReference
208
        + '\''
209
        + ", "
210
        + "allowedEntities='"
211
        + allowedEntities
212
        + '\''
213
        + "}";
214
  }
215

216
  public static class Builder extends NullableFieldTracker {
217

218
    protected final String id;
219

220
    protected EnumWrapper<AiSingleAgentResponseTypeField> type;
221

222
    protected final String origin;
223

224
    protected final String name;
225

226
    protected final String accessState;
227

228
    protected UserBase createdBy;
229

230
    protected Date createdAt;
231

232
    protected UserBase modifiedBy;
233

234
    protected Date modifiedAt;
235

236
    protected String iconReference;
237

238
    protected List<AiAgentAllowedEntity> allowedEntities;
239

240
    public Builder(String id, String origin, String name, String accessState) {
241
      super();
×
UNCOV
242
      this.id = id;
×
UNCOV
243
      this.origin = origin;
×
244
      this.name = name;
×
245
      this.accessState = accessState;
×
UNCOV
246
    }
×
247

248
    public Builder type(AiSingleAgentResponseTypeField type) {
249
      this.type = new EnumWrapper<AiSingleAgentResponseTypeField>(type);
×
250
      return this;
×
251
    }
252

253
    public Builder type(EnumWrapper<AiSingleAgentResponseTypeField> type) {
254
      this.type = type;
×
255
      return this;
×
256
    }
257

258
    public Builder createdBy(UserBase createdBy) {
259
      this.createdBy = createdBy;
×
260
      return this;
×
261
    }
262

263
    public Builder createdAt(Date createdAt) {
264
      this.createdAt = createdAt;
×
265
      return this;
×
266
    }
267

268
    public Builder modifiedBy(UserBase modifiedBy) {
269
      this.modifiedBy = modifiedBy;
×
270
      return this;
×
271
    }
272

273
    public Builder modifiedAt(Date modifiedAt) {
274
      this.modifiedAt = modifiedAt;
×
275
      return this;
×
276
    }
277

278
    public Builder iconReference(String iconReference) {
279
      this.iconReference = iconReference;
×
280
      return this;
×
281
    }
282

283
    public Builder allowedEntities(List<AiAgentAllowedEntity> allowedEntities) {
284
      this.allowedEntities = allowedEntities;
×
UNCOV
285
      return this;
×
286
    }
287

288
    public AiSingleAgentResponse build() {
UNCOV
289
      return new AiSingleAgentResponse(this);
×
290
    }
291
  }
292
}
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