• 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

14.71
/src/main/java/com/box/sdkgen/schemas/zipdownload/ZipDownload.java
1
package com.box.sdkgen.schemas.zipdownload;
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.List;
12
import java.util.Objects;
13

14
@JsonFilter("nullablePropertyFilter")
15
public class ZipDownload extends SerializableObject {
16

17
  @JsonProperty("download_url")
18
  protected String downloadUrl;
19

20
  @JsonProperty("status_url")
21
  protected String statusUrl;
22

23
  @JsonProperty("expires_at")
24
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
25
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
26
  protected Date expiresAt;
27

28
  @JsonProperty("name_conflicts")
29
  protected List<List<ZipDownloadNameConflictsField>> nameConflicts;
30

31
  public ZipDownload() {
32
    super();
1✔
33
  }
1✔
34

35
  protected ZipDownload(Builder builder) {
36
    super();
×
37
    this.downloadUrl = builder.downloadUrl;
×
38
    this.statusUrl = builder.statusUrl;
×
UNCOV
39
    this.expiresAt = builder.expiresAt;
×
UNCOV
40
    this.nameConflicts = builder.nameConflicts;
×
UNCOV
41
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
42
  }
×
43

44
  public String getDownloadUrl() {
45
    return downloadUrl;
1✔
46
  }
47

48
  public String getStatusUrl() {
49
    return statusUrl;
1✔
50
  }
51

52
  public Date getExpiresAt() {
53
    return expiresAt;
1✔
54
  }
55

56
  public List<List<ZipDownloadNameConflictsField>> getNameConflicts() {
UNCOV
57
    return nameConflicts;
×
58
  }
59

60
  @Override
61
  public boolean equals(Object o) {
62
    if (this == o) {
×
UNCOV
63
      return true;
×
64
    }
65
    if (o == null || getClass() != o.getClass()) {
×
66
      return false;
×
67
    }
68
    ZipDownload casted = (ZipDownload) o;
×
UNCOV
69
    return Objects.equals(downloadUrl, casted.downloadUrl)
×
UNCOV
70
        && Objects.equals(statusUrl, casted.statusUrl)
×
UNCOV
71
        && Objects.equals(expiresAt, casted.expiresAt)
×
UNCOV
72
        && Objects.equals(nameConflicts, casted.nameConflicts);
×
73
  }
74

75
  @Override
76
  public int hashCode() {
UNCOV
77
    return Objects.hash(downloadUrl, statusUrl, expiresAt, nameConflicts);
×
78
  }
79

80
  @Override
81
  public String toString() {
UNCOV
82
    return "ZipDownload{"
×
83
        + "downloadUrl='"
84
        + downloadUrl
85
        + '\''
86
        + ", "
87
        + "statusUrl='"
88
        + statusUrl
89
        + '\''
90
        + ", "
91
        + "expiresAt='"
92
        + expiresAt
93
        + '\''
94
        + ", "
95
        + "nameConflicts='"
96
        + nameConflicts
97
        + '\''
98
        + "}";
99
  }
100

UNCOV
101
  public static class Builder extends NullableFieldTracker {
×
102

103
    protected String downloadUrl;
104

105
    protected String statusUrl;
106

107
    protected Date expiresAt;
108

109
    protected List<List<ZipDownloadNameConflictsField>> nameConflicts;
110

111
    public Builder downloadUrl(String downloadUrl) {
UNCOV
112
      this.downloadUrl = downloadUrl;
×
113
      return this;
×
114
    }
115

116
    public Builder statusUrl(String statusUrl) {
UNCOV
117
      this.statusUrl = statusUrl;
×
118
      return this;
×
119
    }
120

121
    public Builder expiresAt(Date expiresAt) {
UNCOV
122
      this.expiresAt = expiresAt;
×
123
      return this;
×
124
    }
125

126
    public Builder nameConflicts(List<List<ZipDownloadNameConflictsField>> nameConflicts) {
UNCOV
127
      this.nameConflicts = nameConflicts;
×
128
      return this;
×
129
    }
130

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