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

box / box-java-sdk-gen / #293

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

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

13.04
/src/main/java/com/box/sdkgen/schemas/workflow/WorkflowFlowsField.java
1
package com.box.sdkgen.schemas.workflow;
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.userbase.UserBase;
7
import com.box.sdkgen.serialization.json.EnumWrapper;
8
import com.fasterxml.jackson.annotation.JsonFilter;
9
import com.fasterxml.jackson.annotation.JsonProperty;
10
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
11
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
12
import java.util.Date;
13
import java.util.List;
14
import java.util.Objects;
15

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

19
  protected String id;
20

21
  @JsonDeserialize(using = WorkflowFlowsTypeField.WorkflowFlowsTypeFieldDeserializer.class)
22
  @JsonSerialize(using = WorkflowFlowsTypeField.WorkflowFlowsTypeFieldSerializer.class)
23
  protected EnumWrapper<WorkflowFlowsTypeField> type;
24

25
  protected WorkflowFlowsTriggerField trigger;
26

27
  protected List<WorkflowFlowsOutcomesField> outcomes;
28

29
  @JsonProperty("created_at")
30
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
31
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
32
  protected Date createdAt;
33

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

37
  public WorkflowFlowsField() {
38
    super();
1✔
39
  }
1✔
40

41
  protected WorkflowFlowsField(Builder builder) {
42
    super();
×
43
    this.id = builder.id;
×
44
    this.type = builder.type;
×
45
    this.trigger = builder.trigger;
×
46
    this.outcomes = builder.outcomes;
×
UNCOV
47
    this.createdAt = builder.createdAt;
×
UNCOV
48
    this.createdBy = builder.createdBy;
×
UNCOV
49
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
50
  }
×
51

52
  public String getId() {
53
    return id;
1✔
54
  }
55

56
  public EnumWrapper<WorkflowFlowsTypeField> getType() {
57
    return type;
1✔
58
  }
59

60
  public WorkflowFlowsTriggerField getTrigger() {
61
    return trigger;
1✔
62
  }
63

64
  public List<WorkflowFlowsOutcomesField> getOutcomes() {
65
    return outcomes;
1✔
66
  }
67

68
  public Date getCreatedAt() {
69
    return createdAt;
×
70
  }
71

72
  public UserBase getCreatedBy() {
UNCOV
73
    return createdBy;
×
74
  }
75

76
  @Override
77
  public boolean equals(Object o) {
78
    if (this == o) {
×
UNCOV
79
      return true;
×
80
    }
81
    if (o == null || getClass() != o.getClass()) {
×
82
      return false;
×
83
    }
84
    WorkflowFlowsField casted = (WorkflowFlowsField) o;
×
85
    return Objects.equals(id, casted.id)
×
86
        && Objects.equals(type, casted.type)
×
UNCOV
87
        && Objects.equals(trigger, casted.trigger)
×
UNCOV
88
        && Objects.equals(outcomes, casted.outcomes)
×
UNCOV
89
        && Objects.equals(createdAt, casted.createdAt)
×
UNCOV
90
        && Objects.equals(createdBy, casted.createdBy);
×
91
  }
92

93
  @Override
94
  public int hashCode() {
UNCOV
95
    return Objects.hash(id, type, trigger, outcomes, createdAt, createdBy);
×
96
  }
97

98
  @Override
99
  public String toString() {
UNCOV
100
    return "WorkflowFlowsField{"
×
101
        + "id='"
102
        + id
103
        + '\''
104
        + ", "
105
        + "type='"
106
        + type
107
        + '\''
108
        + ", "
109
        + "trigger='"
110
        + trigger
111
        + '\''
112
        + ", "
113
        + "outcomes='"
114
        + outcomes
115
        + '\''
116
        + ", "
117
        + "createdAt='"
118
        + createdAt
119
        + '\''
120
        + ", "
121
        + "createdBy='"
122
        + createdBy
123
        + '\''
124
        + "}";
125
  }
126

UNCOV
127
  public static class Builder extends NullableFieldTracker {
×
128

129
    protected String id;
130

131
    protected EnumWrapper<WorkflowFlowsTypeField> type;
132

133
    protected WorkflowFlowsTriggerField trigger;
134

135
    protected List<WorkflowFlowsOutcomesField> outcomes;
136

137
    protected Date createdAt;
138

139
    protected UserBase createdBy;
140

141
    public Builder id(String id) {
UNCOV
142
      this.id = id;
×
143
      return this;
×
144
    }
145

146
    public Builder type(WorkflowFlowsTypeField type) {
UNCOV
147
      this.type = new EnumWrapper<WorkflowFlowsTypeField>(type);
×
148
      return this;
×
149
    }
150

151
    public Builder type(EnumWrapper<WorkflowFlowsTypeField> type) {
UNCOV
152
      this.type = type;
×
153
      return this;
×
154
    }
155

156
    public Builder trigger(WorkflowFlowsTriggerField trigger) {
UNCOV
157
      this.trigger = trigger;
×
158
      return this;
×
159
    }
160

161
    public Builder outcomes(List<WorkflowFlowsOutcomesField> outcomes) {
UNCOV
162
      this.outcomes = outcomes;
×
163
      return this;
×
164
    }
165

166
    public Builder createdAt(Date createdAt) {
UNCOV
167
      this.createdAt = createdAt;
×
168
      return this;
×
169
    }
170

171
    public Builder createdBy(UserBase createdBy) {
UNCOV
172
      this.createdBy = createdBy;
×
173
      return this;
×
174
    }
175

176
    public WorkflowFlowsField build() {
UNCOV
177
      return new WorkflowFlowsField(this);
×
178
    }
179
  }
180
}
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