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

box / box-java-sdk / #6088

21 Jan 2026 06:13PM UTC coverage: 12.891% (-0.02%) from 12.907%
#6088

Pull #1687

github

web-flow
Merge 7da886642 into 04f02f3a1
Pull Request #1687: fix(boxsdkgen): add missing tag to API resources (box/box-openapi#580)

0 of 90 new or added lines in 4 files covered. (0.0%)

164 existing lines in 4 files now uncovered.

8374 of 64960 relevant lines covered (12.89%)

0.13 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/folderfull/FolderFullPermissionsField.java
1
package com.box.sdkgen.schemas.folderfull;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.fasterxml.jackson.annotation.JsonFilter;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import java.util.Objects;
8

9
@JsonFilter("nullablePropertyFilter")
10
public class FolderFullPermissionsField extends SerializableObject {
11

12
  /** Specifies if the current user can delete this item. */
13
  @JsonProperty("can_delete")
14
  protected final boolean canDelete;
15

16
  /** Specifies if the current user can download this item. */
17
  @JsonProperty("can_download")
18
  protected final boolean canDownload;
19

20
  /**
21
   * Specifies if the current user can invite new users to collaborate on this item, and if the user
22
   * can update the role of a user already collaborated on this item.
23
   */
24
  @JsonProperty("can_invite_collaborator")
25
  protected final boolean canInviteCollaborator;
26

27
  /** Specifies if the user can rename this item. */
28
  @JsonProperty("can_rename")
29
  protected final boolean canRename;
30

31
  /** Specifies if the user can change the access level of an existing shared link on this item. */
32
  @JsonProperty("can_set_share_access")
33
  protected final boolean canSetShareAccess;
34

35
  /** Specifies if the user can create a shared link for this item. */
36
  @JsonProperty("can_share")
37
  protected final boolean canShare;
38

39
  /** Specifies if the user can upload into this folder. */
40
  @JsonProperty("can_upload")
41
  protected final boolean canUpload;
42

43
  /** Specifies if the user can apply a watermark to this folder and its contents. */
44
  @JsonProperty("can_apply_watermark")
45
  protected Boolean canApplyWatermark;
46

47
  public FolderFullPermissionsField(
48
      @JsonProperty("can_delete") boolean canDelete,
49
      @JsonProperty("can_download") boolean canDownload,
50
      @JsonProperty("can_invite_collaborator") boolean canInviteCollaborator,
51
      @JsonProperty("can_rename") boolean canRename,
52
      @JsonProperty("can_set_share_access") boolean canSetShareAccess,
53
      @JsonProperty("can_share") boolean canShare,
54
      @JsonProperty("can_upload") boolean canUpload) {
55
    super();
×
56
    this.canDelete = canDelete;
×
57
    this.canDownload = canDownload;
×
58
    this.canInviteCollaborator = canInviteCollaborator;
×
UNCOV
59
    this.canRename = canRename;
×
UNCOV
60
    this.canSetShareAccess = canSetShareAccess;
×
61
    this.canShare = canShare;
×
UNCOV
62
    this.canUpload = canUpload;
×
UNCOV
63
  }
×
64

65
  protected FolderFullPermissionsField(Builder builder) {
NEW
UNCOV
66
    super();
×
NEW
UNCOV
67
    this.canDelete = builder.canDelete;
×
NEW
UNCOV
68
    this.canDownload = builder.canDownload;
×
NEW
69
    this.canInviteCollaborator = builder.canInviteCollaborator;
×
NEW
UNCOV
70
    this.canRename = builder.canRename;
×
NEW
UNCOV
71
    this.canSetShareAccess = builder.canSetShareAccess;
×
NEW
UNCOV
72
    this.canShare = builder.canShare;
×
NEW
73
    this.canUpload = builder.canUpload;
×
NEW
UNCOV
74
    this.canApplyWatermark = builder.canApplyWatermark;
×
NEW
UNCOV
75
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
NEW
UNCOV
76
  }
×
77

78
  public boolean getCanDelete() {
UNCOV
79
    return canDelete;
×
80
  }
81

82
  public boolean getCanDownload() {
UNCOV
83
    return canDownload;
×
84
  }
85

86
  public boolean getCanInviteCollaborator() {
UNCOV
87
    return canInviteCollaborator;
×
88
  }
89

90
  public boolean getCanRename() {
91
    return canRename;
×
92
  }
93

94
  public boolean getCanSetShareAccess() {
UNCOV
95
    return canSetShareAccess;
×
96
  }
97

98
  public boolean getCanShare() {
99
    return canShare;
×
100
  }
101

102
  public boolean getCanUpload() {
103
    return canUpload;
×
104
  }
105

106
  public Boolean getCanApplyWatermark() {
NEW
UNCOV
107
    return canApplyWatermark;
×
108
  }
109

110
  @Override
111
  public boolean equals(Object o) {
112
    if (this == o) {
×
113
      return true;
×
114
    }
115
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
116
      return false;
×
117
    }
UNCOV
118
    FolderFullPermissionsField casted = (FolderFullPermissionsField) o;
×
UNCOV
119
    return Objects.equals(canDelete, casted.canDelete)
×
120
        && Objects.equals(canDownload, casted.canDownload)
×
UNCOV
121
        && Objects.equals(canInviteCollaborator, casted.canInviteCollaborator)
×
UNCOV
122
        && Objects.equals(canRename, casted.canRename)
×
UNCOV
123
        && Objects.equals(canSetShareAccess, casted.canSetShareAccess)
×
UNCOV
124
        && Objects.equals(canShare, casted.canShare)
×
NEW
UNCOV
125
        && Objects.equals(canUpload, casted.canUpload)
×
NEW
UNCOV
126
        && Objects.equals(canApplyWatermark, casted.canApplyWatermark);
×
127
  }
128

129
  @Override
130
  public int hashCode() {
UNCOV
131
    return Objects.hash(
×
UNCOV
132
        canDelete,
×
UNCOV
133
        canDownload,
×
UNCOV
134
        canInviteCollaborator,
×
UNCOV
135
        canRename,
×
UNCOV
136
        canSetShareAccess,
×
UNCOV
137
        canShare,
×
NEW
UNCOV
138
        canUpload,
×
139
        canApplyWatermark);
140
  }
141

142
  @Override
143
  public String toString() {
UNCOV
144
    return "FolderFullPermissionsField{"
×
145
        + "canDelete='"
146
        + canDelete
147
        + '\''
148
        + ", "
149
        + "canDownload='"
150
        + canDownload
151
        + '\''
152
        + ", "
153
        + "canInviteCollaborator='"
154
        + canInviteCollaborator
155
        + '\''
156
        + ", "
157
        + "canRename='"
158
        + canRename
159
        + '\''
160
        + ", "
161
        + "canSetShareAccess='"
162
        + canSetShareAccess
163
        + '\''
164
        + ", "
165
        + "canShare='"
166
        + canShare
167
        + '\''
168
        + ", "
169
        + "canUpload='"
170
        + canUpload
171
        + '\''
172
        + ", "
173
        + "canApplyWatermark='"
174
        + canApplyWatermark
175
        + '\''
176
        + "}";
177
  }
178

179
  public static class Builder extends NullableFieldTracker {
180

181
    protected final boolean canDelete;
182

183
    protected final boolean canDownload;
184

185
    protected final boolean canInviteCollaborator;
186

187
    protected final boolean canRename;
188

189
    protected final boolean canSetShareAccess;
190

191
    protected final boolean canShare;
192

193
    protected final boolean canUpload;
194

195
    protected Boolean canApplyWatermark;
196

197
    public Builder(
198
        boolean canDelete,
199
        boolean canDownload,
200
        boolean canInviteCollaborator,
201
        boolean canRename,
202
        boolean canSetShareAccess,
203
        boolean canShare,
204
        boolean canUpload) {
NEW
UNCOV
205
      super();
×
NEW
UNCOV
206
      this.canDelete = canDelete;
×
NEW
UNCOV
207
      this.canDownload = canDownload;
×
NEW
UNCOV
208
      this.canInviteCollaborator = canInviteCollaborator;
×
NEW
UNCOV
209
      this.canRename = canRename;
×
NEW
UNCOV
210
      this.canSetShareAccess = canSetShareAccess;
×
NEW
UNCOV
211
      this.canShare = canShare;
×
NEW
UNCOV
212
      this.canUpload = canUpload;
×
NEW
UNCOV
213
    }
×
214

215
    public Builder canApplyWatermark(Boolean canApplyWatermark) {
NEW
UNCOV
216
      this.canApplyWatermark = canApplyWatermark;
×
NEW
UNCOV
217
      return this;
×
218
    }
219

220
    public FolderFullPermissionsField build() {
NEW
UNCOV
221
      return new FolderFullPermissionsField(this);
×
222
    }
223
  }
224
}
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