• 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

12.2
/src/main/java/com/box/sdkgen/schemas/workflowmini/WorkflowMini.java
1
package com.box.sdkgen.schemas.workflowmini;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.Objects;
11

12
/**
13
 * Box Relay Workflows are objects that represent a named collection of flows.
14
 *
15
 * <p>You application must be authorized to use the `Manage Box Relay` application scope within the
16
 * developer console in order to use this resource.
17
 */
18
@JsonFilter("nullablePropertyFilter")
19
public class WorkflowMini extends SerializableObject {
20

21
  /** The unique identifier for the workflow. */
22
  protected String id;
23

24
  /** The value will always be `workflow`. */
25
  @JsonDeserialize(using = WorkflowMiniTypeField.WorkflowMiniTypeFieldDeserializer.class)
26
  @JsonSerialize(using = WorkflowMiniTypeField.WorkflowMiniTypeFieldSerializer.class)
27
  protected EnumWrapper<WorkflowMiniTypeField> type;
28

29
  /** The name of the workflow. */
30
  protected String name;
31

32
  /** The description for a workflow. */
33
  protected String description;
34

35
  /** Specifies if this workflow is enabled. */
36
  @JsonProperty("is_enabled")
37
  protected Boolean isEnabled;
38

39
  public WorkflowMini() {
40
    super();
1✔
41
  }
1✔
42

43
  protected WorkflowMini(Builder builder) {
44
    super();
×
45
    this.id = builder.id;
×
46
    this.type = builder.type;
×
47
    this.name = builder.name;
×
48
    this.description = builder.description;
×
49
    this.isEnabled = builder.isEnabled;
×
50
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
51
  }
×
52

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

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

61
  public String getName() {
62
    return name;
×
63
  }
64

65
  public String getDescription() {
66
    return description;
×
67
  }
68

69
  public Boolean getIsEnabled() {
70
    return isEnabled;
1✔
71
  }
72

73
  @Override
74
  public boolean equals(Object o) {
75
    if (this == o) {
×
76
      return true;
×
77
    }
78
    if (o == null || getClass() != o.getClass()) {
×
79
      return false;
×
80
    }
81
    WorkflowMini casted = (WorkflowMini) o;
×
82
    return Objects.equals(id, casted.id)
×
83
        && Objects.equals(type, casted.type)
×
84
        && Objects.equals(name, casted.name)
×
85
        && Objects.equals(description, casted.description)
×
86
        && Objects.equals(isEnabled, casted.isEnabled);
×
87
  }
88

89
  @Override
90
  public int hashCode() {
91
    return Objects.hash(id, type, name, description, isEnabled);
×
92
  }
93

94
  @Override
95
  public String toString() {
96
    return "WorkflowMini{"
×
97
        + "id='"
98
        + id
99
        + '\''
100
        + ", "
101
        + "type='"
102
        + type
103
        + '\''
104
        + ", "
105
        + "name='"
106
        + name
107
        + '\''
108
        + ", "
109
        + "description='"
110
        + description
111
        + '\''
112
        + ", "
113
        + "isEnabled='"
114
        + isEnabled
115
        + '\''
116
        + "}";
117
  }
118

119
  public static class Builder extends NullableFieldTracker {
×
120

121
    protected String id;
122

123
    protected EnumWrapper<WorkflowMiniTypeField> type;
124

125
    protected String name;
126

127
    protected String description;
128

129
    protected Boolean isEnabled;
130

131
    public Builder id(String id) {
132
      this.id = id;
×
133
      return this;
×
134
    }
135

136
    public Builder type(WorkflowMiniTypeField type) {
137
      this.type = new EnumWrapper<WorkflowMiniTypeField>(type);
×
138
      return this;
×
139
    }
140

141
    public Builder type(EnumWrapper<WorkflowMiniTypeField> type) {
142
      this.type = type;
×
143
      return this;
×
144
    }
145

146
    public Builder name(String name) {
147
      this.name = name;
×
148
      return this;
×
149
    }
150

151
    public Builder description(String description) {
152
      this.description = description;
×
153
      return this;
×
154
    }
155

156
    public Builder isEnabled(Boolean isEnabled) {
157
      this.isEnabled = isEnabled;
×
158
      return this;
×
159
    }
160

161
    public WorkflowMini build() {
162
      return new WorkflowMini(this);
×
163
    }
164
  }
165
}
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