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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

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

52.0
/src/main/java/com/box/sdkgen/schemas/zipdownloadrequest/ZipDownloadRequest.java
1
package com.box.sdkgen.schemas.zipdownloadrequest;
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.List;
8
import java.util.Objects;
9

10
/** A request to create a `zip` archive to download. */
11
@JsonFilter("nullablePropertyFilter")
12
public class ZipDownloadRequest extends SerializableObject {
13

14
  /** A list of items to add to the `zip` archive. These can be folders or files. */
15
  protected final List<ZipDownloadRequestItemsField> items;
16

17
  /**
18
   * The optional name of the `zip` archive. This name will be appended by the `.zip` file
19
   * extension, for example `January Financials.zip`.
20
   */
21
  @JsonProperty("download_file_name")
22
  protected String downloadFileName;
23

24
  public ZipDownloadRequest(@JsonProperty("items") List<ZipDownloadRequestItemsField> items) {
25
    super();
×
26
    this.items = items;
×
27
  }
×
28

29
  protected ZipDownloadRequest(Builder builder) {
30
    super();
1✔
31
    this.items = builder.items;
1✔
32
    this.downloadFileName = builder.downloadFileName;
1✔
33
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
34
  }
1✔
35

36
  public List<ZipDownloadRequestItemsField> getItems() {
37
    return items;
1✔
38
  }
39

40
  public String getDownloadFileName() {
41
    return downloadFileName;
1✔
42
  }
43

44
  @Override
45
  public boolean equals(Object o) {
46
    if (this == o) {
×
47
      return true;
×
48
    }
49
    if (o == null || getClass() != o.getClass()) {
×
50
      return false;
×
51
    }
52
    ZipDownloadRequest casted = (ZipDownloadRequest) o;
×
53
    return Objects.equals(items, casted.items)
×
54
        && Objects.equals(downloadFileName, casted.downloadFileName);
×
55
  }
56

57
  @Override
58
  public int hashCode() {
59
    return Objects.hash(items, downloadFileName);
×
60
  }
61

62
  @Override
63
  public String toString() {
64
    return "ZipDownloadRequest{"
×
65
        + "items='"
66
        + items
67
        + '\''
68
        + ", "
69
        + "downloadFileName='"
70
        + downloadFileName
71
        + '\''
72
        + "}";
73
  }
74

75
  public static class Builder extends NullableFieldTracker {
76

77
    protected final List<ZipDownloadRequestItemsField> items;
78

79
    protected String downloadFileName;
80

81
    public Builder(List<ZipDownloadRequestItemsField> items) {
82
      super();
1✔
83
      this.items = items;
1✔
84
    }
1✔
85

86
    public Builder downloadFileName(String downloadFileName) {
87
      this.downloadFileName = downloadFileName;
1✔
88
      return this;
1✔
89
    }
90

91
    public ZipDownloadRequest build() {
92
      return new ZipDownloadRequest(this);
1✔
93
    }
94
  }
95
}
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