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

box / box-java-sdk-gen / #294

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

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%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 relevant lines covered (35.66%)

0.36 hits per line

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

10.2
/src/main/java/com/box/sdkgen/schemas/folderlock/FolderLock.java
1
package com.box.sdkgen.schemas.folderlock;
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.schemas.foldermini.FolderMini;
7
import com.box.sdkgen.schemas.userbase.UserBase;
8
import com.fasterxml.jackson.annotation.JsonFilter;
9
import com.fasterxml.jackson.annotation.JsonProperty;
10
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
11
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
12
import java.util.Date;
13
import java.util.Objects;
14

15
@JsonFilter("nullablePropertyFilter")
16
public class FolderLock extends SerializableObject {
17

18
  protected FolderMini folder;
19

20
  protected String id;
21

22
  protected String type;
23

24
  @JsonProperty("created_by")
25
  protected UserBase createdBy;
26

27
  @JsonProperty("created_at")
28
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
29
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
30
  protected Date createdAt;
31

32
  @JsonProperty("locked_operations")
33
  protected FolderLockLockedOperationsField lockedOperations;
34

35
  @JsonProperty("lock_type")
36
  protected String lockType;
37

38
  public FolderLock() {
39
    super();
1✔
40
  }
1✔
41

42
  protected FolderLock(Builder builder) {
43
    super();
×
44
    this.folder = builder.folder;
×
45
    this.id = builder.id;
×
46
    this.type = builder.type;
×
47
    this.createdBy = builder.createdBy;
×
48
    this.createdAt = builder.createdAt;
×
UNCOV
49
    this.lockedOperations = builder.lockedOperations;
×
UNCOV
50
    this.lockType = builder.lockType;
×
UNCOV
51
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
52
  }
×
53

54
  public FolderMini getFolder() {
55
    return folder;
1✔
56
  }
57

58
  public String getId() {
59
    return id;
1✔
60
  }
61

62
  public String getType() {
63
    return type;
×
64
  }
65

66
  public UserBase getCreatedBy() {
67
    return createdBy;
×
68
  }
69

70
  public Date getCreatedAt() {
UNCOV
71
    return createdAt;
×
72
  }
73

74
  public FolderLockLockedOperationsField getLockedOperations() {
75
    return lockedOperations;
1✔
76
  }
77

78
  public String getLockType() {
UNCOV
79
    return lockType;
×
80
  }
81

82
  @Override
83
  public boolean equals(Object o) {
84
    if (this == o) {
×
UNCOV
85
      return true;
×
86
    }
87
    if (o == null || getClass() != o.getClass()) {
×
88
      return false;
×
89
    }
90
    FolderLock casted = (FolderLock) o;
×
91
    return Objects.equals(folder, casted.folder)
×
92
        && Objects.equals(id, casted.id)
×
93
        && Objects.equals(type, casted.type)
×
UNCOV
94
        && Objects.equals(createdBy, casted.createdBy)
×
UNCOV
95
        && Objects.equals(createdAt, casted.createdAt)
×
UNCOV
96
        && Objects.equals(lockedOperations, casted.lockedOperations)
×
UNCOV
97
        && Objects.equals(lockType, casted.lockType);
×
98
  }
99

100
  @Override
101
  public int hashCode() {
UNCOV
102
    return Objects.hash(folder, id, type, createdBy, createdAt, lockedOperations, lockType);
×
103
  }
104

105
  @Override
106
  public String toString() {
UNCOV
107
    return "FolderLock{"
×
108
        + "folder='"
109
        + folder
110
        + '\''
111
        + ", "
112
        + "id='"
113
        + id
114
        + '\''
115
        + ", "
116
        + "type='"
117
        + type
118
        + '\''
119
        + ", "
120
        + "createdBy='"
121
        + createdBy
122
        + '\''
123
        + ", "
124
        + "createdAt='"
125
        + createdAt
126
        + '\''
127
        + ", "
128
        + "lockedOperations='"
129
        + lockedOperations
130
        + '\''
131
        + ", "
132
        + "lockType='"
133
        + lockType
134
        + '\''
135
        + "}";
136
  }
137

UNCOV
138
  public static class Builder extends NullableFieldTracker {
×
139

140
    protected FolderMini folder;
141

142
    protected String id;
143

144
    protected String type;
145

146
    protected UserBase createdBy;
147

148
    protected Date createdAt;
149

150
    protected FolderLockLockedOperationsField lockedOperations;
151

152
    protected String lockType;
153

154
    public Builder folder(FolderMini folder) {
UNCOV
155
      this.folder = folder;
×
156
      return this;
×
157
    }
158

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

164
    public Builder type(String type) {
UNCOV
165
      this.type = type;
×
166
      return this;
×
167
    }
168

169
    public Builder createdBy(UserBase createdBy) {
UNCOV
170
      this.createdBy = createdBy;
×
171
      return this;
×
172
    }
173

174
    public Builder createdAt(Date createdAt) {
UNCOV
175
      this.createdAt = createdAt;
×
176
      return this;
×
177
    }
178

179
    public Builder lockedOperations(FolderLockLockedOperationsField lockedOperations) {
UNCOV
180
      this.lockedOperations = lockedOperations;
×
181
      return this;
×
182
    }
183

184
    public Builder lockType(String lockType) {
UNCOV
185
      this.lockType = lockType;
×
186
      return this;
×
187
    }
188

189
    public FolderLock build() {
UNCOV
190
      return new FolderLock(this);
×
191
    }
192
  }
193
}
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