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

box / box-java-sdk-gen / #296

25 Jun 2025 10:12AM UTC coverage: 35.677% (-0.05%) from 35.723%
#296

Pull #348

github

web-flow
Merge d48b178e0 into d8480ee6c
Pull Request #348: chore: Update .codegen.json with commit hash of codegen and openapi spec

68 of 82 new or added lines in 2 files covered. (82.93%)

11820 existing lines in 631 files now uncovered.

16946 of 47499 relevant lines covered (35.68%)

0.36 hits per line

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

48.98
/src/main/java/com/box/sdkgen/managers/groups/CreateGroupRequestBody.java
1
package com.box.sdkgen.managers.groups;
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 CreateGroupRequestBody extends SerializableObject {
14

15
  protected final String name;
16

17
  protected String provenance;
18

19
  @JsonProperty("external_sync_identifier")
20
  protected String externalSyncIdentifier;
21

22
  protected String description;
23

24
  @JsonDeserialize(
25
      using =
26
          CreateGroupRequestBodyInvitabilityLevelField
27
              .CreateGroupRequestBodyInvitabilityLevelFieldDeserializer.class)
28
  @JsonSerialize(
29
      using =
30
          CreateGroupRequestBodyInvitabilityLevelField
31
              .CreateGroupRequestBodyInvitabilityLevelFieldSerializer.class)
32
  @JsonProperty("invitability_level")
33
  protected EnumWrapper<CreateGroupRequestBodyInvitabilityLevelField> invitabilityLevel;
34

35
  @JsonDeserialize(
36
      using =
37
          CreateGroupRequestBodyMemberViewabilityLevelField
38
              .CreateGroupRequestBodyMemberViewabilityLevelFieldDeserializer.class)
39
  @JsonSerialize(
40
      using =
41
          CreateGroupRequestBodyMemberViewabilityLevelField
42
              .CreateGroupRequestBodyMemberViewabilityLevelFieldSerializer.class)
43
  @JsonProperty("member_viewability_level")
44
  protected EnumWrapper<CreateGroupRequestBodyMemberViewabilityLevelField> memberViewabilityLevel;
45

46
  public CreateGroupRequestBody(@JsonProperty("name") String name) {
47
    super();
1✔
48
    this.name = name;
1✔
49
  }
1✔
50

51
  protected CreateGroupRequestBody(Builder builder) {
52
    super();
1✔
53
    this.name = builder.name;
1✔
54
    this.provenance = builder.provenance;
1✔
55
    this.externalSyncIdentifier = builder.externalSyncIdentifier;
1✔
56
    this.description = builder.description;
1✔
57
    this.invitabilityLevel = builder.invitabilityLevel;
1✔
58
    this.memberViewabilityLevel = builder.memberViewabilityLevel;
1✔
59
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
60
  }
1✔
61

62
  public String getName() {
63
    return name;
1✔
64
  }
65

66
  public String getProvenance() {
67
    return provenance;
1✔
68
  }
69

70
  public String getExternalSyncIdentifier() {
71
    return externalSyncIdentifier;
1✔
72
  }
73

74
  public String getDescription() {
75
    return description;
1✔
76
  }
77

78
  public EnumWrapper<CreateGroupRequestBodyInvitabilityLevelField> getInvitabilityLevel() {
79
    return invitabilityLevel;
1✔
80
  }
81

82
  public EnumWrapper<CreateGroupRequestBodyMemberViewabilityLevelField>
83
      getMemberViewabilityLevel() {
84
    return memberViewabilityLevel;
1✔
85
  }
86

87
  @Override
88
  public boolean equals(Object o) {
89
    if (this == o) {
×
UNCOV
90
      return true;
×
91
    }
92
    if (o == null || getClass() != o.getClass()) {
×
93
      return false;
×
94
    }
95
    CreateGroupRequestBody casted = (CreateGroupRequestBody) o;
×
96
    return Objects.equals(name, casted.name)
×
97
        && Objects.equals(provenance, casted.provenance)
×
UNCOV
98
        && Objects.equals(externalSyncIdentifier, casted.externalSyncIdentifier)
×
UNCOV
99
        && Objects.equals(description, casted.description)
×
UNCOV
100
        && Objects.equals(invitabilityLevel, casted.invitabilityLevel)
×
UNCOV
101
        && Objects.equals(memberViewabilityLevel, casted.memberViewabilityLevel);
×
102
  }
103

104
  @Override
105
  public int hashCode() {
UNCOV
106
    return Objects.hash(
×
107
        name,
108
        provenance,
109
        externalSyncIdentifier,
110
        description,
111
        invitabilityLevel,
112
        memberViewabilityLevel);
113
  }
114

115
  @Override
116
  public String toString() {
UNCOV
117
    return "CreateGroupRequestBody{"
×
118
        + "name='"
119
        + name
120
        + '\''
121
        + ", "
122
        + "provenance='"
123
        + provenance
124
        + '\''
125
        + ", "
126
        + "externalSyncIdentifier='"
127
        + externalSyncIdentifier
128
        + '\''
129
        + ", "
130
        + "description='"
131
        + description
132
        + '\''
133
        + ", "
134
        + "invitabilityLevel='"
135
        + invitabilityLevel
136
        + '\''
137
        + ", "
138
        + "memberViewabilityLevel='"
139
        + memberViewabilityLevel
140
        + '\''
141
        + "}";
142
  }
143

144
  public static class Builder extends NullableFieldTracker {
145

146
    protected final String name;
147

148
    protected String provenance;
149

150
    protected String externalSyncIdentifier;
151

152
    protected String description;
153

154
    protected EnumWrapper<CreateGroupRequestBodyInvitabilityLevelField> invitabilityLevel;
155

156
    protected EnumWrapper<CreateGroupRequestBodyMemberViewabilityLevelField> memberViewabilityLevel;
157

158
    public Builder(String name) {
159
      super();
1✔
160
      this.name = name;
1✔
161
    }
1✔
162

163
    public Builder provenance(String provenance) {
164
      this.provenance = provenance;
×
165
      return this;
×
166
    }
167

168
    public Builder externalSyncIdentifier(String externalSyncIdentifier) {
UNCOV
169
      this.externalSyncIdentifier = externalSyncIdentifier;
×
UNCOV
170
      return this;
×
171
    }
172

173
    public Builder description(String description) {
174
      this.description = description;
1✔
175
      return this;
1✔
176
    }
177

178
    public Builder invitabilityLevel(
179
        CreateGroupRequestBodyInvitabilityLevelField invitabilityLevel) {
UNCOV
180
      this.invitabilityLevel =
×
181
          new EnumWrapper<CreateGroupRequestBodyInvitabilityLevelField>(invitabilityLevel);
182
      return this;
×
183
    }
184

185
    public Builder invitabilityLevel(
186
        EnumWrapper<CreateGroupRequestBodyInvitabilityLevelField> invitabilityLevel) {
UNCOV
187
      this.invitabilityLevel = invitabilityLevel;
×
188
      return this;
×
189
    }
190

191
    public Builder memberViewabilityLevel(
192
        CreateGroupRequestBodyMemberViewabilityLevelField memberViewabilityLevel) {
UNCOV
193
      this.memberViewabilityLevel =
×
194
          new EnumWrapper<CreateGroupRequestBodyMemberViewabilityLevelField>(
195
              memberViewabilityLevel);
196
      return this;
×
197
    }
198

199
    public Builder memberViewabilityLevel(
200
        EnumWrapper<CreateGroupRequestBodyMemberViewabilityLevelField> memberViewabilityLevel) {
UNCOV
201
      this.memberViewabilityLevel = memberViewabilityLevel;
×
UNCOV
202
      return this;
×
203
    }
204

205
    public CreateGroupRequestBody build() {
206
      return new CreateGroupRequestBody(this);
1✔
207
    }
208
  }
209
}
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