• 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

4.35
/src/main/java/com/box/sdkgen/schemas/groupfull/GroupFull.java
1
package com.box.sdkgen.schemas.groupfull;
2

3
import com.box.sdkgen.schemas.group.Group;
4
import com.box.sdkgen.schemas.groupbase.GroupBaseTypeField;
5
import com.box.sdkgen.schemas.groupmini.GroupMiniGroupTypeField;
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
 * Groups contain a set of users, and can be used in place of users in some operations, such as
16
 * collaborations.
17
 */
18
@JsonFilter("nullablePropertyFilter")
19
public class GroupFull extends Group {
20

21
  /**
22
   * Keeps track of which external source this group is coming from (e.g. "Active Directory",
23
   * "Google Groups", "Facebook Groups"). Setting this will also prevent Box users from editing the
24
   * group name and its members directly via the Box web application. This is desirable for one-way
25
   * syncing of groups.
26
   */
27
  protected String provenance;
28

29
  /**
30
   * An arbitrary identifier that can be used by external group sync tools to link this Box Group to
31
   * an external group. Example values of this field could be an Active Directory Object ID or a
32
   * Google Group ID. We recommend you use of this field in order to avoid issues when group names
33
   * are updated in either Box or external systems.
34
   */
35
  @JsonProperty("external_sync_identifier")
36
  protected String externalSyncIdentifier;
37

38
  /** Human readable description of the group. */
39
  protected String description;
40

41
  /**
42
   * Specifies who can invite the group to collaborate on items.
43
   *
44
   * <p>When set to `admins_only` the enterprise admin, co-admins, and the group's admin can invite
45
   * the group.
46
   *
47
   * <p>When set to `admins_and_members` all the admins listed above and group members can invite
48
   * the group.
49
   *
50
   * <p>When set to `all_managed_users` all managed users in the enterprise can invite the group.
51
   */
52
  @JsonDeserialize(
53
      using = GroupFullInvitabilityLevelField.GroupFullInvitabilityLevelFieldDeserializer.class)
54
  @JsonSerialize(
55
      using = GroupFullInvitabilityLevelField.GroupFullInvitabilityLevelFieldSerializer.class)
56
  @JsonProperty("invitability_level")
57
  protected EnumWrapper<GroupFullInvitabilityLevelField> invitabilityLevel;
58

59
  /**
60
   * Specifies who can view the members of the group (Get Memberships for Group).
61
   *
62
   * <p>* `admins_only` - the enterprise admin, co-admins, group's group admin. *
63
   * `admins_and_members` - all admins and group members. * `all_managed_users` - all managed users
64
   * in the enterprise.
65
   */
66
  @JsonDeserialize(
67
      using =
68
          GroupFullMemberViewabilityLevelField.GroupFullMemberViewabilityLevelFieldDeserializer
69
              .class)
70
  @JsonSerialize(
71
      using =
72
          GroupFullMemberViewabilityLevelField.GroupFullMemberViewabilityLevelFieldSerializer.class)
73
  @JsonProperty("member_viewability_level")
74
  protected EnumWrapper<GroupFullMemberViewabilityLevelField> memberViewabilityLevel;
75

76
  protected GroupFullPermissionsField permissions;
77

78
  public GroupFull(@JsonProperty("id") String id) {
79
    super(id);
1✔
80
  }
1✔
81

82
  protected GroupFull(Builder builder) {
83
    super(builder);
×
84
    this.provenance = builder.provenance;
×
85
    this.externalSyncIdentifier = builder.externalSyncIdentifier;
×
86
    this.description = builder.description;
×
87
    this.invitabilityLevel = builder.invitabilityLevel;
×
88
    this.memberViewabilityLevel = builder.memberViewabilityLevel;
×
89
    this.permissions = builder.permissions;
×
90
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
91
  }
×
92

93
  public String getProvenance() {
94
    return provenance;
×
95
  }
96

97
  public String getExternalSyncIdentifier() {
98
    return externalSyncIdentifier;
×
99
  }
100

101
  public String getDescription() {
102
    return description;
1✔
103
  }
104

105
  public EnumWrapper<GroupFullInvitabilityLevelField> getInvitabilityLevel() {
106
    return invitabilityLevel;
×
107
  }
108

109
  public EnumWrapper<GroupFullMemberViewabilityLevelField> getMemberViewabilityLevel() {
110
    return memberViewabilityLevel;
×
111
  }
112

113
  public GroupFullPermissionsField getPermissions() {
114
    return permissions;
×
115
  }
116

117
  @Override
118
  public boolean equals(Object o) {
119
    if (this == o) {
×
120
      return true;
×
121
    }
122
    if (o == null || getClass() != o.getClass()) {
×
123
      return false;
×
124
    }
125
    GroupFull casted = (GroupFull) o;
×
126
    return Objects.equals(id, casted.id)
×
127
        && Objects.equals(type, casted.type)
×
128
        && Objects.equals(name, casted.name)
×
129
        && Objects.equals(groupType, casted.groupType)
×
130
        && Objects.equals(createdAt, casted.createdAt)
×
131
        && Objects.equals(modifiedAt, casted.modifiedAt)
×
132
        && Objects.equals(provenance, casted.provenance)
×
133
        && Objects.equals(externalSyncIdentifier, casted.externalSyncIdentifier)
×
134
        && Objects.equals(description, casted.description)
×
135
        && Objects.equals(invitabilityLevel, casted.invitabilityLevel)
×
136
        && Objects.equals(memberViewabilityLevel, casted.memberViewabilityLevel)
×
137
        && Objects.equals(permissions, casted.permissions);
×
138
  }
139

140
  @Override
141
  public int hashCode() {
142
    return Objects.hash(
×
143
        id,
144
        type,
145
        name,
146
        groupType,
147
        createdAt,
148
        modifiedAt,
149
        provenance,
150
        externalSyncIdentifier,
151
        description,
152
        invitabilityLevel,
153
        memberViewabilityLevel,
154
        permissions);
155
  }
156

157
  @Override
158
  public String toString() {
159
    return "GroupFull{"
×
160
        + "id='"
161
        + id
162
        + '\''
163
        + ", "
164
        + "type='"
165
        + type
166
        + '\''
167
        + ", "
168
        + "name='"
169
        + name
170
        + '\''
171
        + ", "
172
        + "groupType='"
173
        + groupType
174
        + '\''
175
        + ", "
176
        + "createdAt='"
177
        + createdAt
178
        + '\''
179
        + ", "
180
        + "modifiedAt='"
181
        + modifiedAt
182
        + '\''
183
        + ", "
184
        + "provenance='"
185
        + provenance
186
        + '\''
187
        + ", "
188
        + "externalSyncIdentifier='"
189
        + externalSyncIdentifier
190
        + '\''
191
        + ", "
192
        + "description='"
193
        + description
194
        + '\''
195
        + ", "
196
        + "invitabilityLevel='"
197
        + invitabilityLevel
198
        + '\''
199
        + ", "
200
        + "memberViewabilityLevel='"
201
        + memberViewabilityLevel
202
        + '\''
203
        + ", "
204
        + "permissions='"
205
        + permissions
206
        + '\''
207
        + "}";
208
  }
209

210
  public static class Builder extends Group.Builder {
211

212
    protected String provenance;
213

214
    protected String externalSyncIdentifier;
215

216
    protected String description;
217

218
    protected EnumWrapper<GroupFullInvitabilityLevelField> invitabilityLevel;
219

220
    protected EnumWrapper<GroupFullMemberViewabilityLevelField> memberViewabilityLevel;
221

222
    protected GroupFullPermissionsField permissions;
223

224
    public Builder(String id) {
225
      super(id);
×
226
    }
×
227

228
    public Builder provenance(String provenance) {
229
      this.provenance = provenance;
×
230
      return this;
×
231
    }
232

233
    public Builder externalSyncIdentifier(String externalSyncIdentifier) {
234
      this.externalSyncIdentifier = externalSyncIdentifier;
×
235
      return this;
×
236
    }
237

238
    public Builder description(String description) {
239
      this.description = description;
×
240
      return this;
×
241
    }
242

243
    public Builder invitabilityLevel(GroupFullInvitabilityLevelField invitabilityLevel) {
244
      this.invitabilityLevel = new EnumWrapper<GroupFullInvitabilityLevelField>(invitabilityLevel);
×
245
      return this;
×
246
    }
247

248
    public Builder invitabilityLevel(
249
        EnumWrapper<GroupFullInvitabilityLevelField> invitabilityLevel) {
250
      this.invitabilityLevel = invitabilityLevel;
×
251
      return this;
×
252
    }
253

254
    public Builder memberViewabilityLevel(
255
        GroupFullMemberViewabilityLevelField memberViewabilityLevel) {
256
      this.memberViewabilityLevel =
×
257
          new EnumWrapper<GroupFullMemberViewabilityLevelField>(memberViewabilityLevel);
258
      return this;
×
259
    }
260

261
    public Builder memberViewabilityLevel(
262
        EnumWrapper<GroupFullMemberViewabilityLevelField> memberViewabilityLevel) {
263
      this.memberViewabilityLevel = memberViewabilityLevel;
×
264
      return this;
×
265
    }
266

267
    public Builder permissions(GroupFullPermissionsField permissions) {
268
      this.permissions = permissions;
×
269
      return this;
×
270
    }
271

272
    @Override
273
    public Builder type(GroupBaseTypeField type) {
274
      this.type = new EnumWrapper<GroupBaseTypeField>(type);
×
275
      return this;
×
276
    }
277

278
    @Override
279
    public Builder type(EnumWrapper<GroupBaseTypeField> type) {
280
      this.type = type;
×
281
      return this;
×
282
    }
283

284
    @Override
285
    public Builder name(String name) {
286
      this.name = name;
×
287
      return this;
×
288
    }
289

290
    @Override
291
    public Builder groupType(GroupMiniGroupTypeField groupType) {
292
      this.groupType = new EnumWrapper<GroupMiniGroupTypeField>(groupType);
×
293
      return this;
×
294
    }
295

296
    @Override
297
    public Builder groupType(EnumWrapper<GroupMiniGroupTypeField> groupType) {
298
      this.groupType = groupType;
×
299
      return this;
×
300
    }
301

302
    @Override
303
    public Builder createdAt(OffsetDateTime createdAt) {
304
      this.createdAt = createdAt;
×
305
      return this;
×
306
    }
307

308
    @Override
309
    public Builder modifiedAt(OffsetDateTime modifiedAt) {
310
      this.modifiedAt = modifiedAt;
×
311
      return this;
×
312
    }
313

314
    public GroupFull build() {
315
      return new GroupFull(this);
×
316
    }
317
  }
318
}
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