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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 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
  /** The type of the parameters object. */
18
  @JsonDeserialize(
19
      using = StartWorkflowRequestBodyTypeField.StartWorkflowRequestBodyTypeFieldDeserializer.class)
20
  @JsonSerialize(
21
      using = StartWorkflowRequestBodyTypeField.StartWorkflowRequestBodyTypeFieldSerializer.class)
22
  protected EnumWrapper<StartWorkflowRequestBodyTypeField> type;
23

24
  /** The flow that will be triggered. */
25
  protected final StartWorkflowRequestBodyFlowField flow;
26

27
  /**
28
   * The array of files for which the workflow should start. All files must be in the workflow's
29
   * configured folder.
30
   */
31
  protected final List<StartWorkflowRequestBodyFilesField> files;
32

33
  /** The folder object for which the workflow is configured. */
34
  protected final StartWorkflowRequestBodyFolderField folder;
35

36
  /** A configurable outcome the workflow should complete. */
37
  protected List<Outcome> outcomes;
38

39
  public StartWorkflowRequestBody(
40
      @JsonProperty("flow") StartWorkflowRequestBodyFlowField flow,
41
      @JsonProperty("files") List<StartWorkflowRequestBodyFilesField> files,
42
      @JsonProperty("folder") StartWorkflowRequestBodyFolderField folder) {
43
    super();
×
44
    this.flow = flow;
×
45
    this.files = files;
×
46
    this.folder = folder;
×
47
  }
×
48

49
  protected StartWorkflowRequestBody(Builder builder) {
50
    super();
1✔
51
    this.type = builder.type;
1✔
52
    this.flow = builder.flow;
1✔
53
    this.files = builder.files;
1✔
54
    this.folder = builder.folder;
1✔
55
    this.outcomes = builder.outcomes;
1✔
56
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
57
  }
1✔
58

59
  public EnumWrapper<StartWorkflowRequestBodyTypeField> getType() {
60
    return type;
1✔
61
  }
62

63
  public StartWorkflowRequestBodyFlowField getFlow() {
64
    return flow;
1✔
65
  }
66

67
  public List<StartWorkflowRequestBodyFilesField> getFiles() {
68
    return files;
1✔
69
  }
70

71
  public StartWorkflowRequestBodyFolderField getFolder() {
72
    return folder;
1✔
73
  }
74

75
  public List<Outcome> getOutcomes() {
76
    return outcomes;
1✔
77
  }
78

79
  @Override
80
  public boolean equals(Object o) {
81
    if (this == o) {
×
82
      return true;
×
83
    }
84
    if (o == null || getClass() != o.getClass()) {
×
85
      return false;
×
86
    }
87
    StartWorkflowRequestBody casted = (StartWorkflowRequestBody) o;
×
88
    return Objects.equals(type, casted.type)
×
89
        && Objects.equals(flow, casted.flow)
×
90
        && Objects.equals(files, casted.files)
×
91
        && Objects.equals(folder, casted.folder)
×
92
        && Objects.equals(outcomes, casted.outcomes);
×
93
  }
94

95
  @Override
96
  public int hashCode() {
97
    return Objects.hash(type, flow, files, folder, outcomes);
×
98
  }
99

100
  @Override
101
  public String toString() {
102
    return "StartWorkflowRequestBody{"
×
103
        + "type='"
104
        + type
105
        + '\''
106
        + ", "
107
        + "flow='"
108
        + flow
109
        + '\''
110
        + ", "
111
        + "files='"
112
        + files
113
        + '\''
114
        + ", "
115
        + "folder='"
116
        + folder
117
        + '\''
118
        + ", "
119
        + "outcomes='"
120
        + outcomes
121
        + '\''
122
        + "}";
123
  }
124

125
  public static class Builder extends NullableFieldTracker {
126

127
    protected EnumWrapper<StartWorkflowRequestBodyTypeField> type;
128

129
    protected final StartWorkflowRequestBodyFlowField flow;
130

131
    protected final List<StartWorkflowRequestBodyFilesField> files;
132

133
    protected final StartWorkflowRequestBodyFolderField folder;
134

135
    protected List<Outcome> outcomes;
136

137
    public Builder(
138
        StartWorkflowRequestBodyFlowField flow,
139
        List<StartWorkflowRequestBodyFilesField> files,
140
        StartWorkflowRequestBodyFolderField folder) {
141
      super();
1✔
142
      this.flow = flow;
1✔
143
      this.files = files;
1✔
144
      this.folder = folder;
1✔
145
    }
1✔
146

147
    public Builder type(StartWorkflowRequestBodyTypeField type) {
148
      this.type = new EnumWrapper<StartWorkflowRequestBodyTypeField>(type);
1✔
149
      return this;
1✔
150
    }
151

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

157
    public Builder outcomes(List<Outcome> outcomes) {
158
      this.outcomes = outcomes;
×
159
      return this;
×
160
    }
161

162
    public StartWorkflowRequestBody build() {
163
      return new StartWorkflowRequestBody(this);
1✔
164
    }
165
  }
166
}
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