• 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

22.86
/src/main/java/com/box/sdkgen/managers/uploads/UploadFileRequestBodyAttributesField.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 UploadFileRequestBodyAttributesField extends SerializableObject {
15

16
  protected final String name;
17

18
  protected final UploadFileRequestBodyAttributesParentField parent;
19

20
  @JsonProperty("content_created_at")
21
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
22
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
23
  protected Date contentCreatedAt;
24

25
  @JsonProperty("content_modified_at")
26
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
27
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
28
  protected Date contentModifiedAt;
29

30
  public UploadFileRequestBodyAttributesField(
31
      @JsonProperty("name") String name,
32
      @JsonProperty("parent") UploadFileRequestBodyAttributesParentField parent) {
33
    super();
1✔
34
    this.name = name;
1✔
35
    this.parent = parent;
1✔
36
  }
1✔
37

38
  protected UploadFileRequestBodyAttributesField(Builder builder) {
39
    super();
×
40
    this.name = builder.name;
×
41
    this.parent = builder.parent;
×
UNCOV
42
    this.contentCreatedAt = builder.contentCreatedAt;
×
UNCOV
43
    this.contentModifiedAt = builder.contentModifiedAt;
×
UNCOV
44
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
45
  }
×
46

47
  public String getName() {
48
    return name;
1✔
49
  }
50

51
  public UploadFileRequestBodyAttributesParentField getParent() {
52
    return parent;
1✔
53
  }
54

55
  public Date getContentCreatedAt() {
56
    return contentCreatedAt;
1✔
57
  }
58

59
  public Date getContentModifiedAt() {
60
    return contentModifiedAt;
1✔
61
  }
62

63
  @Override
64
  public boolean equals(Object o) {
65
    if (this == o) {
×
UNCOV
66
      return true;
×
67
    }
68
    if (o == null || getClass() != o.getClass()) {
×
69
      return false;
×
70
    }
71
    UploadFileRequestBodyAttributesField casted = (UploadFileRequestBodyAttributesField) o;
×
UNCOV
72
    return Objects.equals(name, casted.name)
×
UNCOV
73
        && Objects.equals(parent, casted.parent)
×
UNCOV
74
        && Objects.equals(contentCreatedAt, casted.contentCreatedAt)
×
UNCOV
75
        && Objects.equals(contentModifiedAt, casted.contentModifiedAt);
×
76
  }
77

78
  @Override
79
  public int hashCode() {
UNCOV
80
    return Objects.hash(name, parent, contentCreatedAt, contentModifiedAt);
×
81
  }
82

83
  @Override
84
  public String toString() {
UNCOV
85
    return "UploadFileRequestBodyAttributesField{"
×
86
        + "name='"
87
        + name
88
        + '\''
89
        + ", "
90
        + "parent='"
91
        + parent
92
        + '\''
93
        + ", "
94
        + "contentCreatedAt='"
95
        + contentCreatedAt
96
        + '\''
97
        + ", "
98
        + "contentModifiedAt='"
99
        + contentModifiedAt
100
        + '\''
101
        + "}";
102
  }
103

104
  public static class Builder extends NullableFieldTracker {
105

106
    protected final String name;
107

108
    protected final UploadFileRequestBodyAttributesParentField parent;
109

110
    protected Date contentCreatedAt;
111

112
    protected Date contentModifiedAt;
113

114
    public Builder(String name, UploadFileRequestBodyAttributesParentField parent) {
UNCOV
115
      super();
×
116
      this.name = name;
×
117
      this.parent = parent;
×
UNCOV
118
    }
×
119

120
    public Builder contentCreatedAt(Date contentCreatedAt) {
121
      this.contentCreatedAt = contentCreatedAt;
×
122
      return this;
×
123
    }
124

125
    public Builder contentModifiedAt(Date contentModifiedAt) {
126
      this.contentModifiedAt = contentModifiedAt;
×
UNCOV
127
      return this;
×
128
    }
129

130
    public UploadFileRequestBodyAttributesField build() {
UNCOV
131
      return new UploadFileRequestBodyAttributesField(this);
×
132
    }
133
  }
134
}
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