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

box / box-java-sdk-gen / #301

26 Jun 2025 03:33PM UTC coverage: 35.681% (-0.04%) from 35.723%
#301

push

github

web-flow
feat: Add webhook validation(box/box-codegen#745) (#347)

Co-authored-by: box-sdk-build <box-sdk-build@box.com>

68 of 82 new or added lines in 2 files covered. (82.93%)

11818 existing lines in 631 files now uncovered.

16948 of 47499 relevant lines covered (35.68%)

0.36 hits per line

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

5.36
/src/main/java/com/box/sdkgen/schemas/classification/Classification.java
1
package com.box.sdkgen.schemas.classification;
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 Classification extends SerializableObject {
14

15
  @JsonProperty("Box__Security__Classification__Key")
16
  protected String boxSecurityClassificationKey;
17

18
  @JsonProperty("$parent")
19
  protected String parent;
20

21
  @JsonDeserialize(
22
      using = ClassificationTemplateField.ClassificationTemplateFieldDeserializer.class)
23
  @JsonSerialize(using = ClassificationTemplateField.ClassificationTemplateFieldSerializer.class)
24
  @JsonProperty("$template")
25
  protected EnumWrapper<ClassificationTemplateField> template;
26

27
  @JsonProperty("$scope")
28
  protected String scope;
29

30
  @JsonProperty("$version")
31
  protected Long version;
32

33
  @JsonProperty("$type")
34
  protected String type;
35

36
  @JsonProperty("$typeVersion")
37
  protected Double typeVersion;
38

39
  @JsonProperty("$canEdit")
40
  protected Boolean canEdit;
41

42
  public Classification() {
43
    super();
1✔
44
  }
1✔
45

46
  protected Classification(Builder builder) {
47
    super();
×
48
    this.boxSecurityClassificationKey = builder.boxSecurityClassificationKey;
×
49
    this.parent = builder.parent;
×
50
    this.template = builder.template;
×
51
    this.scope = builder.scope;
×
52
    this.version = builder.version;
×
53
    this.type = builder.type;
×
UNCOV
54
    this.typeVersion = builder.typeVersion;
×
UNCOV
55
    this.canEdit = builder.canEdit;
×
UNCOV
56
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
57
  }
×
58

59
  public String getBoxSecurityClassificationKey() {
60
    return boxSecurityClassificationKey;
1✔
61
  }
62

63
  public String getParent() {
64
    return parent;
×
65
  }
66

67
  public EnumWrapper<ClassificationTemplateField> getTemplate() {
68
    return template;
×
69
  }
70

71
  public String getScope() {
72
    return scope;
×
73
  }
74

75
  public Long getVersion() {
76
    return version;
×
77
  }
78

79
  public String getType() {
80
    return type;
×
81
  }
82

83
  public Double getTypeVersion() {
84
    return typeVersion;
×
85
  }
86

87
  public Boolean getCanEdit() {
UNCOV
88
    return canEdit;
×
89
  }
90

91
  @Override
92
  public boolean equals(Object o) {
93
    if (this == o) {
×
UNCOV
94
      return true;
×
95
    }
96
    if (o == null || getClass() != o.getClass()) {
×
97
      return false;
×
98
    }
99
    Classification casted = (Classification) o;
×
100
    return Objects.equals(boxSecurityClassificationKey, casted.boxSecurityClassificationKey)
×
101
        && Objects.equals(parent, casted.parent)
×
102
        && Objects.equals(template, casted.template)
×
103
        && Objects.equals(scope, casted.scope)
×
UNCOV
104
        && Objects.equals(version, casted.version)
×
UNCOV
105
        && Objects.equals(type, casted.type)
×
UNCOV
106
        && Objects.equals(typeVersion, casted.typeVersion)
×
UNCOV
107
        && Objects.equals(canEdit, casted.canEdit);
×
108
  }
109

110
  @Override
111
  public int hashCode() {
UNCOV
112
    return Objects.hash(
×
113
        boxSecurityClassificationKey, parent, template, scope, version, type, typeVersion, canEdit);
114
  }
115

116
  @Override
117
  public String toString() {
UNCOV
118
    return "Classification{"
×
119
        + "boxSecurityClassificationKey='"
120
        + boxSecurityClassificationKey
121
        + '\''
122
        + ", "
123
        + "parent='"
124
        + parent
125
        + '\''
126
        + ", "
127
        + "template='"
128
        + template
129
        + '\''
130
        + ", "
131
        + "scope='"
132
        + scope
133
        + '\''
134
        + ", "
135
        + "version='"
136
        + version
137
        + '\''
138
        + ", "
139
        + "type='"
140
        + type
141
        + '\''
142
        + ", "
143
        + "typeVersion='"
144
        + typeVersion
145
        + '\''
146
        + ", "
147
        + "canEdit='"
148
        + canEdit
149
        + '\''
150
        + "}";
151
  }
152

UNCOV
153
  public static class Builder extends NullableFieldTracker {
×
154

155
    protected String boxSecurityClassificationKey;
156

157
    protected String parent;
158

159
    protected EnumWrapper<ClassificationTemplateField> template;
160

161
    protected String scope;
162

163
    protected Long version;
164

165
    protected String type;
166

167
    protected Double typeVersion;
168

169
    protected Boolean canEdit;
170

171
    public Builder boxSecurityClassificationKey(String boxSecurityClassificationKey) {
UNCOV
172
      this.boxSecurityClassificationKey = boxSecurityClassificationKey;
×
173
      return this;
×
174
    }
175

176
    public Builder parent(String parent) {
UNCOV
177
      this.parent = parent;
×
178
      return this;
×
179
    }
180

181
    public Builder template(ClassificationTemplateField template) {
UNCOV
182
      this.template = new EnumWrapper<ClassificationTemplateField>(template);
×
183
      return this;
×
184
    }
185

186
    public Builder template(EnumWrapper<ClassificationTemplateField> template) {
UNCOV
187
      this.template = template;
×
188
      return this;
×
189
    }
190

191
    public Builder scope(String scope) {
UNCOV
192
      this.scope = scope;
×
193
      return this;
×
194
    }
195

196
    public Builder version(Long version) {
UNCOV
197
      this.version = version;
×
198
      return this;
×
199
    }
200

201
    public Builder type(String type) {
UNCOV
202
      this.type = type;
×
203
      return this;
×
204
    }
205

206
    public Builder typeVersion(Double typeVersion) {
UNCOV
207
      this.typeVersion = typeVersion;
×
208
      return this;
×
209
    }
210

211
    public Builder canEdit(Boolean canEdit) {
UNCOV
212
      this.canEdit = canEdit;
×
213
      return this;
×
214
    }
215

216
    public Classification build() {
UNCOV
217
      return new Classification(this);
×
218
    }
219
  }
220
}
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