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

box / box-java-sdk-gen / #295

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

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

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 hits per line

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

3.64
/src/main/java/com/box/sdkgen/schemas/filefull/FileFullLockField.java
1
package com.box.sdkgen.schemas.filefull;
2

3
import com.box.sdkgen.internal.Nullable;
4
import com.box.sdkgen.internal.NullableFieldTracker;
5
import com.box.sdkgen.internal.SerializableObject;
6
import com.box.sdkgen.internal.utils.DateTimeUtils;
7
import com.box.sdkgen.schemas.usermini.UserMini;
8
import com.box.sdkgen.serialization.json.EnumWrapper;
9
import com.fasterxml.jackson.annotation.JsonFilter;
10
import com.fasterxml.jackson.annotation.JsonProperty;
11
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
12
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
13
import java.util.Date;
14
import java.util.Objects;
15

16
@JsonFilter("nullablePropertyFilter")
17
public class FileFullLockField extends SerializableObject {
18

19
  protected String id;
20

21
  @JsonDeserialize(using = FileFullLockTypeField.FileFullLockTypeFieldDeserializer.class)
22
  @JsonSerialize(using = FileFullLockTypeField.FileFullLockTypeFieldSerializer.class)
23
  protected EnumWrapper<FileFullLockTypeField> type;
24

25
  @JsonProperty("created_by")
26
  protected UserMini createdBy;
27

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

33
  @JsonProperty("expired_at")
34
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
35
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
36
  protected Date expiredAt;
37

38
  @JsonProperty("is_download_prevented")
39
  protected Boolean isDownloadPrevented;
40

41
  @JsonDeserialize(using = FileFullLockAppTypeField.FileFullLockAppTypeFieldDeserializer.class)
42
  @JsonSerialize(using = FileFullLockAppTypeField.FileFullLockAppTypeFieldSerializer.class)
43
  @JsonProperty("app_type")
44
  @Nullable
45
  protected EnumWrapper<FileFullLockAppTypeField> appType;
46

47
  public FileFullLockField() {
48
    super();
1✔
49
  }
1✔
50

51
  protected FileFullLockField(Builder builder) {
52
    super();
×
53
    this.id = builder.id;
×
54
    this.type = builder.type;
×
55
    this.createdBy = builder.createdBy;
×
UNCOV
56
    this.createdAt = builder.createdAt;
×
UNCOV
57
    this.expiredAt = builder.expiredAt;
×
58
    this.isDownloadPrevented = builder.isDownloadPrevented;
×
UNCOV
59
    this.appType = builder.appType;
×
UNCOV
60
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
61
  }
×
62

63
  public String getId() {
UNCOV
64
    return id;
×
65
  }
66

67
  public EnumWrapper<FileFullLockTypeField> getType() {
UNCOV
68
    return type;
×
69
  }
70

71
  public UserMini getCreatedBy() {
UNCOV
72
    return createdBy;
×
73
  }
74

75
  public Date getCreatedAt() {
UNCOV
76
    return createdAt;
×
77
  }
78

79
  public Date getExpiredAt() {
UNCOV
80
    return expiredAt;
×
81
  }
82

83
  public Boolean getIsDownloadPrevented() {
UNCOV
84
    return isDownloadPrevented;
×
85
  }
86

87
  public EnumWrapper<FileFullLockAppTypeField> getAppType() {
88
    return appType;
×
89
  }
90

91
  @Override
92
  public boolean equals(Object o) {
93
    if (this == o) {
×
94
      return true;
×
95
    }
96
    if (o == null || getClass() != o.getClass()) {
×
97
      return false;
×
98
    }
99
    FileFullLockField casted = (FileFullLockField) o;
×
100
    return Objects.equals(id, casted.id)
×
UNCOV
101
        && Objects.equals(type, casted.type)
×
UNCOV
102
        && Objects.equals(createdBy, casted.createdBy)
×
UNCOV
103
        && Objects.equals(createdAt, casted.createdAt)
×
UNCOV
104
        && Objects.equals(expiredAt, casted.expiredAt)
×
105
        && Objects.equals(isDownloadPrevented, casted.isDownloadPrevented)
×
UNCOV
106
        && Objects.equals(appType, casted.appType);
×
107
  }
108

109
  @Override
110
  public int hashCode() {
UNCOV
111
    return Objects.hash(id, type, createdBy, createdAt, expiredAt, isDownloadPrevented, appType);
×
112
  }
113

114
  @Override
115
  public String toString() {
UNCOV
116
    return "FileFullLockField{"
×
117
        + "id='"
118
        + id
119
        + '\''
120
        + ", "
121
        + "type='"
122
        + type
123
        + '\''
124
        + ", "
125
        + "createdBy='"
126
        + createdBy
127
        + '\''
128
        + ", "
129
        + "createdAt='"
130
        + createdAt
131
        + '\''
132
        + ", "
133
        + "expiredAt='"
134
        + expiredAt
135
        + '\''
136
        + ", "
137
        + "isDownloadPrevented='"
138
        + isDownloadPrevented
139
        + '\''
140
        + ", "
141
        + "appType='"
142
        + appType
143
        + '\''
144
        + "}";
145
  }
146

UNCOV
147
  public static class Builder extends NullableFieldTracker {
×
148

149
    protected String id;
150

151
    protected EnumWrapper<FileFullLockTypeField> type;
152

153
    protected UserMini createdBy;
154

155
    protected Date createdAt;
156

157
    protected Date expiredAt;
158

159
    protected Boolean isDownloadPrevented;
160

161
    protected EnumWrapper<FileFullLockAppTypeField> appType;
162

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

168
    public Builder type(FileFullLockTypeField type) {
169
      this.type = new EnumWrapper<FileFullLockTypeField>(type);
×
UNCOV
170
      return this;
×
171
    }
172

173
    public Builder type(EnumWrapper<FileFullLockTypeField> type) {
174
      this.type = type;
×
UNCOV
175
      return this;
×
176
    }
177

178
    public Builder createdBy(UserMini createdBy) {
179
      this.createdBy = createdBy;
×
UNCOV
180
      return this;
×
181
    }
182

183
    public Builder createdAt(Date createdAt) {
184
      this.createdAt = createdAt;
×
UNCOV
185
      return this;
×
186
    }
187

188
    public Builder expiredAt(Date expiredAt) {
189
      this.expiredAt = expiredAt;
×
UNCOV
190
      return this;
×
191
    }
192

193
    public Builder isDownloadPrevented(Boolean isDownloadPrevented) {
194
      this.isDownloadPrevented = isDownloadPrevented;
×
UNCOV
195
      return this;
×
196
    }
197

198
    public Builder appType(FileFullLockAppTypeField appType) {
199
      this.appType = new EnumWrapper<FileFullLockAppTypeField>(appType);
×
UNCOV
200
      this.markNullableFieldAsSet("app_type");
×
UNCOV
201
      return this;
×
202
    }
203

204
    public Builder appType(EnumWrapper<FileFullLockAppTypeField> appType) {
UNCOV
205
      this.appType = appType;
×
UNCOV
206
      this.markNullableFieldAsSet("app_type");
×
UNCOV
207
      return this;
×
208
    }
209

210
    public FileFullLockField build() {
UNCOV
211
      return new FileFullLockField(this);
×
212
    }
213
  }
214
}
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