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

box / box-java-sdk / #5838

16 Dec 2025 01:57PM UTC coverage: 12.903% (-0.4%) from 13.282%
#5838

Pull #1633

github

web-flow
Merge 39eadee31 into af4861f83
Pull Request #1633: feat(boxsdkgen): Treat nullable fields as Optional (box/box-codegen#906)

0 of 1897 new or added lines in 73 files covered. (0.0%)

19 existing lines in 10 files now uncovered.

8374 of 64898 relevant lines covered (12.9%)

0.13 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/metadatataxonomies/CreateMetadataTaxonomyRequestBody.java
1
package com.box.sdkgen.managers.metadatataxonomies;
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 CreateMetadataTaxonomyRequestBody extends SerializableObject {
11

12
  /**
13
   * The taxonomy key. If it is not provided in the request body, it will be generated from the
14
   * `displayName`. The `displayName` would be converted to lower case, and all spaces and
15
   * non-alphanumeric characters replaced with underscores.
16
   */
17
  protected String key;
18

19
  /** The display name of the taxonomy. */
20
  protected final String displayName;
21

22
  /** The namespace of the metadata taxonomy to create. */
23
  protected final String namespace;
24

25
  public CreateMetadataTaxonomyRequestBody(
26
      @JsonProperty("displayName") String displayName,
27
      @JsonProperty("namespace") String namespace) {
NEW
28
    super();
×
NEW
29
    this.displayName = displayName;
×
NEW
30
    this.namespace = namespace;
×
NEW
31
  }
×
32

33
  protected CreateMetadataTaxonomyRequestBody(Builder builder) {
NEW
34
    super();
×
NEW
35
    this.key = builder.key;
×
NEW
36
    this.displayName = builder.displayName;
×
NEW
37
    this.namespace = builder.namespace;
×
NEW
38
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
NEW
39
  }
×
40

41
  public String getKey() {
NEW
42
    return key;
×
43
  }
44

45
  public String getDisplayName() {
NEW
46
    return displayName;
×
47
  }
48

49
  public String getNamespace() {
NEW
50
    return namespace;
×
51
  }
52

53
  @Override
54
  public boolean equals(Object o) {
NEW
55
    if (this == o) {
×
NEW
56
      return true;
×
57
    }
NEW
58
    if (o == null || getClass() != o.getClass()) {
×
NEW
59
      return false;
×
60
    }
NEW
61
    CreateMetadataTaxonomyRequestBody casted = (CreateMetadataTaxonomyRequestBody) o;
×
NEW
62
    return Objects.equals(key, casted.key)
×
NEW
63
        && Objects.equals(displayName, casted.displayName)
×
NEW
64
        && Objects.equals(namespace, casted.namespace);
×
65
  }
66

67
  @Override
68
  public int hashCode() {
NEW
69
    return Objects.hash(key, displayName, namespace);
×
70
  }
71

72
  @Override
73
  public String toString() {
NEW
74
    return "CreateMetadataTaxonomyRequestBody{"
×
75
        + "key='"
76
        + key
77
        + '\''
78
        + ", "
79
        + "displayName='"
80
        + displayName
81
        + '\''
82
        + ", "
83
        + "namespace='"
84
        + namespace
85
        + '\''
86
        + "}";
87
  }
88

89
  public static class Builder extends NullableFieldTracker {
90

91
    protected String key;
92

93
    protected final String displayName;
94

95
    protected final String namespace;
96

97
    public Builder(String displayName, String namespace) {
NEW
98
      super();
×
NEW
99
      this.displayName = displayName;
×
NEW
100
      this.namespace = namespace;
×
NEW
101
    }
×
102

103
    public Builder key(String key) {
NEW
104
      this.key = key;
×
NEW
105
      return this;
×
106
    }
107

108
    public CreateMetadataTaxonomyRequestBody build() {
NEW
109
      return new CreateMetadataTaxonomyRequestBody(this);
×
110
    }
111
  }
112
}
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