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

box / box-java-sdk-gen / #290

24 Jun 2025 01:20PM UTC coverage: 35.757% (+0.1%) from 35.632%
#290

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

11777 existing lines in 624 files now uncovered.

16984 of 47499 relevant lines covered (35.76%)

0.36 hits per line

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

50.0
/src/main/java/com/box/sdkgen/managers/workflows/StartWorkflowRequestBody.java
1
package com.box.sdkgen.managers.workflows;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.outcome.Outcome;
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.List;
12
import java.util.Objects;
13

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

17
  @JsonDeserialize(
18
      using = StartWorkflowRequestBodyTypeField.StartWorkflowRequestBodyTypeFieldDeserializer.class)
19
  @JsonSerialize(
20
      using = StartWorkflowRequestBodyTypeField.StartWorkflowRequestBodyTypeFieldSerializer.class)
21
  protected EnumWrapper<StartWorkflowRequestBodyTypeField> type;
22

23
  protected final StartWorkflowRequestBodyFlowField flow;
24

25
  protected final List<StartWorkflowRequestBodyFilesField> files;
26

27
  protected final StartWorkflowRequestBodyFolderField folder;
28

29
  protected List<Outcome> outcomes;
30

31
  public StartWorkflowRequestBody(
32
      @JsonProperty("flow") StartWorkflowRequestBodyFlowField flow,
33
      @JsonProperty("files") List<StartWorkflowRequestBodyFilesField> files,
34
      @JsonProperty("folder") StartWorkflowRequestBodyFolderField folder) {
35
    super();
×
36
    this.flow = flow;
×
UNCOV
37
    this.files = files;
×
UNCOV
38
    this.folder = folder;
×
UNCOV
39
  }
×
40

41
  protected StartWorkflowRequestBody(Builder builder) {
42
    super();
1✔
43
    this.type = builder.type;
1✔
44
    this.flow = builder.flow;
1✔
45
    this.files = builder.files;
1✔
46
    this.folder = builder.folder;
1✔
47
    this.outcomes = builder.outcomes;
1✔
48
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
49
  }
1✔
50

51
  public EnumWrapper<StartWorkflowRequestBodyTypeField> getType() {
52
    return type;
1✔
53
  }
54

55
  public StartWorkflowRequestBodyFlowField getFlow() {
56
    return flow;
1✔
57
  }
58

59
  public List<StartWorkflowRequestBodyFilesField> getFiles() {
60
    return files;
1✔
61
  }
62

63
  public StartWorkflowRequestBodyFolderField getFolder() {
64
    return folder;
1✔
65
  }
66

67
  public List<Outcome> getOutcomes() {
68
    return outcomes;
1✔
69
  }
70

71
  @Override
72
  public boolean equals(Object o) {
73
    if (this == o) {
×
UNCOV
74
      return true;
×
75
    }
76
    if (o == null || getClass() != o.getClass()) {
×
77
      return false;
×
78
    }
79
    StartWorkflowRequestBody casted = (StartWorkflowRequestBody) o;
×
80
    return Objects.equals(type, casted.type)
×
UNCOV
81
        && Objects.equals(flow, casted.flow)
×
UNCOV
82
        && Objects.equals(files, casted.files)
×
UNCOV
83
        && Objects.equals(folder, casted.folder)
×
UNCOV
84
        && Objects.equals(outcomes, casted.outcomes);
×
85
  }
86

87
  @Override
88
  public int hashCode() {
UNCOV
89
    return Objects.hash(type, flow, files, folder, outcomes);
×
90
  }
91

92
  @Override
93
  public String toString() {
UNCOV
94
    return "StartWorkflowRequestBody{"
×
95
        + "type='"
96
        + type
97
        + '\''
98
        + ", "
99
        + "flow='"
100
        + flow
101
        + '\''
102
        + ", "
103
        + "files='"
104
        + files
105
        + '\''
106
        + ", "
107
        + "folder='"
108
        + folder
109
        + '\''
110
        + ", "
111
        + "outcomes='"
112
        + outcomes
113
        + '\''
114
        + "}";
115
  }
116

117
  public static class Builder extends NullableFieldTracker {
118

119
    protected EnumWrapper<StartWorkflowRequestBodyTypeField> type;
120

121
    protected final StartWorkflowRequestBodyFlowField flow;
122

123
    protected final List<StartWorkflowRequestBodyFilesField> files;
124

125
    protected final StartWorkflowRequestBodyFolderField folder;
126

127
    protected List<Outcome> outcomes;
128

129
    public Builder(
130
        StartWorkflowRequestBodyFlowField flow,
131
        List<StartWorkflowRequestBodyFilesField> files,
132
        StartWorkflowRequestBodyFolderField folder) {
133
      super();
1✔
134
      this.flow = flow;
1✔
135
      this.files = files;
1✔
136
      this.folder = folder;
1✔
137
    }
1✔
138

139
    public Builder type(StartWorkflowRequestBodyTypeField type) {
140
      this.type = new EnumWrapper<StartWorkflowRequestBodyTypeField>(type);
1✔
141
      return this;
1✔
142
    }
143

144
    public Builder type(EnumWrapper<StartWorkflowRequestBodyTypeField> type) {
145
      this.type = type;
×
146
      return this;
×
147
    }
148

149
    public Builder outcomes(List<Outcome> outcomes) {
UNCOV
150
      this.outcomes = outcomes;
×
UNCOV
151
      return this;
×
152
    }
153

154
    public StartWorkflowRequestBody build() {
155
      return new StartWorkflowRequestBody(this);
1✔
156
    }
157
  }
158
}
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