23
23
package com .aspose .asposecloudpdf .model ;
24
24
25
25
import java .util .Objects ;
26
+ import com .aspose .asposecloudpdf .model .Color ;
27
+ import com .aspose .asposecloudpdf .model .Rotation ;
28
+ import com .aspose .asposecloudpdf .model .SignatureSubjectNameElements ;
26
29
import com .google .gson .TypeAdapter ;
27
30
import com .google .gson .annotations .JsonAdapter ;
28
31
import com .google .gson .annotations .SerializedName ;
31
34
import io .swagger .annotations .ApiModel ;
32
35
import io .swagger .annotations .ApiModelProperty ;
33
36
import java .io .IOException ;
37
+ import java .util .ArrayList ;
38
+ import java .util .List ;
34
39
35
40
/**
36
41
* An abstract class which represents signature custom appearance object.
@@ -44,6 +49,9 @@ public class SignatureCustomAppearance {
44
49
@ SerializedName ("FontSize" )
45
50
private Double fontSize = null ;
46
51
52
+ @ SerializedName ("Rotation" )
53
+ private Rotation rotation = null ;
54
+
47
55
@ SerializedName ("ShowContactInfo" )
48
56
private Boolean showContactInfo = null ;
49
57
@@ -74,6 +82,18 @@ public class SignatureCustomAppearance {
74
82
@ SerializedName ("DateTimeFormat" )
75
83
private String dateTimeFormat = null ;
76
84
85
+ @ SerializedName ("BackgroundColor" )
86
+ private Color backgroundColor = null ;
87
+
88
+ @ SerializedName ("ForegroundColor" )
89
+ private Color foregroundColor = null ;
90
+
91
+ @ SerializedName ("UseDigitalSubjectFormat" )
92
+ private Boolean useDigitalSubjectFormat = null ;
93
+
94
+ @ SerializedName ("DigitalSubjectFormat" )
95
+ private List <SignatureSubjectNameElements > digitalSubjectFormat = null ;
96
+
77
97
public SignatureCustomAppearance fontFamilyName (String fontFamilyName ) {
78
98
this .fontFamilyName = fontFamilyName ;
79
99
return this ;
@@ -101,7 +121,7 @@ public SignatureCustomAppearance fontSize(Double fontSize) {
101
121
* Gets/sets font size. Default value: 10.
102
122
* @return fontSize
103
123
**/
104
- @ ApiModelProperty (required = true , value = "Gets/sets font size. Default value: 10." )
124
+ @ ApiModelProperty (value = "Gets/sets font size. Default value: 10." )
105
125
public Double getFontSize () {
106
126
return fontSize ;
107
127
}
@@ -110,6 +130,24 @@ public void setFontSize(Double fontSize) {
110
130
this .fontSize = fontSize ;
111
131
}
112
132
133
+ public SignatureCustomAppearance rotation (Rotation rotation ) {
134
+ this .rotation = rotation ;
135
+ return this ;
136
+ }
137
+
138
+ /**
139
+ * Gets or sets signature rotation.
140
+ * @return rotation
141
+ **/
142
+ @ ApiModelProperty (required = true , value = "Gets or sets signature rotation." )
143
+ public Rotation getRotation () {
144
+ return rotation ;
145
+ }
146
+
147
+ public void setRotation (Rotation rotation ) {
148
+ this .rotation = rotation ;
149
+ }
150
+
113
151
public SignatureCustomAppearance showContactInfo (Boolean showContactInfo ) {
114
152
this .showContactInfo = showContactInfo ;
115
153
return this ;
@@ -290,6 +328,86 @@ public void setDateTimeFormat(String dateTimeFormat) {
290
328
this .dateTimeFormat = dateTimeFormat ;
291
329
}
292
330
331
+ public SignatureCustomAppearance backgroundColor (Color backgroundColor ) {
332
+ this .backgroundColor = backgroundColor ;
333
+ return this ;
334
+ }
335
+
336
+ /**
337
+ * Gets/sets background color.
338
+ * @return backgroundColor
339
+ **/
340
+ @ ApiModelProperty (value = "Gets/sets background color." )
341
+ public Color getBackgroundColor () {
342
+ return backgroundColor ;
343
+ }
344
+
345
+ public void setBackgroundColor (Color backgroundColor ) {
346
+ this .backgroundColor = backgroundColor ;
347
+ }
348
+
349
+ public SignatureCustomAppearance foregroundColor (Color foregroundColor ) {
350
+ this .foregroundColor = foregroundColor ;
351
+ return this ;
352
+ }
353
+
354
+ /**
355
+ * Gets/sets foreground color.
356
+ * @return foregroundColor
357
+ **/
358
+ @ ApiModelProperty (value = "Gets/sets foreground color." )
359
+ public Color getForegroundColor () {
360
+ return foregroundColor ;
361
+ }
362
+
363
+ public void setForegroundColor (Color foregroundColor ) {
364
+ this .foregroundColor = foregroundColor ;
365
+ }
366
+
367
+ public SignatureCustomAppearance useDigitalSubjectFormat (Boolean useDigitalSubjectFormat ) {
368
+ this .useDigitalSubjectFormat = useDigitalSubjectFormat ;
369
+ return this ;
370
+ }
371
+
372
+ /**
373
+ * Gets/sets subject format usage.
374
+ * @return useDigitalSubjectFormat
375
+ **/
376
+ @ ApiModelProperty (required = true , value = "Gets/sets subject format usage." )
377
+ public Boolean isUseDigitalSubjectFormat () {
378
+ return useDigitalSubjectFormat ;
379
+ }
380
+
381
+ public void setUseDigitalSubjectFormat (Boolean useDigitalSubjectFormat ) {
382
+ this .useDigitalSubjectFormat = useDigitalSubjectFormat ;
383
+ }
384
+
385
+ public SignatureCustomAppearance digitalSubjectFormat (List <SignatureSubjectNameElements > digitalSubjectFormat ) {
386
+ this .digitalSubjectFormat = digitalSubjectFormat ;
387
+ return this ;
388
+ }
389
+
390
+ public SignatureCustomAppearance addDigitalSubjectFormatItem (SignatureSubjectNameElements digitalSubjectFormatItem ) {
391
+ if (this .digitalSubjectFormat == null ) {
392
+ this .digitalSubjectFormat = new ArrayList <SignatureSubjectNameElements >();
393
+ }
394
+ this .digitalSubjectFormat .add (digitalSubjectFormatItem );
395
+ return this ;
396
+ }
397
+
398
+ /**
399
+ * Gets/sets subject format.
400
+ * @return digitalSubjectFormat
401
+ **/
402
+ @ ApiModelProperty (value = "Gets/sets subject format." )
403
+ public List <SignatureSubjectNameElements > getDigitalSubjectFormat () {
404
+ return digitalSubjectFormat ;
405
+ }
406
+
407
+ public void setDigitalSubjectFormat (List <SignatureSubjectNameElements > digitalSubjectFormat ) {
408
+ this .digitalSubjectFormat = digitalSubjectFormat ;
409
+ }
410
+
293
411
294
412
@ Override
295
413
public boolean equals (java .lang .Object o ) {
@@ -302,6 +420,7 @@ public boolean equals(java.lang.Object o) {
302
420
SignatureCustomAppearance signatureCustomAppearance = (SignatureCustomAppearance ) o ;
303
421
return Objects .equals (this .fontFamilyName , signatureCustomAppearance .fontFamilyName ) &&
304
422
Objects .equals (this .fontSize , signatureCustomAppearance .fontSize ) &&
423
+ Objects .equals (this .rotation , signatureCustomAppearance .rotation ) &&
305
424
Objects .equals (this .showContactInfo , signatureCustomAppearance .showContactInfo ) &&
306
425
Objects .equals (this .showReason , signatureCustomAppearance .showReason ) &&
307
426
Objects .equals (this .showLocation , signatureCustomAppearance .showLocation ) &&
@@ -311,12 +430,16 @@ public boolean equals(java.lang.Object o) {
311
430
Objects .equals (this .digitalSignedLabel , signatureCustomAppearance .digitalSignedLabel ) &&
312
431
Objects .equals (this .dateSignedAtLabel , signatureCustomAppearance .dateSignedAtLabel ) &&
313
432
Objects .equals (this .dateTimeLocalFormat , signatureCustomAppearance .dateTimeLocalFormat ) &&
314
- Objects .equals (this .dateTimeFormat , signatureCustomAppearance .dateTimeFormat );
433
+ Objects .equals (this .dateTimeFormat , signatureCustomAppearance .dateTimeFormat ) &&
434
+ Objects .equals (this .backgroundColor , signatureCustomAppearance .backgroundColor ) &&
435
+ Objects .equals (this .foregroundColor , signatureCustomAppearance .foregroundColor ) &&
436
+ Objects .equals (this .useDigitalSubjectFormat , signatureCustomAppearance .useDigitalSubjectFormat ) &&
437
+ Objects .equals (this .digitalSubjectFormat , signatureCustomAppearance .digitalSubjectFormat );
315
438
}
316
439
317
440
@ Override
318
441
public int hashCode () {
319
- return Objects .hash (fontFamilyName , fontSize , showContactInfo , showReason , showLocation , contactInfoLabel , reasonLabel , locationLabel , digitalSignedLabel , dateSignedAtLabel , dateTimeLocalFormat , dateTimeFormat );
442
+ return Objects .hash (fontFamilyName , fontSize , rotation , showContactInfo , showReason , showLocation , contactInfoLabel , reasonLabel , locationLabel , digitalSignedLabel , dateSignedAtLabel , dateTimeLocalFormat , dateTimeFormat , backgroundColor , foregroundColor , useDigitalSubjectFormat , digitalSubjectFormat );
320
443
}
321
444
322
445
@@ -327,6 +450,7 @@ public String toString() {
327
450
328
451
sb .append (" fontFamilyName: " ).append (toIndentedString (fontFamilyName )).append ("\n " );
329
452
sb .append (" fontSize: " ).append (toIndentedString (fontSize )).append ("\n " );
453
+ sb .append (" rotation: " ).append (toIndentedString (rotation )).append ("\n " );
330
454
sb .append (" showContactInfo: " ).append (toIndentedString (showContactInfo )).append ("\n " );
331
455
sb .append (" showReason: " ).append (toIndentedString (showReason )).append ("\n " );
332
456
sb .append (" showLocation: " ).append (toIndentedString (showLocation )).append ("\n " );
@@ -337,6 +461,10 @@ public String toString() {
337
461
sb .append (" dateSignedAtLabel: " ).append (toIndentedString (dateSignedAtLabel )).append ("\n " );
338
462
sb .append (" dateTimeLocalFormat: " ).append (toIndentedString (dateTimeLocalFormat )).append ("\n " );
339
463
sb .append (" dateTimeFormat: " ).append (toIndentedString (dateTimeFormat )).append ("\n " );
464
+ sb .append (" backgroundColor: " ).append (toIndentedString (backgroundColor )).append ("\n " );
465
+ sb .append (" foregroundColor: " ).append (toIndentedString (foregroundColor )).append ("\n " );
466
+ sb .append (" useDigitalSubjectFormat: " ).append (toIndentedString (useDigitalSubjectFormat )).append ("\n " );
467
+ sb .append (" digitalSubjectFormat: " ).append (toIndentedString (digitalSubjectFormat )).append ("\n " );
340
468
sb .append ("}" );
341
469
return sb .toString ();
342
470
}
0 commit comments