• 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

0.0
/src/main/java/com/box/sdkgen/schemas/zipdownload/ZipDownloadNameConflictsField.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.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 ZipDownloadNameConflictsField extends SerializableObject {
14

15
  /** The identifier of the item. */
16
  protected String id;
17

18
  /** The type of this item. */
19
  @JsonDeserialize(
20
      using = ZipDownloadNameConflictsTypeField.ZipDownloadNameConflictsTypeFieldDeserializer.class)
21
  @JsonSerialize(
22
      using = ZipDownloadNameConflictsTypeField.ZipDownloadNameConflictsTypeFieldSerializer.class)
23
  protected EnumWrapper<ZipDownloadNameConflictsTypeField> type;
24

25
  /** Box Developer Documentation. */
26
  @JsonProperty("original_name")
27
  protected String originalName;
28

29
  /** The new name of this item as it will appear in the downloaded `zip` archive. */
30
  @JsonProperty("download_name")
31
  protected String downloadName;
32

33
  public ZipDownloadNameConflictsField() {
34
    super();
×
35
  }
×
36

37
  protected ZipDownloadNameConflictsField(Builder builder) {
38
    super();
×
39
    this.id = builder.id;
×
40
    this.type = builder.type;
×
41
    this.originalName = builder.originalName;
×
42
    this.downloadName = builder.downloadName;
×
43
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
44
  }
×
45

46
  public String getId() {
47
    return id;
×
48
  }
49

50
  public EnumWrapper<ZipDownloadNameConflictsTypeField> getType() {
51
    return type;
×
52
  }
53

54
  public String getOriginalName() {
55
    return originalName;
×
56
  }
57

58
  public String getDownloadName() {
59
    return downloadName;
×
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
    ZipDownloadNameConflictsField casted = (ZipDownloadNameConflictsField) o;
×
71
    return Objects.equals(id, casted.id)
×
72
        && Objects.equals(type, casted.type)
×
73
        && Objects.equals(originalName, casted.originalName)
×
74
        && Objects.equals(downloadName, casted.downloadName);
×
75
  }
76

77
  @Override
78
  public int hashCode() {
79
    return Objects.hash(id, type, originalName, downloadName);
×
80
  }
81

82
  @Override
83
  public String toString() {
84
    return "ZipDownloadNameConflictsField{"
×
85
        + "id='"
86
        + id
87
        + '\''
88
        + ", "
89
        + "type='"
90
        + type
91
        + '\''
92
        + ", "
93
        + "originalName='"
94
        + originalName
95
        + '\''
96
        + ", "
97
        + "downloadName='"
98
        + downloadName
99
        + '\''
100
        + "}";
101
  }
102

103
  public static class Builder extends NullableFieldTracker {
×
104

105
    protected String id;
106

107
    protected EnumWrapper<ZipDownloadNameConflictsTypeField> type;
108

109
    protected String originalName;
110

111
    protected String downloadName;
112

113
    public Builder id(String id) {
114
      this.id = id;
×
115
      return this;
×
116
    }
117

118
    public Builder type(ZipDownloadNameConflictsTypeField type) {
119
      this.type = new EnumWrapper<ZipDownloadNameConflictsTypeField>(type);
×
120
      return this;
×
121
    }
122

123
    public Builder type(EnumWrapper<ZipDownloadNameConflictsTypeField> type) {
124
      this.type = type;
×
125
      return this;
×
126
    }
127

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

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

138
    public ZipDownloadNameConflictsField build() {
139
      return new ZipDownloadNameConflictsField(this);
×
140
    }
141
  }
142
}
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