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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

0.36 hits per line

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

6.0
/src/main/java/com/box/sdkgen/schemas/signtemplate/SignTemplate.java
1
package com.box.sdkgen.schemas.signtemplate;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.schemas.filemini.FileMini;
5
import com.box.sdkgen.schemas.foldermini.FolderMini;
6
import com.box.sdkgen.schemas.templatesigner.TemplateSigner;
7
import com.box.sdkgen.serialization.json.EnumWrapper;
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.util.List;
12
import java.util.Objects;
13

14
public class SignTemplate extends SerializableObject {
15

16
  @JsonDeserialize(using = SignTemplateTypeField.SignTemplateTypeFieldDeserializer.class)
17
  @JsonSerialize(using = SignTemplateTypeField.SignTemplateTypeFieldSerializer.class)
18
  protected EnumWrapper<SignTemplateTypeField> type;
19

20
  protected String id;
21

22
  protected String name;
23

24
  @JsonProperty("email_subject")
25
  protected String emailSubject;
26

27
  @JsonProperty("email_message")
28
  protected String emailMessage;
29

30
  @JsonProperty("days_valid")
31
  protected Long daysValid;
32

33
  @JsonProperty("parent_folder")
34
  protected FolderMini parentFolder;
35

36
  @JsonProperty("source_files")
37
  protected List<FileMini> sourceFiles;
38

39
  @JsonProperty("are_fields_locked")
40
  protected Boolean areFieldsLocked;
41

42
  @JsonProperty("are_options_locked")
43
  protected Boolean areOptionsLocked;
44

45
  @JsonProperty("are_recipients_locked")
46
  protected Boolean areRecipientsLocked;
47

48
  @JsonProperty("are_email_settings_locked")
49
  protected Boolean areEmailSettingsLocked;
50

51
  @JsonProperty("are_files_locked")
52
  protected Boolean areFilesLocked;
53

54
  protected List<TemplateSigner> signers;
55

56
  @JsonProperty("additional_info")
57
  protected SignTemplateAdditionalInfoField additionalInfo;
58

59
  @JsonProperty("ready_sign_link")
60
  protected SignTemplateReadySignLinkField readySignLink;
61

62
  @JsonProperty("custom_branding")
63
  protected SignTemplateCustomBrandingField customBranding;
64

65
  public SignTemplate() {
66
    super();
1✔
67
  }
1✔
68

69
  protected SignTemplate(Builder builder) {
70
    super();
×
71
    this.type = builder.type;
×
72
    this.id = builder.id;
×
73
    this.name = builder.name;
×
74
    this.emailSubject = builder.emailSubject;
×
75
    this.emailMessage = builder.emailMessage;
×
76
    this.daysValid = builder.daysValid;
×
77
    this.parentFolder = builder.parentFolder;
×
78
    this.sourceFiles = builder.sourceFiles;
×
79
    this.areFieldsLocked = builder.areFieldsLocked;
×
80
    this.areOptionsLocked = builder.areOptionsLocked;
×
81
    this.areRecipientsLocked = builder.areRecipientsLocked;
×
82
    this.areEmailSettingsLocked = builder.areEmailSettingsLocked;
×
83
    this.areFilesLocked = builder.areFilesLocked;
×
84
    this.signers = builder.signers;
×
85
    this.additionalInfo = builder.additionalInfo;
×
86
    this.readySignLink = builder.readySignLink;
×
87
    this.customBranding = builder.customBranding;
×
88
  }
×
89

90
  public EnumWrapper<SignTemplateTypeField> getType() {
91
    return type;
×
92
  }
93

94
  public String getId() {
95
    return id;
1✔
96
  }
97

98
  public String getName() {
99
    return name;
1✔
100
  }
101

102
  public String getEmailSubject() {
103
    return emailSubject;
×
104
  }
105

106
  public String getEmailMessage() {
107
    return emailMessage;
×
108
  }
109

110
  public Long getDaysValid() {
111
    return daysValid;
×
112
  }
113

114
  public FolderMini getParentFolder() {
115
    return parentFolder;
1✔
116
  }
117

118
  public List<FileMini> getSourceFiles() {
119
    return sourceFiles;
1✔
120
  }
121

122
  public Boolean getAreFieldsLocked() {
123
    return areFieldsLocked;
×
124
  }
125

126
  public Boolean getAreOptionsLocked() {
127
    return areOptionsLocked;
×
128
  }
129

130
  public Boolean getAreRecipientsLocked() {
131
    return areRecipientsLocked;
×
132
  }
133

134
  public Boolean getAreEmailSettingsLocked() {
135
    return areEmailSettingsLocked;
×
136
  }
137

138
  public Boolean getAreFilesLocked() {
139
    return areFilesLocked;
×
140
  }
141

142
  public List<TemplateSigner> getSigners() {
143
    return signers;
×
144
  }
145

146
  public SignTemplateAdditionalInfoField getAdditionalInfo() {
147
    return additionalInfo;
×
148
  }
149

150
  public SignTemplateReadySignLinkField getReadySignLink() {
151
    return readySignLink;
×
152
  }
153

154
  public SignTemplateCustomBrandingField getCustomBranding() {
155
    return customBranding;
×
156
  }
157

158
  @Override
159
  public boolean equals(Object o) {
160
    if (this == o) {
×
161
      return true;
×
162
    }
163
    if (o == null || getClass() != o.getClass()) {
×
164
      return false;
×
165
    }
166
    SignTemplate casted = (SignTemplate) o;
×
167
    return Objects.equals(type, casted.type)
×
168
        && Objects.equals(id, casted.id)
×
169
        && Objects.equals(name, casted.name)
×
170
        && Objects.equals(emailSubject, casted.emailSubject)
×
171
        && Objects.equals(emailMessage, casted.emailMessage)
×
172
        && Objects.equals(daysValid, casted.daysValid)
×
173
        && Objects.equals(parentFolder, casted.parentFolder)
×
174
        && Objects.equals(sourceFiles, casted.sourceFiles)
×
175
        && Objects.equals(areFieldsLocked, casted.areFieldsLocked)
×
176
        && Objects.equals(areOptionsLocked, casted.areOptionsLocked)
×
177
        && Objects.equals(areRecipientsLocked, casted.areRecipientsLocked)
×
178
        && Objects.equals(areEmailSettingsLocked, casted.areEmailSettingsLocked)
×
179
        && Objects.equals(areFilesLocked, casted.areFilesLocked)
×
180
        && Objects.equals(signers, casted.signers)
×
181
        && Objects.equals(additionalInfo, casted.additionalInfo)
×
182
        && Objects.equals(readySignLink, casted.readySignLink)
×
183
        && Objects.equals(customBranding, casted.customBranding);
×
184
  }
185

186
  @Override
187
  public int hashCode() {
188
    return Objects.hash(
×
189
        type,
190
        id,
191
        name,
192
        emailSubject,
193
        emailMessage,
194
        daysValid,
195
        parentFolder,
196
        sourceFiles,
197
        areFieldsLocked,
198
        areOptionsLocked,
199
        areRecipientsLocked,
200
        areEmailSettingsLocked,
201
        areFilesLocked,
202
        signers,
203
        additionalInfo,
204
        readySignLink,
205
        customBranding);
206
  }
207

208
  @Override
209
  public String toString() {
210
    return "SignTemplate{"
×
211
        + "type='"
212
        + type
213
        + '\''
214
        + ", "
215
        + "id='"
216
        + id
217
        + '\''
218
        + ", "
219
        + "name='"
220
        + name
221
        + '\''
222
        + ", "
223
        + "emailSubject='"
224
        + emailSubject
225
        + '\''
226
        + ", "
227
        + "emailMessage='"
228
        + emailMessage
229
        + '\''
230
        + ", "
231
        + "daysValid='"
232
        + daysValid
233
        + '\''
234
        + ", "
235
        + "parentFolder='"
236
        + parentFolder
237
        + '\''
238
        + ", "
239
        + "sourceFiles='"
240
        + sourceFiles
241
        + '\''
242
        + ", "
243
        + "areFieldsLocked='"
244
        + areFieldsLocked
245
        + '\''
246
        + ", "
247
        + "areOptionsLocked='"
248
        + areOptionsLocked
249
        + '\''
250
        + ", "
251
        + "areRecipientsLocked='"
252
        + areRecipientsLocked
253
        + '\''
254
        + ", "
255
        + "areEmailSettingsLocked='"
256
        + areEmailSettingsLocked
257
        + '\''
258
        + ", "
259
        + "areFilesLocked='"
260
        + areFilesLocked
261
        + '\''
262
        + ", "
263
        + "signers='"
264
        + signers
265
        + '\''
266
        + ", "
267
        + "additionalInfo='"
268
        + additionalInfo
269
        + '\''
270
        + ", "
271
        + "readySignLink='"
272
        + readySignLink
273
        + '\''
274
        + ", "
275
        + "customBranding='"
276
        + customBranding
277
        + '\''
278
        + "}";
279
  }
280

NEW
281
  public static class Builder {
×
282

283
    protected EnumWrapper<SignTemplateTypeField> type;
284

285
    protected String id;
286

287
    protected String name;
288

289
    protected String emailSubject;
290

291
    protected String emailMessage;
292

293
    protected Long daysValid;
294

295
    protected FolderMini parentFolder;
296

297
    protected List<FileMini> sourceFiles;
298

299
    protected Boolean areFieldsLocked;
300

301
    protected Boolean areOptionsLocked;
302

303
    protected Boolean areRecipientsLocked;
304

305
    protected Boolean areEmailSettingsLocked;
306

307
    protected Boolean areFilesLocked;
308

309
    protected List<TemplateSigner> signers;
310

311
    protected SignTemplateAdditionalInfoField additionalInfo;
312

313
    protected SignTemplateReadySignLinkField readySignLink;
314

315
    protected SignTemplateCustomBrandingField customBranding;
316

317
    public Builder type(SignTemplateTypeField type) {
318
      this.type = new EnumWrapper<SignTemplateTypeField>(type);
×
319
      return this;
×
320
    }
321

322
    public Builder type(EnumWrapper<SignTemplateTypeField> type) {
323
      this.type = type;
×
324
      return this;
×
325
    }
326

327
    public Builder id(String id) {
328
      this.id = id;
×
329
      return this;
×
330
    }
331

332
    public Builder name(String name) {
333
      this.name = name;
×
334
      return this;
×
335
    }
336

337
    public Builder emailSubject(String emailSubject) {
338
      this.emailSubject = emailSubject;
×
339
      return this;
×
340
    }
341

342
    public Builder emailMessage(String emailMessage) {
343
      this.emailMessage = emailMessage;
×
344
      return this;
×
345
    }
346

347
    public Builder daysValid(Long daysValid) {
348
      this.daysValid = daysValid;
×
349
      return this;
×
350
    }
351

352
    public Builder parentFolder(FolderMini parentFolder) {
353
      this.parentFolder = parentFolder;
×
354
      return this;
×
355
    }
356

357
    public Builder sourceFiles(List<FileMini> sourceFiles) {
358
      this.sourceFiles = sourceFiles;
×
359
      return this;
×
360
    }
361

362
    public Builder areFieldsLocked(Boolean areFieldsLocked) {
363
      this.areFieldsLocked = areFieldsLocked;
×
364
      return this;
×
365
    }
366

367
    public Builder areOptionsLocked(Boolean areOptionsLocked) {
368
      this.areOptionsLocked = areOptionsLocked;
×
369
      return this;
×
370
    }
371

372
    public Builder areRecipientsLocked(Boolean areRecipientsLocked) {
373
      this.areRecipientsLocked = areRecipientsLocked;
×
374
      return this;
×
375
    }
376

377
    public Builder areEmailSettingsLocked(Boolean areEmailSettingsLocked) {
378
      this.areEmailSettingsLocked = areEmailSettingsLocked;
×
379
      return this;
×
380
    }
381

382
    public Builder areFilesLocked(Boolean areFilesLocked) {
383
      this.areFilesLocked = areFilesLocked;
×
384
      return this;
×
385
    }
386

387
    public Builder signers(List<TemplateSigner> signers) {
388
      this.signers = signers;
×
389
      return this;
×
390
    }
391

392
    public Builder additionalInfo(SignTemplateAdditionalInfoField additionalInfo) {
393
      this.additionalInfo = additionalInfo;
×
394
      return this;
×
395
    }
396

397
    public Builder readySignLink(SignTemplateReadySignLinkField readySignLink) {
398
      this.readySignLink = readySignLink;
×
399
      return this;
×
400
    }
401

402
    public Builder customBranding(SignTemplateCustomBrandingField customBranding) {
403
      this.customBranding = customBranding;
×
404
      return this;
×
405
    }
406

407
    public SignTemplate build() {
408
      return new SignTemplate(this);
×
409
    }
410
  }
411
}
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