• 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

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.time.OffsetDateTime;
12
import java.util.Objects;
13

14
/**
15
 * An entry that describes an approved domain for which users can collaborate with files and folders
16
 * in your enterprise or vice versa.
17
 */
18
@JsonFilter("nullablePropertyFilter")
19
public class CollaborationAllowlistEntry extends SerializableObject {
20

21
  /** The unique identifier for this entry. */
22
  protected String id;
23

24
  /** The value will always be `collaboration_whitelist_entry`. */
25
  @JsonDeserialize(
26
      using =
27
          CollaborationAllowlistEntryTypeField.CollaborationAllowlistEntryTypeFieldDeserializer
28
              .class)
29
  @JsonSerialize(
30
      using =
31
          CollaborationAllowlistEntryTypeField.CollaborationAllowlistEntryTypeFieldSerializer.class)
32
  protected EnumWrapper<CollaborationAllowlistEntryTypeField> type;
33

34
  /** The whitelisted domain. */
35
  protected String domain;
36

37
  /** The direction of the collaborations to allow. */
38
  @JsonDeserialize(
39
      using =
40
          CollaborationAllowlistEntryDirectionField
41
              .CollaborationAllowlistEntryDirectionFieldDeserializer.class)
42
  @JsonSerialize(
43
      using =
44
          CollaborationAllowlistEntryDirectionField
45
              .CollaborationAllowlistEntryDirectionFieldSerializer.class)
46
  protected EnumWrapper<CollaborationAllowlistEntryDirectionField> direction;
47

48
  protected CollaborationAllowlistEntryEnterpriseField enterprise;
49

50
  /** The time the entry was created at. */
51
  @JsonProperty("created_at")
52
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
53
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
54
  protected OffsetDateTime createdAt;
55

56
  public CollaborationAllowlistEntry() {
57
    super();
1✔
58
  }
1✔
59

60
  protected CollaborationAllowlistEntry(Builder builder) {
61
    super();
×
62
    this.id = builder.id;
×
63
    this.type = builder.type;
×
64
    this.domain = builder.domain;
×
65
    this.direction = builder.direction;
×
66
    this.enterprise = builder.enterprise;
×
67
    this.createdAt = builder.createdAt;
×
68
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
69
  }
×
70

71
  public String getId() {
72
    return id;
1✔
73
  }
74

75
  public EnumWrapper<CollaborationAllowlistEntryTypeField> getType() {
76
    return type;
1✔
77
  }
78

79
  public String getDomain() {
80
    return domain;
1✔
81
  }
82

83
  public EnumWrapper<CollaborationAllowlistEntryDirectionField> getDirection() {
84
    return direction;
1✔
85
  }
86

87
  public CollaborationAllowlistEntryEnterpriseField getEnterprise() {
88
    return enterprise;
×
89
  }
90

91
  public OffsetDateTime getCreatedAt() {
92
    return createdAt;
×
93
  }
94

95
  @Override
96
  public boolean equals(Object o) {
97
    if (this == o) {
×
98
      return true;
×
99
    }
100
    if (o == null || getClass() != o.getClass()) {
×
101
      return false;
×
102
    }
103
    CollaborationAllowlistEntry casted = (CollaborationAllowlistEntry) o;
×
104
    return Objects.equals(id, casted.id)
×
105
        && Objects.equals(type, casted.type)
×
106
        && Objects.equals(domain, casted.domain)
×
107
        && Objects.equals(direction, casted.direction)
×
108
        && Objects.equals(enterprise, casted.enterprise)
×
109
        && Objects.equals(createdAt, casted.createdAt);
×
110
  }
111

112
  @Override
113
  public int hashCode() {
114
    return Objects.hash(id, type, domain, direction, enterprise, createdAt);
×
115
  }
116

117
  @Override
118
  public String toString() {
119
    return "CollaborationAllowlistEntry{"
×
120
        + "id='"
121
        + id
122
        + '\''
123
        + ", "
124
        + "type='"
125
        + type
126
        + '\''
127
        + ", "
128
        + "domain='"
129
        + domain
130
        + '\''
131
        + ", "
132
        + "direction='"
133
        + direction
134
        + '\''
135
        + ", "
136
        + "enterprise='"
137
        + enterprise
138
        + '\''
139
        + ", "
140
        + "createdAt='"
141
        + createdAt
142
        + '\''
143
        + "}";
144
  }
145

146
  public static class Builder extends NullableFieldTracker {
×
147

148
    protected String id;
149

150
    protected EnumWrapper<CollaborationAllowlistEntryTypeField> type;
151

152
    protected String domain;
153

154
    protected EnumWrapper<CollaborationAllowlistEntryDirectionField> direction;
155

156
    protected CollaborationAllowlistEntryEnterpriseField enterprise;
157

158
    protected OffsetDateTime createdAt;
159

160
    public Builder id(String id) {
161
      this.id = id;
×
162
      return this;
×
163
    }
164

165
    public Builder type(CollaborationAllowlistEntryTypeField type) {
166
      this.type = new EnumWrapper<CollaborationAllowlistEntryTypeField>(type);
×
167
      return this;
×
168
    }
169

170
    public Builder type(EnumWrapper<CollaborationAllowlistEntryTypeField> type) {
171
      this.type = type;
×
172
      return this;
×
173
    }
174

175
    public Builder domain(String domain) {
176
      this.domain = domain;
×
177
      return this;
×
178
    }
179

180
    public Builder direction(CollaborationAllowlistEntryDirectionField direction) {
181
      this.direction = new EnumWrapper<CollaborationAllowlistEntryDirectionField>(direction);
×
182
      return this;
×
183
    }
184

185
    public Builder direction(EnumWrapper<CollaborationAllowlistEntryDirectionField> direction) {
186
      this.direction = direction;
×
187
      return this;
×
188
    }
189

190
    public Builder enterprise(CollaborationAllowlistEntryEnterpriseField enterprise) {
191
      this.enterprise = enterprise;
×
192
      return this;
×
193
    }
194

195
    public Builder createdAt(OffsetDateTime createdAt) {
196
      this.createdAt = createdAt;
×
197
      return this;
×
198
    }
199

200
    public CollaborationAllowlistEntry build() {
201
      return new CollaborationAllowlistEntry(this);
×
202
    }
203
  }
204
}
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