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

box / box-java-sdk-gen / #295

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#295

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

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

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 hits per line

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

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

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

9
@JsonFilter("nullablePropertyFilter")
10
public class UploadSessionSessionEndpointsField extends SerializableObject {
11

12
  @JsonProperty("upload_part")
13
  protected String uploadPart;
14

15
  protected String commit;
16

17
  protected String abort;
18

19
  @JsonProperty("list_parts")
20
  protected String listParts;
21

22
  protected String status;
23

24
  @JsonProperty("log_event")
25
  protected String logEvent;
26

27
  public UploadSessionSessionEndpointsField() {
28
    super();
1✔
29
  }
1✔
30

31
  protected UploadSessionSessionEndpointsField(Builder builder) {
32
    super();
×
33
    this.uploadPart = builder.uploadPart;
×
34
    this.commit = builder.commit;
×
35
    this.abort = builder.abort;
×
36
    this.listParts = builder.listParts;
×
UNCOV
37
    this.status = builder.status;
×
UNCOV
38
    this.logEvent = builder.logEvent;
×
UNCOV
39
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
40
  }
×
41

42
  public String getUploadPart() {
43
    return uploadPart;
1✔
44
  }
45

46
  public String getCommit() {
47
    return commit;
1✔
48
  }
49

50
  public String getAbort() {
51
    return abort;
1✔
52
  }
53

54
  public String getListParts() {
55
    return listParts;
1✔
56
  }
57

58
  public String getStatus() {
59
    return status;
1✔
60
  }
61

62
  public String getLogEvent() {
UNCOV
63
    return logEvent;
×
64
  }
65

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

83
  @Override
84
  public int hashCode() {
UNCOV
85
    return Objects.hash(uploadPart, commit, abort, listParts, status, logEvent);
×
86
  }
87

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

UNCOV
117
  public static class Builder extends NullableFieldTracker {
×
118

119
    protected String uploadPart;
120

121
    protected String commit;
122

123
    protected String abort;
124

125
    protected String listParts;
126

127
    protected String status;
128

129
    protected String logEvent;
130

131
    public Builder uploadPart(String uploadPart) {
UNCOV
132
      this.uploadPart = uploadPart;
×
133
      return this;
×
134
    }
135

136
    public Builder commit(String commit) {
UNCOV
137
      this.commit = commit;
×
138
      return this;
×
139
    }
140

141
    public Builder abort(String abort) {
UNCOV
142
      this.abort = abort;
×
143
      return this;
×
144
    }
145

146
    public Builder listParts(String listParts) {
UNCOV
147
      this.listParts = listParts;
×
148
      return this;
×
149
    }
150

151
    public Builder status(String status) {
UNCOV
152
      this.status = status;
×
153
      return this;
×
154
    }
155

156
    public Builder logEvent(String logEvent) {
UNCOV
157
      this.logEvent = logEvent;
×
158
      return this;
×
159
    }
160

161
    public UploadSessionSessionEndpointsField build() {
UNCOV
162
      return new UploadSessionSessionEndpointsField(this);
×
163
    }
164
  }
165
}
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