• 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/managers/classifications/AddClassificationRequestBodyDataField.java
1
package com.box.sdkgen.managers.classifications;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.fasterxml.jackson.annotation.JsonFilter;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import java.util.Objects;
8

9
@JsonFilter("nullablePropertyFilter")
10
public class AddClassificationRequestBodyDataField extends SerializableObject {
11

12
  /**
13
   * The label of the classification as shown in the web and mobile interfaces. This is the only
14
   * field required to add a classification.
15
   */
16
  protected final String key;
17

18
  /** A static configuration for the classification. */
19
  protected AddClassificationRequestBodyDataStaticConfigField staticConfig;
20

21
  public AddClassificationRequestBodyDataField(@JsonProperty("key") String key) {
22
    super();
×
23
    this.key = key;
×
24
  }
×
25

26
  protected AddClassificationRequestBodyDataField(Builder builder) {
27
    super();
×
28
    this.key = builder.key;
×
29
    this.staticConfig = builder.staticConfig;
×
30
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
31
  }
×
32

33
  public String getKey() {
34
    return key;
×
35
  }
36

37
  public AddClassificationRequestBodyDataStaticConfigField getStaticConfig() {
38
    return staticConfig;
×
39
  }
40

41
  @Override
42
  public boolean equals(Object o) {
43
    if (this == o) {
×
44
      return true;
×
45
    }
46
    if (o == null || getClass() != o.getClass()) {
×
47
      return false;
×
48
    }
49
    AddClassificationRequestBodyDataField casted = (AddClassificationRequestBodyDataField) o;
×
50
    return Objects.equals(key, casted.key) && Objects.equals(staticConfig, casted.staticConfig);
×
51
  }
52

53
  @Override
54
  public int hashCode() {
55
    return Objects.hash(key, staticConfig);
×
56
  }
57

58
  @Override
59
  public String toString() {
60
    return "AddClassificationRequestBodyDataField{"
×
61
        + "key='"
62
        + key
63
        + '\''
64
        + ", "
65
        + "staticConfig='"
66
        + staticConfig
67
        + '\''
68
        + "}";
69
  }
70

71
  public static class Builder extends NullableFieldTracker {
72

73
    protected final String key;
74

75
    protected AddClassificationRequestBodyDataStaticConfigField staticConfig;
76

77
    public Builder(String key) {
78
      super();
×
79
      this.key = key;
×
80
    }
×
81

82
    public Builder staticConfig(AddClassificationRequestBodyDataStaticConfigField staticConfig) {
83
      this.staticConfig = staticConfig;
×
84
      return this;
×
85
    }
86

87
    public AddClassificationRequestBodyDataField build() {
88
      return new AddClassificationRequestBodyDataField(this);
×
89
    }
90
  }
91
}
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