• 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

50.0
/src/main/java/com/box/sdkgen/managers/fileversions/UpdateFileVersionByIdRequestBody.java
1
package com.box.sdkgen.managers.fileversions;
2

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

10
@JsonFilter("nullablePropertyFilter")
11
public class UpdateFileVersionByIdRequestBody extends SerializableObject {
12

13
  /** Set this to `null` to clear the date and restore the file. */
14
  @JsonProperty("trashed_at")
15
  @Nullable
16
  protected String trashedAt;
17

18
  public UpdateFileVersionByIdRequestBody() {
19
    super();
×
20
  }
×
21

22
  protected UpdateFileVersionByIdRequestBody(Builder builder) {
23
    super();
1✔
24
    this.trashedAt = builder.trashedAt;
1✔
25
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
26
  }
1✔
27

28
  public String getTrashedAt() {
29
    return trashedAt;
1✔
30
  }
31

32
  @Override
33
  public boolean equals(Object o) {
34
    if (this == o) {
×
35
      return true;
×
36
    }
37
    if (o == null || getClass() != o.getClass()) {
×
38
      return false;
×
39
    }
40
    UpdateFileVersionByIdRequestBody casted = (UpdateFileVersionByIdRequestBody) o;
×
41
    return Objects.equals(trashedAt, casted.trashedAt);
×
42
  }
43

44
  @Override
45
  public int hashCode() {
46
    return Objects.hash(trashedAt);
×
47
  }
48

49
  @Override
50
  public String toString() {
51
    return "UpdateFileVersionByIdRequestBody{" + "trashedAt='" + trashedAt + '\'' + "}";
×
52
  }
53

54
  public static class Builder extends NullableFieldTracker {
1✔
55

56
    protected String trashedAt;
57

58
    public Builder trashedAt(String trashedAt) {
59
      this.trashedAt = trashedAt;
1✔
60
      this.markNullableFieldAsSet("trashed_at");
1✔
61
      return this;
1✔
62
    }
63

64
    public UpdateFileVersionByIdRequestBody build() {
65
      return new UpdateFileVersionByIdRequestBody(this);
1✔
66
    }
67
  }
68
}
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