-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSubmission.java
More file actions
1067 lines (839 loc) · 30.5 KB
/
Submission.java
File metadata and controls
1067 lines (839 loc) · 30.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* DocSpring API
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.docspring;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import java.util.Locale;
import com.docspring.SubmissionAction;
import com.docspring.SubmissionDataRequest;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.docspring.JSON;
/**
* Submission
*/
@JsonPropertyOrder({
Submission.JSON_PROPERTY_BATCH_ID,
Submission.JSON_PROPERTY_DATA_REQUESTS,
Submission.JSON_PROPERTY_EDITABLE,
Submission.JSON_PROPERTY_EXPIRED,
Submission.JSON_PROPERTY_EXPIRES_AT,
Submission.JSON_PROPERTY_ID,
Submission.JSON_PROPERTY_JSON_SCHEMA_ERRORS,
Submission.JSON_PROPERTY_METADATA,
Submission.JSON_PROPERTY_PASSWORD,
Submission.JSON_PROPERTY_PROCESSED_AT,
Submission.JSON_PROPERTY_STATE,
Submission.JSON_PROPERTY_TEMPLATE_ID,
Submission.JSON_PROPERTY_TEMPLATE_TYPE,
Submission.JSON_PROPERTY_TEMPLATE_VERSION,
Submission.JSON_PROPERTY_TEST,
Submission.JSON_PROPERTY_TRUNCATED_TEXT,
Submission.JSON_PROPERTY_PDF_HASH,
Submission.JSON_PROPERTY_DOWNLOAD_URL,
Submission.JSON_PROPERTY_PERMANENT_DOWNLOAD_URL,
Submission.JSON_PROPERTY_PREVIEW_DOWNLOAD_URL,
Submission.JSON_PROPERTY_PREVIEW_GENERATED_AT,
Submission.JSON_PROPERTY_AUDIT_TRAIL_DOWNLOAD_URL,
Submission.JSON_PROPERTY_ACTIONS,
Submission.JSON_PROPERTY_SOURCE,
Submission.JSON_PROPERTY_REFERRER,
Submission.JSON_PROPERTY_DATA
})
@JsonTypeName("submission")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0-DOCSPRING")
public class Submission {
public static final String JSON_PROPERTY_BATCH_ID = "batch_id";
@javax.annotation.Nullable
private String batchId;
public static final String JSON_PROPERTY_DATA_REQUESTS = "data_requests";
@javax.annotation.Nonnull
private List<SubmissionDataRequest> dataRequests = new ArrayList<>();
public static final String JSON_PROPERTY_EDITABLE = "editable";
@javax.annotation.Nullable
private Boolean editable;
public static final String JSON_PROPERTY_EXPIRED = "expired";
@javax.annotation.Nonnull
private Boolean expired;
public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at";
@javax.annotation.Nullable
private String expiresAt;
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private String id;
public static final String JSON_PROPERTY_JSON_SCHEMA_ERRORS = "json_schema_errors";
@javax.annotation.Nullable
private List<String> jsonSchemaErrors;
public static final String JSON_PROPERTY_METADATA = "metadata";
@javax.annotation.Nonnull
private Object metadata;
public static final String JSON_PROPERTY_PASSWORD = "password";
@javax.annotation.Nullable
private String password;
public static final String JSON_PROPERTY_PROCESSED_AT = "processed_at";
@javax.annotation.Nullable
private String processedAt;
/**
* Gets or Sets state
*/
public enum StateEnum {
PENDING(String.valueOf("pending")),
PROCESSED(String.valueOf("processed")),
INVALID_DATA(String.valueOf("invalid_data")),
ERROR(String.valueOf("error")),
IMAGE_DOWNLOAD_FAILED(String.valueOf("image_download_failed")),
IMAGE_PROCESSING_FAILED(String.valueOf("image_processing_failed")),
WAITING_FOR_DATA_REQUESTS(String.valueOf("waiting_for_data_requests")),
SYNTAX_ERROR(String.valueOf("syntax_error")),
ACCOUNT_SUSPENDED(String.valueOf("account_suspended")),
LICENSE_REVOKED(String.valueOf("license_revoked")),
ACCIDENTAL(String.valueOf("accidental"));
private String value;
StateEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static StateEnum fromValue(String value) {
for (StateEnum b : StateEnum.values()) {
if (b.value.equalsIgnoreCase(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_STATE = "state";
@javax.annotation.Nonnull
private StateEnum state;
public static final String JSON_PROPERTY_TEMPLATE_ID = "template_id";
@javax.annotation.Nullable
private String templateId;
/**
* Gets or Sets templateType
*/
public enum TemplateTypeEnum {
PDF(String.valueOf("pdf")),
HTML(String.valueOf("html"));
private String value;
TemplateTypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static TemplateTypeEnum fromValue(String value) {
for (TemplateTypeEnum b : TemplateTypeEnum.values()) {
if (b.value.equalsIgnoreCase(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_TEMPLATE_TYPE = "template_type";
@javax.annotation.Nonnull
private TemplateTypeEnum templateType;
public static final String JSON_PROPERTY_TEMPLATE_VERSION = "template_version";
@javax.annotation.Nullable
private String templateVersion;
public static final String JSON_PROPERTY_TEST = "test";
@javax.annotation.Nonnull
private Boolean test;
public static final String JSON_PROPERTY_TRUNCATED_TEXT = "truncated_text";
@javax.annotation.Nullable
private Object truncatedText;
public static final String JSON_PROPERTY_PDF_HASH = "pdf_hash";
@javax.annotation.Nullable
private String pdfHash;
public static final String JSON_PROPERTY_DOWNLOAD_URL = "download_url";
@javax.annotation.Nullable
private String downloadUrl;
public static final String JSON_PROPERTY_PERMANENT_DOWNLOAD_URL = "permanent_download_url";
@javax.annotation.Nullable
private String permanentDownloadUrl;
public static final String JSON_PROPERTY_PREVIEW_DOWNLOAD_URL = "preview_download_url";
@javax.annotation.Nullable
private String previewDownloadUrl;
public static final String JSON_PROPERTY_PREVIEW_GENERATED_AT = "preview_generated_at";
@javax.annotation.Nullable
private String previewGeneratedAt;
public static final String JSON_PROPERTY_AUDIT_TRAIL_DOWNLOAD_URL = "audit_trail_download_url";
@javax.annotation.Nullable
private String auditTrailDownloadUrl;
public static final String JSON_PROPERTY_ACTIONS = "actions";
@javax.annotation.Nonnull
private List<SubmissionAction> actions = new ArrayList<>();
/**
* Gets or Sets source
*/
public enum SourceEnum {
API(String.valueOf("api")),
WEB(String.valueOf("web")),
REPROCESS(String.valueOf("reprocess")),
WEBHOOK(String.valueOf("webhook"));
private String value;
SourceEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static SourceEnum fromValue(String value) {
for (SourceEnum b : SourceEnum.values()) {
if (b.value.equalsIgnoreCase(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_SOURCE = "source";
@javax.annotation.Nonnull
private SourceEnum source;
public static final String JSON_PROPERTY_REFERRER = "referrer";
@javax.annotation.Nullable
private String referrer;
public static final String JSON_PROPERTY_DATA = "data";
@javax.annotation.Nullable
private Object data;
public Submission() {
}
public Submission batchId(@javax.annotation.Nullable String batchId) {
this.batchId = batchId;
return this;
}
/**
* Get batchId
* @return batchId
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_BATCH_ID, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getBatchId() {
return batchId;
}
@JsonProperty(value = JSON_PROPERTY_BATCH_ID, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setBatchId(@javax.annotation.Nullable String batchId) {
this.batchId = batchId;
}
public Submission dataRequests(@javax.annotation.Nonnull List<SubmissionDataRequest> dataRequests) {
this.dataRequests = dataRequests;
return this;
}
public Submission addDataRequestsItem(SubmissionDataRequest dataRequestsItem) {
if (this.dataRequests == null) {
this.dataRequests = new ArrayList<>();
}
this.dataRequests.add(dataRequestsItem);
return this;
}
/**
* Get dataRequests
* @return dataRequests
*/
@javax.annotation.Nonnull
@JsonProperty(value = JSON_PROPERTY_DATA_REQUESTS, required = true)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List<SubmissionDataRequest> getDataRequests() {
return dataRequests;
}
@JsonProperty(value = JSON_PROPERTY_DATA_REQUESTS, required = true)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDataRequests(@javax.annotation.Nonnull List<SubmissionDataRequest> dataRequests) {
this.dataRequests = dataRequests;
}
public Submission editable(@javax.annotation.Nullable Boolean editable) {
this.editable = editable;
return this;
}
/**
* Get editable
* @return editable
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_EDITABLE, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getEditable() {
return editable;
}
@JsonProperty(value = JSON_PROPERTY_EDITABLE, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEditable(@javax.annotation.Nullable Boolean editable) {
this.editable = editable;
}
public Submission expired(@javax.annotation.Nonnull Boolean expired) {
this.expired = expired;
return this;
}
/**
* Get expired
* @return expired
*/
@javax.annotation.Nonnull
@JsonProperty(value = JSON_PROPERTY_EXPIRED, required = true)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getExpired() {
return expired;
}
@JsonProperty(value = JSON_PROPERTY_EXPIRED, required = true)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setExpired(@javax.annotation.Nonnull Boolean expired) {
this.expired = expired;
}
public Submission expiresAt(@javax.annotation.Nullable String expiresAt) {
this.expiresAt = expiresAt;
return this;
}
/**
* Get expiresAt
* @return expiresAt
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getExpiresAt() {
return expiresAt;
}
@JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setExpiresAt(@javax.annotation.Nullable String expiresAt) {
this.expiresAt = expiresAt;
}
public Submission id(@javax.annotation.Nullable String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_ID, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getId() {
return id;
}
@JsonProperty(value = JSON_PROPERTY_ID, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setId(@javax.annotation.Nullable String id) {
this.id = id;
}
public Submission jsonSchemaErrors(@javax.annotation.Nullable List<String> jsonSchemaErrors) {
this.jsonSchemaErrors = jsonSchemaErrors;
return this;
}
public Submission addJsonSchemaErrorsItem(String jsonSchemaErrorsItem) {
if (this.jsonSchemaErrors == null) {
this.jsonSchemaErrors = new ArrayList<>();
}
this.jsonSchemaErrors.add(jsonSchemaErrorsItem);
return this;
}
/**
* Get jsonSchemaErrors
* @return jsonSchemaErrors
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_JSON_SCHEMA_ERRORS, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List<String> getJsonSchemaErrors() {
return jsonSchemaErrors;
}
@JsonProperty(value = JSON_PROPERTY_JSON_SCHEMA_ERRORS, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setJsonSchemaErrors(@javax.annotation.Nullable List<String> jsonSchemaErrors) {
this.jsonSchemaErrors = jsonSchemaErrors;
}
public Submission metadata(@javax.annotation.Nonnull Object metadata) {
this.metadata = metadata;
return this;
}
/**
* Get metadata
* @return metadata
*/
@javax.annotation.Nonnull
@JsonProperty(value = JSON_PROPERTY_METADATA, required = true)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Object getMetadata() {
return metadata;
}
@JsonProperty(value = JSON_PROPERTY_METADATA, required = true)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setMetadata(@javax.annotation.Nonnull Object metadata) {
this.metadata = metadata;
}
public Submission password(@javax.annotation.Nullable String password) {
this.password = password;
return this;
}
/**
* Get password
* @return password
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPassword() {
return password;
}
@JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPassword(@javax.annotation.Nullable String password) {
this.password = password;
}
public Submission processedAt(@javax.annotation.Nullable String processedAt) {
this.processedAt = processedAt;
return this;
}
/**
* Get processedAt
* @return processedAt
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_PROCESSED_AT, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getProcessedAt() {
return processedAt;
}
@JsonProperty(value = JSON_PROPERTY_PROCESSED_AT, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setProcessedAt(@javax.annotation.Nullable String processedAt) {
this.processedAt = processedAt;
}
public Submission state(@javax.annotation.Nonnull StateEnum state) {
this.state = state;
return this;
}
/**
* Get state
* @return state
*/
@javax.annotation.Nonnull
@JsonProperty(value = JSON_PROPERTY_STATE, required = true)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public StateEnum getState() {
return state;
}
@JsonProperty(value = JSON_PROPERTY_STATE, required = true)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setState(@javax.annotation.Nonnull StateEnum state) {
this.state = state;
}
public Submission templateId(@javax.annotation.Nullable String templateId) {
this.templateId = templateId;
return this;
}
/**
* Get templateId
* @return templateId
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getTemplateId() {
return templateId;
}
@JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTemplateId(@javax.annotation.Nullable String templateId) {
this.templateId = templateId;
}
public Submission templateType(@javax.annotation.Nonnull TemplateTypeEnum templateType) {
this.templateType = templateType;
return this;
}
/**
* Get templateType
* @return templateType
*/
@javax.annotation.Nonnull
@JsonProperty(value = JSON_PROPERTY_TEMPLATE_TYPE, required = true)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public TemplateTypeEnum getTemplateType() {
return templateType;
}
@JsonProperty(value = JSON_PROPERTY_TEMPLATE_TYPE, required = true)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTemplateType(@javax.annotation.Nonnull TemplateTypeEnum templateType) {
this.templateType = templateType;
}
public Submission templateVersion(@javax.annotation.Nullable String templateVersion) {
this.templateVersion = templateVersion;
return this;
}
/**
* Get templateVersion
* @return templateVersion
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_TEMPLATE_VERSION, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getTemplateVersion() {
return templateVersion;
}
@JsonProperty(value = JSON_PROPERTY_TEMPLATE_VERSION, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTemplateVersion(@javax.annotation.Nullable String templateVersion) {
this.templateVersion = templateVersion;
}
public Submission test(@javax.annotation.Nonnull Boolean test) {
this.test = test;
return this;
}
/**
* Get test
* @return test
*/
@javax.annotation.Nonnull
@JsonProperty(value = JSON_PROPERTY_TEST, required = true)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getTest() {
return test;
}
@JsonProperty(value = JSON_PROPERTY_TEST, required = true)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTest(@javax.annotation.Nonnull Boolean test) {
this.test = test;
}
public Submission truncatedText(@javax.annotation.Nullable Object truncatedText) {
this.truncatedText = truncatedText;
return this;
}
/**
* Get truncatedText
* @return truncatedText
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_TRUNCATED_TEXT, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Object getTruncatedText() {
return truncatedText;
}
@JsonProperty(value = JSON_PROPERTY_TRUNCATED_TEXT, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTruncatedText(@javax.annotation.Nullable Object truncatedText) {
this.truncatedText = truncatedText;
}
public Submission pdfHash(@javax.annotation.Nullable String pdfHash) {
this.pdfHash = pdfHash;
return this;
}
/**
* Get pdfHash
* @return pdfHash
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_PDF_HASH, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPdfHash() {
return pdfHash;
}
@JsonProperty(value = JSON_PROPERTY_PDF_HASH, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPdfHash(@javax.annotation.Nullable String pdfHash) {
this.pdfHash = pdfHash;
}
public Submission downloadUrl(@javax.annotation.Nullable String downloadUrl) {
this.downloadUrl = downloadUrl;
return this;
}
/**
* Get downloadUrl
* @return downloadUrl
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_DOWNLOAD_URL, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getDownloadUrl() {
return downloadUrl;
}
@JsonProperty(value = JSON_PROPERTY_DOWNLOAD_URL, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDownloadUrl(@javax.annotation.Nullable String downloadUrl) {
this.downloadUrl = downloadUrl;
}
public Submission permanentDownloadUrl(@javax.annotation.Nullable String permanentDownloadUrl) {
this.permanentDownloadUrl = permanentDownloadUrl;
return this;
}
/**
* Get permanentDownloadUrl
* @return permanentDownloadUrl
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_PERMANENT_DOWNLOAD_URL, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPermanentDownloadUrl() {
return permanentDownloadUrl;
}
@JsonProperty(value = JSON_PROPERTY_PERMANENT_DOWNLOAD_URL, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPermanentDownloadUrl(@javax.annotation.Nullable String permanentDownloadUrl) {
this.permanentDownloadUrl = permanentDownloadUrl;
}
public Submission previewDownloadUrl(@javax.annotation.Nullable String previewDownloadUrl) {
this.previewDownloadUrl = previewDownloadUrl;
return this;
}
/**
* Get previewDownloadUrl
* @return previewDownloadUrl
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_PREVIEW_DOWNLOAD_URL, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPreviewDownloadUrl() {
return previewDownloadUrl;
}
@JsonProperty(value = JSON_PROPERTY_PREVIEW_DOWNLOAD_URL, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPreviewDownloadUrl(@javax.annotation.Nullable String previewDownloadUrl) {
this.previewDownloadUrl = previewDownloadUrl;
}
public Submission previewGeneratedAt(@javax.annotation.Nullable String previewGeneratedAt) {
this.previewGeneratedAt = previewGeneratedAt;
return this;
}
/**
* Get previewGeneratedAt
* @return previewGeneratedAt
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_PREVIEW_GENERATED_AT, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPreviewGeneratedAt() {
return previewGeneratedAt;
}
@JsonProperty(value = JSON_PROPERTY_PREVIEW_GENERATED_AT, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPreviewGeneratedAt(@javax.annotation.Nullable String previewGeneratedAt) {
this.previewGeneratedAt = previewGeneratedAt;
}
public Submission auditTrailDownloadUrl(@javax.annotation.Nullable String auditTrailDownloadUrl) {
this.auditTrailDownloadUrl = auditTrailDownloadUrl;
return this;
}
/**
* Get auditTrailDownloadUrl
* @return auditTrailDownloadUrl
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_AUDIT_TRAIL_DOWNLOAD_URL, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getAuditTrailDownloadUrl() {
return auditTrailDownloadUrl;
}
@JsonProperty(value = JSON_PROPERTY_AUDIT_TRAIL_DOWNLOAD_URL, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setAuditTrailDownloadUrl(@javax.annotation.Nullable String auditTrailDownloadUrl) {
this.auditTrailDownloadUrl = auditTrailDownloadUrl;
}
public Submission actions(@javax.annotation.Nonnull List<SubmissionAction> actions) {
this.actions = actions;
return this;
}
public Submission addActionsItem(SubmissionAction actionsItem) {
if (this.actions == null) {
this.actions = new ArrayList<>();
}
this.actions.add(actionsItem);
return this;
}
/**
* Get actions
* @return actions
*/
@javax.annotation.Nonnull
@JsonProperty(value = JSON_PROPERTY_ACTIONS, required = true)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List<SubmissionAction> getActions() {
return actions;
}
@JsonProperty(value = JSON_PROPERTY_ACTIONS, required = true)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setActions(@javax.annotation.Nonnull List<SubmissionAction> actions) {
this.actions = actions;
}
public Submission source(@javax.annotation.Nonnull SourceEnum source) {
this.source = source;
return this;
}
/**
* Get source
* @return source
*/
@javax.annotation.Nonnull
@JsonProperty(value = JSON_PROPERTY_SOURCE, required = true)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public SourceEnum getSource() {
return source;
}
@JsonProperty(value = JSON_PROPERTY_SOURCE, required = true)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSource(@javax.annotation.Nonnull SourceEnum source) {
this.source = source;
}
public Submission referrer(@javax.annotation.Nullable String referrer) {
this.referrer = referrer;
return this;
}
/**
* Get referrer
* @return referrer
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_REFERRER, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getReferrer() {
return referrer;
}
@JsonProperty(value = JSON_PROPERTY_REFERRER, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setReferrer(@javax.annotation.Nullable String referrer) {
this.referrer = referrer;
}
public Submission data(@javax.annotation.Nullable Object data) {
this.data = data;
return this;
}
/**
* Get data
* @return data
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_DATA, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Object getData() {
return data;
}
@JsonProperty(value = JSON_PROPERTY_DATA, required = false)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setData(@javax.annotation.Nullable Object data) {
this.data = data;
}
/**
* Return true if this submission object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Submission submission = (Submission) o;
return Objects.equals(this.batchId, submission.batchId) &&
Objects.equals(this.dataRequests, submission.dataRequests) &&
Objects.equals(this.editable, submission.editable) &&
Objects.equals(this.expired, submission.expired) &&
Objects.equals(this.expiresAt, submission.expiresAt) &&
Objects.equals(this.id, submission.id) &&
Objects.equals(this.jsonSchemaErrors, submission.jsonSchemaErrors) &&
Objects.equals(this.metadata, submission.metadata) &&
Objects.equals(this.password, submission.password) &&
Objects.equals(this.processedAt, submission.processedAt) &&
Objects.equals(this.state, submission.state) &&
Objects.equals(this.templateId, submission.templateId) &&
Objects.equals(this.templateType, submission.templateType) &&