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

box / box-java-sdk-gen / #296

25 Jun 2025 10:12AM UTC coverage: 35.677% (-0.05%) from 35.723%
#296

Pull #348

github

web-flow
Merge d48b178e0 into d8480ee6c
Pull Request #348: chore: Update .codegen.json with commit hash of codegen and openapi spec

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

11820 existing lines in 631 files now uncovered.

16946 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

20.0
/src/main/java/com/box/sdkgen/managers/uploads/UploadFileVersionRequestBodyAttributesField.java
1
package com.box.sdkgen.managers.uploads;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.internal.utils.DateTimeUtils;
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.Date;
11
import java.util.Objects;
12

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

16
  protected final String name;
17

18
  @JsonProperty("content_modified_at")
19
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
20
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
21
  protected Date contentModifiedAt;
22

23
  public UploadFileVersionRequestBodyAttributesField(@JsonProperty("name") String name) {
24
    super();
1✔
25
    this.name = name;
1✔
26
  }
1✔
27

28
  protected UploadFileVersionRequestBodyAttributesField(Builder builder) {
29
    super();
×
UNCOV
30
    this.name = builder.name;
×
UNCOV
31
    this.contentModifiedAt = builder.contentModifiedAt;
×
UNCOV
32
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
33
  }
×
34

35
  public String getName() {
36
    return name;
1✔
37
  }
38

39
  public Date getContentModifiedAt() {
40
    return contentModifiedAt;
1✔
41
  }
42

43
  @Override
44
  public boolean equals(Object o) {
45
    if (this == o) {
×
UNCOV
46
      return true;
×
47
    }
UNCOV
48
    if (o == null || getClass() != o.getClass()) {
×
49
      return false;
×
50
    }
UNCOV
51
    UploadFileVersionRequestBodyAttributesField casted =
×
52
        (UploadFileVersionRequestBodyAttributesField) o;
UNCOV
53
    return Objects.equals(name, casted.name)
×
UNCOV
54
        && Objects.equals(contentModifiedAt, casted.contentModifiedAt);
×
55
  }
56

57
  @Override
58
  public int hashCode() {
UNCOV
59
    return Objects.hash(name, contentModifiedAt);
×
60
  }
61

62
  @Override
63
  public String toString() {
UNCOV
64
    return "UploadFileVersionRequestBodyAttributesField{"
×
65
        + "name='"
66
        + name
67
        + '\''
68
        + ", "
69
        + "contentModifiedAt='"
70
        + contentModifiedAt
71
        + '\''
72
        + "}";
73
  }
74

75
  public static class Builder extends NullableFieldTracker {
76

77
    protected final String name;
78

79
    protected Date contentModifiedAt;
80

81
    public Builder(String name) {
82
      super();
×
83
      this.name = name;
×
UNCOV
84
    }
×
85

86
    public Builder contentModifiedAt(Date contentModifiedAt) {
87
      this.contentModifiedAt = contentModifiedAt;
×
UNCOV
88
      return this;
×
89
    }
90

91
    public UploadFileVersionRequestBodyAttributesField build() {
UNCOV
92
      return new UploadFileVersionRequestBodyAttributesField(this);
×
93
    }
94
  }
95
}
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