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

box / box-java-sdk-gen / #293

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

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

12.5
/src/main/java/com/box/sdkgen/schemas/collaborationallowlistentry/CollaborationAllowlistEntry.java
1
package com.box.sdkgen.schemas.collaborationallowlistentry;
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.box.sdkgen.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
10
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
11
import java.util.Date;
12
import java.util.Objects;
13

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

17
  protected String id;
18

19
  @JsonDeserialize(
20
      using =
21
          CollaborationAllowlistEntryTypeField.CollaborationAllowlistEntryTypeFieldDeserializer
22
              .class)
23
  @JsonSerialize(
24
      using =
25
          CollaborationAllowlistEntryTypeField.CollaborationAllowlistEntryTypeFieldSerializer.class)
26
  protected EnumWrapper<CollaborationAllowlistEntryTypeField> type;
27

28
  protected String domain;
29

30
  @JsonDeserialize(
31
      using =
32
          CollaborationAllowlistEntryDirectionField
33
              .CollaborationAllowlistEntryDirectionFieldDeserializer.class)
34
  @JsonSerialize(
35
      using =
36
          CollaborationAllowlistEntryDirectionField
37
              .CollaborationAllowlistEntryDirectionFieldSerializer.class)
38
  protected EnumWrapper<CollaborationAllowlistEntryDirectionField> direction;
39

40
  protected CollaborationAllowlistEntryEnterpriseField enterprise;
41

42
  @JsonProperty("created_at")
43
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
44
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
45
  protected Date createdAt;
46

47
  public CollaborationAllowlistEntry() {
48
    super();
1✔
49
  }
1✔
50

51
  protected CollaborationAllowlistEntry(Builder builder) {
52
    super();
×
53
    this.id = builder.id;
×
54
    this.type = builder.type;
×
55
    this.domain = builder.domain;
×
56
    this.direction = builder.direction;
×
UNCOV
57
    this.enterprise = builder.enterprise;
×
UNCOV
58
    this.createdAt = builder.createdAt;
×
UNCOV
59
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
60
  }
×
61

62
  public String getId() {
63
    return id;
1✔
64
  }
65

66
  public EnumWrapper<CollaborationAllowlistEntryTypeField> getType() {
67
    return type;
1✔
68
  }
69

70
  public String getDomain() {
71
    return domain;
1✔
72
  }
73

74
  public EnumWrapper<CollaborationAllowlistEntryDirectionField> getDirection() {
75
    return direction;
1✔
76
  }
77

78
  public CollaborationAllowlistEntryEnterpriseField getEnterprise() {
79
    return enterprise;
×
80
  }
81

82
  public Date getCreatedAt() {
UNCOV
83
    return createdAt;
×
84
  }
85

86
  @Override
87
  public boolean equals(Object o) {
88
    if (this == o) {
×
UNCOV
89
      return true;
×
90
    }
91
    if (o == null || getClass() != o.getClass()) {
×
92
      return false;
×
93
    }
94
    CollaborationAllowlistEntry casted = (CollaborationAllowlistEntry) o;
×
95
    return Objects.equals(id, casted.id)
×
96
        && Objects.equals(type, casted.type)
×
UNCOV
97
        && Objects.equals(domain, casted.domain)
×
UNCOV
98
        && Objects.equals(direction, casted.direction)
×
UNCOV
99
        && Objects.equals(enterprise, casted.enterprise)
×
UNCOV
100
        && Objects.equals(createdAt, casted.createdAt);
×
101
  }
102

103
  @Override
104
  public int hashCode() {
UNCOV
105
    return Objects.hash(id, type, domain, direction, enterprise, createdAt);
×
106
  }
107

108
  @Override
109
  public String toString() {
UNCOV
110
    return "CollaborationAllowlistEntry{"
×
111
        + "id='"
112
        + id
113
        + '\''
114
        + ", "
115
        + "type='"
116
        + type
117
        + '\''
118
        + ", "
119
        + "domain='"
120
        + domain
121
        + '\''
122
        + ", "
123
        + "direction='"
124
        + direction
125
        + '\''
126
        + ", "
127
        + "enterprise='"
128
        + enterprise
129
        + '\''
130
        + ", "
131
        + "createdAt='"
132
        + createdAt
133
        + '\''
134
        + "}";
135
  }
136

UNCOV
137
  public static class Builder extends NullableFieldTracker {
×
138

139
    protected String id;
140

141
    protected EnumWrapper<CollaborationAllowlistEntryTypeField> type;
142

143
    protected String domain;
144

145
    protected EnumWrapper<CollaborationAllowlistEntryDirectionField> direction;
146

147
    protected CollaborationAllowlistEntryEnterpriseField enterprise;
148

149
    protected Date createdAt;
150

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

156
    public Builder type(CollaborationAllowlistEntryTypeField type) {
UNCOV
157
      this.type = new EnumWrapper<CollaborationAllowlistEntryTypeField>(type);
×
158
      return this;
×
159
    }
160

161
    public Builder type(EnumWrapper<CollaborationAllowlistEntryTypeField> type) {
UNCOV
162
      this.type = type;
×
163
      return this;
×
164
    }
165

166
    public Builder domain(String domain) {
UNCOV
167
      this.domain = domain;
×
168
      return this;
×
169
    }
170

171
    public Builder direction(CollaborationAllowlistEntryDirectionField direction) {
UNCOV
172
      this.direction = new EnumWrapper<CollaborationAllowlistEntryDirectionField>(direction);
×
173
      return this;
×
174
    }
175

176
    public Builder direction(EnumWrapper<CollaborationAllowlistEntryDirectionField> direction) {
UNCOV
177
      this.direction = direction;
×
178
      return this;
×
179
    }
180

181
    public Builder enterprise(CollaborationAllowlistEntryEnterpriseField enterprise) {
UNCOV
182
      this.enterprise = enterprise;
×
183
      return this;
×
184
    }
185

186
    public Builder createdAt(Date createdAt) {
UNCOV
187
      this.createdAt = createdAt;
×
188
      return this;
×
189
    }
190

191
    public CollaborationAllowlistEntry build() {
UNCOV
192
      return new CollaborationAllowlistEntry(this);
×
193
    }
194
  }
195
}
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