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

box / box-java-sdk-gen / #295

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

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

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
@JsonFilter("nullablePropertyFilter")
13
public class CompletionRuleVariable extends SerializableObject {
14

15
  @JsonDeserialize(
16
      using = CompletionRuleVariableTypeField.CompletionRuleVariableTypeFieldDeserializer.class)
17
  @JsonSerialize(
18
      using = CompletionRuleVariableTypeField.CompletionRuleVariableTypeFieldSerializer.class)
19
  protected EnumWrapper<CompletionRuleVariableTypeField> type;
20

21
  @JsonDeserialize(
22
      using =
23
          CompletionRuleVariableVariableTypeField
24
              .CompletionRuleVariableVariableTypeFieldDeserializer.class)
25
  @JsonSerialize(
26
      using =
27
          CompletionRuleVariableVariableTypeField.CompletionRuleVariableVariableTypeFieldSerializer
28
              .class)
29
  @JsonProperty("variable_type")
30
  protected EnumWrapper<CompletionRuleVariableVariableTypeField> variableType;
31

32
  @JsonDeserialize(
33
      using =
34
          CompletionRuleVariableVariableValueField
35
              .CompletionRuleVariableVariableValueFieldDeserializer.class)
36
  @JsonSerialize(
37
      using =
38
          CompletionRuleVariableVariableValueField
39
              .CompletionRuleVariableVariableValueFieldSerializer.class)
40
  @JsonProperty("variable_value")
41
  protected final EnumWrapper<CompletionRuleVariableVariableValueField> variableValue;
42

43
  public CompletionRuleVariable(
44
      @JsonProperty("variable_value")
45
          EnumWrapper<CompletionRuleVariableVariableValueField> variableValue) {
UNCOV
46
    super();
×
47
    this.variableValue = variableValue;
×
UNCOV
48
    this.type =
×
49
        new EnumWrapper<CompletionRuleVariableTypeField>(CompletionRuleVariableTypeField.VARIABLE);
50
    this.variableType =
×
51
        new EnumWrapper<CompletionRuleVariableVariableTypeField>(
52
            CompletionRuleVariableVariableTypeField.TASK_COMPLETION_RULE);
53
  }
×
54

55
  public CompletionRuleVariable(CompletionRuleVariableVariableValueField variableValue) {
UNCOV
56
    super();
×
57
    this.variableValue = new EnumWrapper<CompletionRuleVariableVariableValueField>(variableValue);
×
UNCOV
58
    this.type =
×
59
        new EnumWrapper<CompletionRuleVariableTypeField>(CompletionRuleVariableTypeField.VARIABLE);
60
    this.variableType =
×
61
        new EnumWrapper<CompletionRuleVariableVariableTypeField>(
62
            CompletionRuleVariableVariableTypeField.TASK_COMPLETION_RULE);
63
  }
×
64

65
  protected CompletionRuleVariable(Builder builder) {
66
    super();
×
67
    this.type = builder.type;
×
UNCOV
68
    this.variableType = builder.variableType;
×
UNCOV
69
    this.variableValue = builder.variableValue;
×
70
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
71
  }
×
72

73
  public EnumWrapper<CompletionRuleVariableTypeField> getType() {
74
    return type;
×
75
  }
76

77
  public EnumWrapper<CompletionRuleVariableVariableTypeField> getVariableType() {
78
    return variableType;
×
79
  }
80

81
  public EnumWrapper<CompletionRuleVariableVariableValueField> getVariableValue() {
UNCOV
82
    return variableValue;
×
83
  }
84

85
  @Override
86
  public boolean equals(Object o) {
87
    if (this == o) {
×
UNCOV
88
      return true;
×
89
    }
90
    if (o == null || getClass() != o.getClass()) {
×
91
      return false;
×
92
    }
UNCOV
93
    CompletionRuleVariable casted = (CompletionRuleVariable) o;
×
UNCOV
94
    return Objects.equals(type, casted.type)
×
UNCOV
95
        && Objects.equals(variableType, casted.variableType)
×
UNCOV
96
        && Objects.equals(variableValue, casted.variableValue);
×
97
  }
98

99
  @Override
100
  public int hashCode() {
UNCOV
101
    return Objects.hash(type, variableType, variableValue);
×
102
  }
103

104
  @Override
105
  public String toString() {
UNCOV
106
    return "CompletionRuleVariable{"
×
107
        + "type='"
108
        + type
109
        + '\''
110
        + ", "
111
        + "variableType='"
112
        + variableType
113
        + '\''
114
        + ", "
115
        + "variableValue='"
116
        + variableValue
117
        + '\''
118
        + "}";
119
  }
120

121
  public static class Builder extends NullableFieldTracker {
122

123
    protected EnumWrapper<CompletionRuleVariableTypeField> type;
124

125
    protected EnumWrapper<CompletionRuleVariableVariableTypeField> variableType;
126

127
    protected final EnumWrapper<CompletionRuleVariableVariableValueField> variableValue;
128

129
    public Builder(EnumWrapper<CompletionRuleVariableVariableValueField> variableValue) {
130
      super();
×
UNCOV
131
      this.variableValue = variableValue;
×
UNCOV
132
      this.type =
×
133
          new EnumWrapper<CompletionRuleVariableTypeField>(
134
              CompletionRuleVariableTypeField.VARIABLE);
135
      this.variableType =
×
136
          new EnumWrapper<CompletionRuleVariableVariableTypeField>(
137
              CompletionRuleVariableVariableTypeField.TASK_COMPLETION_RULE);
UNCOV
138
    }
×
139

140
    public Builder(CompletionRuleVariableVariableValueField variableValue) {
UNCOV
141
      super();
×
UNCOV
142
      this.variableValue = new EnumWrapper<CompletionRuleVariableVariableValueField>(variableValue);
×
143
      this.type =
×
144
          new EnumWrapper<CompletionRuleVariableTypeField>(
145
              CompletionRuleVariableTypeField.VARIABLE);
146
      this.variableType =
×
147
          new EnumWrapper<CompletionRuleVariableVariableTypeField>(
148
              CompletionRuleVariableVariableTypeField.TASK_COMPLETION_RULE);
UNCOV
149
    }
×
150

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

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

161
    public Builder variableType(CompletionRuleVariableVariableTypeField variableType) {
162
      this.variableType = new EnumWrapper<CompletionRuleVariableVariableTypeField>(variableType);
×
UNCOV
163
      return this;
×
164
    }
165

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

171
    public CompletionRuleVariable build() {
UNCOV
172
      return new CompletionRuleVariable(this);
×
173
    }
174
  }
175
}
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