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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

0.36 hits per line

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

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

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.internal.utils.DateTimeUtils;
5
import com.box.sdkgen.schemas.aiagentallowedentity.AiAgentAllowedEntity;
6
import com.box.sdkgen.schemas.userbase.UserBase;
7
import com.box.sdkgen.serialization.json.EnumWrapper;
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.Date;
12
import java.util.List;
13
import java.util.Objects;
14

15
public class AiSingleAgentResponse extends SerializableObject {
16

17
  protected final String id;
18

19
  @JsonDeserialize(
20
      using = AiSingleAgentResponseTypeField.AiSingleAgentResponseTypeFieldDeserializer.class)
21
  @JsonSerialize(
22
      using = AiSingleAgentResponseTypeField.AiSingleAgentResponseTypeFieldSerializer.class)
23
  protected EnumWrapper<AiSingleAgentResponseTypeField> type;
24

25
  protected final String origin;
26

27
  protected final String name;
28

29
  @JsonProperty("access_state")
30
  protected final String accessState;
31

32
  @JsonProperty("created_by")
33
  protected UserBase createdBy;
34

35
  @JsonProperty("created_at")
36
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
37
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
38
  protected Date createdAt;
39

40
  @JsonProperty("modified_by")
41
  protected UserBase modifiedBy;
42

43
  @JsonProperty("modified_at")
44
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
45
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
46
  protected Date modifiedAt;
47

48
  @JsonProperty("icon_reference")
49
  protected String iconReference;
50

51
  @JsonProperty("allowed_entities")
52
  protected List<AiAgentAllowedEntity> allowedEntities;
53

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

66
  protected AiSingleAgentResponse(Builder builder) {
67
    super();
×
68
    this.id = builder.id;
×
69
    this.type = builder.type;
×
70
    this.origin = builder.origin;
×
71
    this.name = builder.name;
×
72
    this.accessState = builder.accessState;
×
73
    this.createdBy = builder.createdBy;
×
74
    this.createdAt = builder.createdAt;
×
75
    this.modifiedBy = builder.modifiedBy;
×
76
    this.modifiedAt = builder.modifiedAt;
×
77
    this.iconReference = builder.iconReference;
×
78
    this.allowedEntities = builder.allowedEntities;
×
79
  }
×
80

81
  public String getId() {
82
    return id;
1✔
83
  }
84

85
  public EnumWrapper<AiSingleAgentResponseTypeField> getType() {
86
    return type;
1✔
87
  }
88

89
  public String getOrigin() {
90
    return origin;
×
91
  }
92

93
  public String getName() {
94
    return name;
1✔
95
  }
96

97
  public String getAccessState() {
98
    return accessState;
1✔
99
  }
100

101
  public UserBase getCreatedBy() {
102
    return createdBy;
×
103
  }
104

105
  public Date getCreatedAt() {
106
    return createdAt;
×
107
  }
108

109
  public UserBase getModifiedBy() {
110
    return modifiedBy;
×
111
  }
112

113
  public Date getModifiedAt() {
114
    return modifiedAt;
×
115
  }
116

117
  public String getIconReference() {
118
    return iconReference;
×
119
  }
120

121
  public List<AiAgentAllowedEntity> getAllowedEntities() {
122
    return allowedEntities;
×
123
  }
124

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

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

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

212
  public static class Builder {
213

214
    protected final String id;
215

216
    protected EnumWrapper<AiSingleAgentResponseTypeField> type;
217

218
    protected final String origin;
219

220
    protected final String name;
221

222
    protected final String accessState;
223

224
    protected UserBase createdBy;
225

226
    protected Date createdAt;
227

228
    protected UserBase modifiedBy;
229

230
    protected Date modifiedAt;
231

232
    protected String iconReference;
233

234
    protected List<AiAgentAllowedEntity> allowedEntities;
235

NEW
236
    public Builder(String id, String origin, String name, String accessState) {
×
237
      this.id = id;
×
238
      this.origin = origin;
×
239
      this.name = name;
×
240
      this.accessState = accessState;
×
241
    }
×
242

243
    public Builder type(AiSingleAgentResponseTypeField type) {
244
      this.type = new EnumWrapper<AiSingleAgentResponseTypeField>(type);
×
245
      return this;
×
246
    }
247

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

253
    public Builder createdBy(UserBase createdBy) {
254
      this.createdBy = createdBy;
×
255
      return this;
×
256
    }
257

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

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

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

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

278
    public Builder allowedEntities(List<AiAgentAllowedEntity> allowedEntities) {
UNCOV
279
      this.allowedEntities = allowedEntities;
×
280
      return this;
×
281
    }
282

283
    public AiSingleAgentResponse build() {
284
      return new AiSingleAgentResponse(this);
×
285
    }
286
  }
287
}
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