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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

16.28
/src/main/java/com/box/sdkgen/schemas/uploadsession/UploadSessionSessionEndpointsField.java
1
package com.box.sdkgen.schemas.uploadsession;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.fasterxml.jackson.annotation.JsonProperty;
5
import java.util.Objects;
6

7
public class UploadSessionSessionEndpointsField extends SerializableObject {
8

9
  @JsonProperty("upload_part")
10
  protected String uploadPart;
11

12
  protected String commit;
13

14
  protected String abort;
15

16
  @JsonProperty("list_parts")
17
  protected String listParts;
18

19
  protected String status;
20

21
  @JsonProperty("log_event")
22
  protected String logEvent;
23

24
  public UploadSessionSessionEndpointsField() {
25
    super();
1✔
26
  }
1✔
27

28
  protected UploadSessionSessionEndpointsField(Builder builder) {
29
    super();
×
30
    this.uploadPart = builder.uploadPart;
×
31
    this.commit = builder.commit;
×
32
    this.abort = builder.abort;
×
33
    this.listParts = builder.listParts;
×
34
    this.status = builder.status;
×
35
    this.logEvent = builder.logEvent;
×
36
  }
×
37

38
  public String getUploadPart() {
39
    return uploadPart;
1✔
40
  }
41

42
  public String getCommit() {
43
    return commit;
1✔
44
  }
45

46
  public String getAbort() {
47
    return abort;
1✔
48
  }
49

50
  public String getListParts() {
51
    return listParts;
1✔
52
  }
53

54
  public String getStatus() {
55
    return status;
1✔
56
  }
57

58
  public String getLogEvent() {
59
    return logEvent;
×
60
  }
61

62
  @Override
63
  public boolean equals(Object o) {
64
    if (this == o) {
×
65
      return true;
×
66
    }
67
    if (o == null || getClass() != o.getClass()) {
×
68
      return false;
×
69
    }
70
    UploadSessionSessionEndpointsField casted = (UploadSessionSessionEndpointsField) o;
×
71
    return Objects.equals(uploadPart, casted.uploadPart)
×
72
        && Objects.equals(commit, casted.commit)
×
73
        && Objects.equals(abort, casted.abort)
×
74
        && Objects.equals(listParts, casted.listParts)
×
75
        && Objects.equals(status, casted.status)
×
76
        && Objects.equals(logEvent, casted.logEvent);
×
77
  }
78

79
  @Override
80
  public int hashCode() {
81
    return Objects.hash(uploadPart, commit, abort, listParts, status, logEvent);
×
82
  }
83

84
  @Override
85
  public String toString() {
86
    return "UploadSessionSessionEndpointsField{"
×
87
        + "uploadPart='"
88
        + uploadPart
89
        + '\''
90
        + ", "
91
        + "commit='"
92
        + commit
93
        + '\''
94
        + ", "
95
        + "abort='"
96
        + abort
97
        + '\''
98
        + ", "
99
        + "listParts='"
100
        + listParts
101
        + '\''
102
        + ", "
103
        + "status='"
104
        + status
105
        + '\''
106
        + ", "
107
        + "logEvent='"
108
        + logEvent
109
        + '\''
110
        + "}";
111
  }
112

NEW
113
  public static class Builder {
×
114

115
    protected String uploadPart;
116

117
    protected String commit;
118

119
    protected String abort;
120

121
    protected String listParts;
122

123
    protected String status;
124

125
    protected String logEvent;
126

127
    public Builder uploadPart(String uploadPart) {
128
      this.uploadPart = uploadPart;
×
129
      return this;
×
130
    }
131

132
    public Builder commit(String commit) {
133
      this.commit = commit;
×
134
      return this;
×
135
    }
136

137
    public Builder abort(String abort) {
138
      this.abort = abort;
×
139
      return this;
×
140
    }
141

142
    public Builder listParts(String listParts) {
143
      this.listParts = listParts;
×
144
      return this;
×
145
    }
146

147
    public Builder status(String status) {
148
      this.status = status;
×
149
      return this;
×
150
    }
151

152
    public Builder logEvent(String logEvent) {
153
      this.logEvent = logEvent;
×
154
      return this;
×
155
    }
156

157
    public UploadSessionSessionEndpointsField build() {
158
      return new UploadSessionSessionEndpointsField(this);
×
159
    }
160
  }
161
}
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