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

box / box-java-sdk-gen / #301

26 Jun 2025 03:33PM UTC coverage: 35.681% (-0.04%) from 35.723%
#301

push

github

web-flow
feat: Add webhook validation(box/box-codegen#745) (#347)

Co-authored-by: box-sdk-build <box-sdk-build@box.com>

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

11818 existing lines in 631 files now uncovered.

16948 of 47499 relevant lines covered (35.68%)

0.36 hits per line

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

10.29
/src/main/java/com/box/sdkgen/schemas/taskassignment/TaskAssignment.java
1
package com.box.sdkgen.schemas.taskassignment;
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.filemini.FileMini;
7
import com.box.sdkgen.schemas.usermini.UserMini;
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.Objects;
15

16
@JsonFilter("nullablePropertyFilter")
17
public class TaskAssignment extends SerializableObject {
18

19
  protected String id;
20

21
  @JsonDeserialize(using = TaskAssignmentTypeField.TaskAssignmentTypeFieldDeserializer.class)
22
  @JsonSerialize(using = TaskAssignmentTypeField.TaskAssignmentTypeFieldSerializer.class)
23
  protected EnumWrapper<TaskAssignmentTypeField> type;
24

25
  protected FileMini item;
26

27
  @JsonProperty("assigned_to")
28
  protected UserMini assignedTo;
29

30
  protected String message;
31

32
  @JsonProperty("completed_at")
33
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
34
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
35
  protected Date completedAt;
36

37
  @JsonProperty("assigned_at")
38
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
39
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
40
  protected Date assignedAt;
41

42
  @JsonProperty("reminded_at")
43
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
44
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
45
  protected Date remindedAt;
46

47
  @JsonDeserialize(
48
      using =
49
          TaskAssignmentResolutionStateField.TaskAssignmentResolutionStateFieldDeserializer.class)
50
  @JsonSerialize(
51
      using = TaskAssignmentResolutionStateField.TaskAssignmentResolutionStateFieldSerializer.class)
52
  @JsonProperty("resolution_state")
53
  protected EnumWrapper<TaskAssignmentResolutionStateField> resolutionState;
54

55
  @JsonProperty("assigned_by")
56
  protected UserMini assignedBy;
57

58
  public TaskAssignment() {
59
    super();
1✔
60
  }
1✔
61

62
  protected TaskAssignment(Builder builder) {
63
    super();
×
64
    this.id = builder.id;
×
65
    this.type = builder.type;
×
66
    this.item = builder.item;
×
67
    this.assignedTo = builder.assignedTo;
×
68
    this.message = builder.message;
×
69
    this.completedAt = builder.completedAt;
×
70
    this.assignedAt = builder.assignedAt;
×
71
    this.remindedAt = builder.remindedAt;
×
UNCOV
72
    this.resolutionState = builder.resolutionState;
×
UNCOV
73
    this.assignedBy = builder.assignedBy;
×
UNCOV
74
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
75
  }
×
76

77
  public String getId() {
78
    return id;
1✔
79
  }
80

81
  public EnumWrapper<TaskAssignmentTypeField> getType() {
UNCOV
82
    return type;
×
83
  }
84

85
  public FileMini getItem() {
86
    return item;
1✔
87
  }
88

89
  public UserMini getAssignedTo() {
90
    return assignedTo;
1✔
91
  }
92

93
  public String getMessage() {
94
    return message;
1✔
95
  }
96

97
  public Date getCompletedAt() {
98
    return completedAt;
×
99
  }
100

101
  public Date getAssignedAt() {
102
    return assignedAt;
×
103
  }
104

105
  public Date getRemindedAt() {
UNCOV
106
    return remindedAt;
×
107
  }
108

109
  public EnumWrapper<TaskAssignmentResolutionStateField> getResolutionState() {
110
    return resolutionState;
1✔
111
  }
112

113
  public UserMini getAssignedBy() {
UNCOV
114
    return assignedBy;
×
115
  }
116

117
  @Override
118
  public boolean equals(Object o) {
119
    if (this == o) {
×
UNCOV
120
      return true;
×
121
    }
122
    if (o == null || getClass() != o.getClass()) {
×
123
      return false;
×
124
    }
125
    TaskAssignment casted = (TaskAssignment) o;
×
126
    return Objects.equals(id, casted.id)
×
127
        && Objects.equals(type, casted.type)
×
128
        && Objects.equals(item, casted.item)
×
129
        && Objects.equals(assignedTo, casted.assignedTo)
×
130
        && Objects.equals(message, casted.message)
×
131
        && Objects.equals(completedAt, casted.completedAt)
×
UNCOV
132
        && Objects.equals(assignedAt, casted.assignedAt)
×
UNCOV
133
        && Objects.equals(remindedAt, casted.remindedAt)
×
UNCOV
134
        && Objects.equals(resolutionState, casted.resolutionState)
×
UNCOV
135
        && Objects.equals(assignedBy, casted.assignedBy);
×
136
  }
137

138
  @Override
139
  public int hashCode() {
UNCOV
140
    return Objects.hash(
×
141
        id,
142
        type,
143
        item,
144
        assignedTo,
145
        message,
146
        completedAt,
147
        assignedAt,
148
        remindedAt,
149
        resolutionState,
150
        assignedBy);
151
  }
152

153
  @Override
154
  public String toString() {
UNCOV
155
    return "TaskAssignment{"
×
156
        + "id='"
157
        + id
158
        + '\''
159
        + ", "
160
        + "type='"
161
        + type
162
        + '\''
163
        + ", "
164
        + "item='"
165
        + item
166
        + '\''
167
        + ", "
168
        + "assignedTo='"
169
        + assignedTo
170
        + '\''
171
        + ", "
172
        + "message='"
173
        + message
174
        + '\''
175
        + ", "
176
        + "completedAt='"
177
        + completedAt
178
        + '\''
179
        + ", "
180
        + "assignedAt='"
181
        + assignedAt
182
        + '\''
183
        + ", "
184
        + "remindedAt='"
185
        + remindedAt
186
        + '\''
187
        + ", "
188
        + "resolutionState='"
189
        + resolutionState
190
        + '\''
191
        + ", "
192
        + "assignedBy='"
193
        + assignedBy
194
        + '\''
195
        + "}";
196
  }
197

UNCOV
198
  public static class Builder extends NullableFieldTracker {
×
199

200
    protected String id;
201

202
    protected EnumWrapper<TaskAssignmentTypeField> type;
203

204
    protected FileMini item;
205

206
    protected UserMini assignedTo;
207

208
    protected String message;
209

210
    protected Date completedAt;
211

212
    protected Date assignedAt;
213

214
    protected Date remindedAt;
215

216
    protected EnumWrapper<TaskAssignmentResolutionStateField> resolutionState;
217

218
    protected UserMini assignedBy;
219

220
    public Builder id(String id) {
UNCOV
221
      this.id = id;
×
222
      return this;
×
223
    }
224

225
    public Builder type(TaskAssignmentTypeField type) {
UNCOV
226
      this.type = new EnumWrapper<TaskAssignmentTypeField>(type);
×
227
      return this;
×
228
    }
229

230
    public Builder type(EnumWrapper<TaskAssignmentTypeField> type) {
UNCOV
231
      this.type = type;
×
232
      return this;
×
233
    }
234

235
    public Builder item(FileMini item) {
UNCOV
236
      this.item = item;
×
237
      return this;
×
238
    }
239

240
    public Builder assignedTo(UserMini assignedTo) {
UNCOV
241
      this.assignedTo = assignedTo;
×
242
      return this;
×
243
    }
244

245
    public Builder message(String message) {
UNCOV
246
      this.message = message;
×
247
      return this;
×
248
    }
249

250
    public Builder completedAt(Date completedAt) {
UNCOV
251
      this.completedAt = completedAt;
×
252
      return this;
×
253
    }
254

255
    public Builder assignedAt(Date assignedAt) {
UNCOV
256
      this.assignedAt = assignedAt;
×
257
      return this;
×
258
    }
259

260
    public Builder remindedAt(Date remindedAt) {
UNCOV
261
      this.remindedAt = remindedAt;
×
262
      return this;
×
263
    }
264

265
    public Builder resolutionState(TaskAssignmentResolutionStateField resolutionState) {
UNCOV
266
      this.resolutionState = new EnumWrapper<TaskAssignmentResolutionStateField>(resolutionState);
×
UNCOV
267
      return this;
×
268
    }
269

270
    public Builder resolutionState(
271
        EnumWrapper<TaskAssignmentResolutionStateField> resolutionState) {
UNCOV
272
      this.resolutionState = resolutionState;
×
273
      return this;
×
274
    }
275

276
    public Builder assignedBy(UserMini assignedBy) {
UNCOV
277
      this.assignedBy = assignedBy;
×
278
      return this;
×
279
    }
280

281
    public TaskAssignment build() {
UNCOV
282
      return new TaskAssignment(this);
×
283
    }
284
  }
285
}
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