• 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

0.0
/src/main/java/com/box/sdkgen/schemas/completionrulevariable/CompletionRuleVariable.java
1
package com.box.sdkgen.schemas.completionrulevariable;
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
 * A completion rule object. Determines if an action should be completed by all or any assignees.
14
 */
15
@JsonFilter("nullablePropertyFilter")
16
public class CompletionRuleVariable extends SerializableObject {
17

18
  /** Completion Rule object type. */
19
  @JsonDeserialize(
20
      using = CompletionRuleVariableTypeField.CompletionRuleVariableTypeFieldDeserializer.class)
21
  @JsonSerialize(
22
      using = CompletionRuleVariableTypeField.CompletionRuleVariableTypeFieldSerializer.class)
23
  protected EnumWrapper<CompletionRuleVariableTypeField> type;
24

25
  /** Variable type for the Completion Rule object. */
26
  @JsonDeserialize(
27
      using =
28
          CompletionRuleVariableVariableTypeField
29
              .CompletionRuleVariableVariableTypeFieldDeserializer.class)
30
  @JsonSerialize(
31
      using =
32
          CompletionRuleVariableVariableTypeField.CompletionRuleVariableVariableTypeFieldSerializer
33
              .class)
34
  @JsonProperty("variable_type")
35
  protected EnumWrapper<CompletionRuleVariableVariableTypeField> variableType;
36

37
  /** Variable values for a completion rule. */
38
  @JsonDeserialize(
39
      using =
40
          CompletionRuleVariableVariableValueField
41
              .CompletionRuleVariableVariableValueFieldDeserializer.class)
42
  @JsonSerialize(
43
      using =
44
          CompletionRuleVariableVariableValueField
45
              .CompletionRuleVariableVariableValueFieldSerializer.class)
46
  @JsonProperty("variable_value")
47
  protected final EnumWrapper<CompletionRuleVariableVariableValueField> variableValue;
48

49
  public CompletionRuleVariable(CompletionRuleVariableVariableValueField variableValue) {
50
    super();
×
51
    this.variableValue = new EnumWrapper<CompletionRuleVariableVariableValueField>(variableValue);
×
52
    this.type =
×
53
        new EnumWrapper<CompletionRuleVariableTypeField>(CompletionRuleVariableTypeField.VARIABLE);
54
    this.variableType =
×
55
        new EnumWrapper<CompletionRuleVariableVariableTypeField>(
56
            CompletionRuleVariableVariableTypeField.TASK_COMPLETION_RULE);
57
  }
×
58

59
  public CompletionRuleVariable(
60
      @JsonProperty("variable_value")
61
          EnumWrapper<CompletionRuleVariableVariableValueField> variableValue) {
62
    super();
×
63
    this.variableValue = variableValue;
×
64
    this.type =
×
65
        new EnumWrapper<CompletionRuleVariableTypeField>(CompletionRuleVariableTypeField.VARIABLE);
66
    this.variableType =
×
67
        new EnumWrapper<CompletionRuleVariableVariableTypeField>(
68
            CompletionRuleVariableVariableTypeField.TASK_COMPLETION_RULE);
69
  }
×
70

71
  protected CompletionRuleVariable(Builder builder) {
72
    super();
×
73
    this.type = builder.type;
×
74
    this.variableType = builder.variableType;
×
75
    this.variableValue = builder.variableValue;
×
76
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
77
  }
×
78

79
  public EnumWrapper<CompletionRuleVariableTypeField> getType() {
80
    return type;
×
81
  }
82

83
  public EnumWrapper<CompletionRuleVariableVariableTypeField> getVariableType() {
84
    return variableType;
×
85
  }
86

87
  public EnumWrapper<CompletionRuleVariableVariableValueField> getVariableValue() {
88
    return variableValue;
×
89
  }
90

91
  @Override
92
  public boolean equals(Object o) {
93
    if (this == o) {
×
94
      return true;
×
95
    }
96
    if (o == null || getClass() != o.getClass()) {
×
97
      return false;
×
98
    }
99
    CompletionRuleVariable casted = (CompletionRuleVariable) o;
×
100
    return Objects.equals(type, casted.type)
×
101
        && Objects.equals(variableType, casted.variableType)
×
102
        && Objects.equals(variableValue, casted.variableValue);
×
103
  }
104

105
  @Override
106
  public int hashCode() {
107
    return Objects.hash(type, variableType, variableValue);
×
108
  }
109

110
  @Override
111
  public String toString() {
112
    return "CompletionRuleVariable{"
×
113
        + "type='"
114
        + type
115
        + '\''
116
        + ", "
117
        + "variableType='"
118
        + variableType
119
        + '\''
120
        + ", "
121
        + "variableValue='"
122
        + variableValue
123
        + '\''
124
        + "}";
125
  }
126

127
  public static class Builder extends NullableFieldTracker {
128

129
    protected EnumWrapper<CompletionRuleVariableTypeField> type;
130

131
    protected EnumWrapper<CompletionRuleVariableVariableTypeField> variableType;
132

133
    protected final EnumWrapper<CompletionRuleVariableVariableValueField> variableValue;
134

135
    public Builder(CompletionRuleVariableVariableValueField variableValue) {
136
      super();
×
137
      this.variableValue = new EnumWrapper<CompletionRuleVariableVariableValueField>(variableValue);
×
138
      this.type =
×
139
          new EnumWrapper<CompletionRuleVariableTypeField>(
140
              CompletionRuleVariableTypeField.VARIABLE);
141
      this.variableType =
×
142
          new EnumWrapper<CompletionRuleVariableVariableTypeField>(
143
              CompletionRuleVariableVariableTypeField.TASK_COMPLETION_RULE);
144
    }
×
145

146
    public Builder(EnumWrapper<CompletionRuleVariableVariableValueField> variableValue) {
147
      super();
×
148
      this.variableValue = variableValue;
×
149
      this.type =
×
150
          new EnumWrapper<CompletionRuleVariableTypeField>(
151
              CompletionRuleVariableTypeField.VARIABLE);
152
      this.variableType =
×
153
          new EnumWrapper<CompletionRuleVariableVariableTypeField>(
154
              CompletionRuleVariableVariableTypeField.TASK_COMPLETION_RULE);
155
    }
×
156

157
    public Builder type(CompletionRuleVariableTypeField type) {
158
      this.type = new EnumWrapper<CompletionRuleVariableTypeField>(type);
×
159
      return this;
×
160
    }
161

162
    public Builder type(EnumWrapper<CompletionRuleVariableTypeField> type) {
163
      this.type = type;
×
164
      return this;
×
165
    }
166

167
    public Builder variableType(CompletionRuleVariableVariableTypeField variableType) {
168
      this.variableType = new EnumWrapper<CompletionRuleVariableVariableTypeField>(variableType);
×
169
      return this;
×
170
    }
171

172
    public Builder variableType(EnumWrapper<CompletionRuleVariableVariableTypeField> variableType) {
173
      this.variableType = variableType;
×
174
      return this;
×
175
    }
176

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