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

box / box-java-sdk-gen / #301

26 Jun 2025 03:33PM UTC coverage: 35.681% (-0.04%) from 35.723%
#301

push

github

web-flow
feat: Add webhook validation(box/box-codegen#745) (#347)

Co-authored-by: box-sdk-build <box-sdk-build@box.com>

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

11818 existing lines in 631 files now uncovered.

16948 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

17.07
/src/main/java/com/box/sdkgen/schemas/zipdownloadstatus/ZipDownloadStatus.java
1
package com.box.sdkgen.schemas.zipdownloadstatus;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
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.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class ZipDownloadStatus extends SerializableObject {
14

15
  @JsonProperty("total_file_count")
16
  protected Long totalFileCount;
17

18
  @JsonProperty("downloaded_file_count")
19
  protected Long downloadedFileCount;
20

21
  @JsonProperty("skipped_file_count")
22
  protected Long skippedFileCount;
23

24
  @JsonProperty("skipped_folder_count")
25
  protected Long skippedFolderCount;
26

27
  @JsonDeserialize(
28
      using = ZipDownloadStatusStateField.ZipDownloadStatusStateFieldDeserializer.class)
29
  @JsonSerialize(using = ZipDownloadStatusStateField.ZipDownloadStatusStateFieldSerializer.class)
30
  protected EnumWrapper<ZipDownloadStatusStateField> state;
31

32
  public ZipDownloadStatus() {
33
    super();
1✔
34
  }
1✔
35

36
  protected ZipDownloadStatus(Builder builder) {
37
    super();
×
38
    this.totalFileCount = builder.totalFileCount;
×
39
    this.downloadedFileCount = builder.downloadedFileCount;
×
40
    this.skippedFileCount = builder.skippedFileCount;
×
UNCOV
41
    this.skippedFolderCount = builder.skippedFolderCount;
×
UNCOV
42
    this.state = builder.state;
×
UNCOV
43
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
44
  }
×
45

46
  public Long getTotalFileCount() {
47
    return totalFileCount;
1✔
48
  }
49

50
  public Long getDownloadedFileCount() {
51
    return downloadedFileCount;
1✔
52
  }
53

54
  public Long getSkippedFileCount() {
55
    return skippedFileCount;
1✔
56
  }
57

58
  public Long getSkippedFolderCount() {
59
    return skippedFolderCount;
1✔
60
  }
61

62
  public EnumWrapper<ZipDownloadStatusStateField> getState() {
63
    return state;
1✔
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
    ZipDownloadStatus casted = (ZipDownloadStatus) o;
×
75
    return Objects.equals(totalFileCount, casted.totalFileCount)
×
UNCOV
76
        && Objects.equals(downloadedFileCount, casted.downloadedFileCount)
×
UNCOV
77
        && Objects.equals(skippedFileCount, casted.skippedFileCount)
×
UNCOV
78
        && Objects.equals(skippedFolderCount, casted.skippedFolderCount)
×
UNCOV
79
        && Objects.equals(state, casted.state);
×
80
  }
81

82
  @Override
83
  public int hashCode() {
UNCOV
84
    return Objects.hash(
×
85
        totalFileCount, downloadedFileCount, skippedFileCount, skippedFolderCount, state);
86
  }
87

88
  @Override
89
  public String toString() {
UNCOV
90
    return "ZipDownloadStatus{"
×
91
        + "totalFileCount='"
92
        + totalFileCount
93
        + '\''
94
        + ", "
95
        + "downloadedFileCount='"
96
        + downloadedFileCount
97
        + '\''
98
        + ", "
99
        + "skippedFileCount='"
100
        + skippedFileCount
101
        + '\''
102
        + ", "
103
        + "skippedFolderCount='"
104
        + skippedFolderCount
105
        + '\''
106
        + ", "
107
        + "state='"
108
        + state
109
        + '\''
110
        + "}";
111
  }
112

UNCOV
113
  public static class Builder extends NullableFieldTracker {
×
114

115
    protected Long totalFileCount;
116

117
    protected Long downloadedFileCount;
118

119
    protected Long skippedFileCount;
120

121
    protected Long skippedFolderCount;
122

123
    protected EnumWrapper<ZipDownloadStatusStateField> state;
124

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

130
    public Builder downloadedFileCount(Long downloadedFileCount) {
UNCOV
131
      this.downloadedFileCount = downloadedFileCount;
×
132
      return this;
×
133
    }
134

135
    public Builder skippedFileCount(Long skippedFileCount) {
UNCOV
136
      this.skippedFileCount = skippedFileCount;
×
137
      return this;
×
138
    }
139

140
    public Builder skippedFolderCount(Long skippedFolderCount) {
UNCOV
141
      this.skippedFolderCount = skippedFolderCount;
×
142
      return this;
×
143
    }
144

145
    public Builder state(ZipDownloadStatusStateField state) {
UNCOV
146
      this.state = new EnumWrapper<ZipDownloadStatusStateField>(state);
×
147
      return this;
×
148
    }
149

150
    public Builder state(EnumWrapper<ZipDownloadStatusStateField> state) {
UNCOV
151
      this.state = state;
×
152
      return this;
×
153
    }
154

155
    public ZipDownloadStatus build() {
UNCOV
156
      return new ZipDownloadStatus(this);
×
157
    }
158
  }
159
}
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