• 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

52.27
/src/main/java/com/box/sdkgen/managers/foldermetadata/UpdateFolderMetadataByIdRequestBody.java
1
package com.box.sdkgen.managers.foldermetadata;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.metadatainstancevalue.MetadataInstanceValue;
6
import com.box.sdkgen.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.List;
11
import java.util.Objects;
12

13
@JsonFilter("nullablePropertyFilter")
14
public class UpdateFolderMetadataByIdRequestBody extends SerializableObject {
15

16
  /**
17
   * The type of change to perform on the template. Some of these are hazardous as they will change
18
   * existing templates.
19
   */
20
  @JsonDeserialize(
21
      using =
22
          UpdateFolderMetadataByIdRequestBodyOpField
23
              .UpdateFolderMetadataByIdRequestBodyOpFieldDeserializer.class)
24
  @JsonSerialize(
25
      using =
26
          UpdateFolderMetadataByIdRequestBodyOpField
27
              .UpdateFolderMetadataByIdRequestBodyOpFieldSerializer.class)
28
  protected EnumWrapper<UpdateFolderMetadataByIdRequestBodyOpField> op;
29

30
  /**
31
   * The location in the metadata JSON object to apply the changes to, in the format of a
32
   * [JSON-Pointer](https://tools.ietf.org/html/rfc6901).
33
   *
34
   * <p>The path must always be prefixed with a `/` to represent the root of the template. The
35
   * characters `~` and `/` are reserved characters and must be escaped in the key.
36
   */
37
  protected String path;
38

39
  protected MetadataInstanceValue value;
40

41
  /**
42
   * The location in the metadata JSON object to move or copy a value from. Required for `move` or
43
   * `copy` operations and must be in the format of a
44
   * [JSON-Pointer](https://tools.ietf.org/html/rfc6901).
45
   */
46
  protected String from;
47

48
  public UpdateFolderMetadataByIdRequestBody() {
49
    super();
×
50
  }
×
51

52
  protected UpdateFolderMetadataByIdRequestBody(Builder builder) {
53
    super();
1✔
54
    this.op = builder.op;
1✔
55
    this.path = builder.path;
1✔
56
    this.value = builder.value;
1✔
57
    this.from = builder.from;
1✔
58
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
59
  }
1✔
60

61
  public EnumWrapper<UpdateFolderMetadataByIdRequestBodyOpField> getOp() {
62
    return op;
1✔
63
  }
64

65
  public String getPath() {
66
    return path;
1✔
67
  }
68

69
  public MetadataInstanceValue getValue() {
70
    return value;
1✔
71
  }
72

73
  public String getFrom() {
74
    return from;
1✔
75
  }
76

77
  @Override
78
  public boolean equals(Object o) {
79
    if (this == o) {
×
80
      return true;
×
81
    }
82
    if (o == null || getClass() != o.getClass()) {
×
83
      return false;
×
84
    }
85
    UpdateFolderMetadataByIdRequestBody casted = (UpdateFolderMetadataByIdRequestBody) o;
×
86
    return Objects.equals(op, casted.op)
×
87
        && Objects.equals(path, casted.path)
×
88
        && Objects.equals(value, casted.value)
×
89
        && Objects.equals(from, casted.from);
×
90
  }
91

92
  @Override
93
  public int hashCode() {
94
    return Objects.hash(op, path, value, from);
×
95
  }
96

97
  @Override
98
  public String toString() {
99
    return "UpdateFolderMetadataByIdRequestBody{"
×
100
        + "op='"
101
        + op
102
        + '\''
103
        + ", "
104
        + "path='"
105
        + path
106
        + '\''
107
        + ", "
108
        + "value='"
109
        + value
110
        + '\''
111
        + ", "
112
        + "from='"
113
        + from
114
        + '\''
115
        + "}";
116
  }
117

118
  public static class Builder extends NullableFieldTracker {
1✔
119

120
    protected EnumWrapper<UpdateFolderMetadataByIdRequestBodyOpField> op;
121

122
    protected String path;
123

124
    protected MetadataInstanceValue value;
125

126
    protected String from;
127

128
    public Builder op(UpdateFolderMetadataByIdRequestBodyOpField op) {
129
      this.op = new EnumWrapper<UpdateFolderMetadataByIdRequestBodyOpField>(op);
1✔
130
      return this;
1✔
131
    }
132

133
    public Builder op(EnumWrapper<UpdateFolderMetadataByIdRequestBodyOpField> op) {
134
      this.op = op;
×
135
      return this;
×
136
    }
137

138
    public Builder path(String path) {
139
      this.path = path;
1✔
140
      return this;
1✔
141
    }
142

143
    public Builder value(String value) {
144
      this.value = new MetadataInstanceValue(value);
1✔
145
      return this;
1✔
146
    }
147

148
    public Builder value(long value) {
149
      this.value = new MetadataInstanceValue(value);
1✔
150
      return this;
1✔
151
    }
152

153
    public Builder value(double value) {
154
      this.value = new MetadataInstanceValue(value);
×
155
      return this;
×
156
    }
157

158
    public Builder value(List<String> value) {
159
      this.value = new MetadataInstanceValue(value);
1✔
160
      return this;
1✔
161
    }
162

163
    public Builder value(MetadataInstanceValue value) {
164
      this.value = value;
×
165
      return this;
×
166
    }
167

168
    public Builder from(String from) {
169
      this.from = from;
×
170
      return this;
×
171
    }
172

173
    public UpdateFolderMetadataByIdRequestBody build() {
174
      return new UpdateFolderMetadataByIdRequestBody(this);
1✔
175
    }
176
  }
177
}
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