2323package com .aspose .asposecloudpdfandroid .model ;
2424
2525import java .util .Objects ;
26- import com .aspose .asposecloudpdfandroid .model .Color ;
26+ import com .aspose .asposecloudpdfandroid .model .AnnotationFlags ;
27+ import com .aspose .asposecloudpdfandroid .model .HorizontalAlignment ;
2728import com .aspose .asposecloudpdfandroid .model .Link ;
2829import com .aspose .asposecloudpdfandroid .model .LinkElement ;
30+ import com .aspose .asposecloudpdfandroid .model .RectanglePdf ;
31+ import com .aspose .asposecloudpdfandroid .model .VerticalAlignment ;
2932import com .google .gson .TypeAdapter ;
3033import com .google .gson .annotations .JsonAdapter ;
3134import com .google .gson .annotations .SerializedName ;
3437import io .swagger .annotations .ApiModel ;
3538import io .swagger .annotations .ApiModelProperty ;
3639import java .io .IOException ;
40+ import java .util .ArrayList ;
3741import java .util .List ;
3842
3943/**
4246@ ApiModel (description = "Provides annotation." )
4347
4448public class Annotation extends LinkElement {
45- @ SerializedName ("Color" )
46- private Color color = null ;
47-
4849 @ SerializedName ("Contents" )
4950 private String contents = null ;
5051
@@ -60,23 +61,29 @@ public class Annotation extends LinkElement {
6061 @ SerializedName ("Modified" )
6162 private String modified = null ;
6263
63- public Annotation color (Color color ) {
64- this .color = color ;
65- return this ;
66- }
64+ @ SerializedName ("Id" )
65+ private String id = null ;
6766
68- /**
69- * Get the annotation color.
70- * @return color
71- **/
72- @ ApiModelProperty (value = "Get the annotation color." )
73- public Color getColor () {
74- return color ;
75- }
67+ @ SerializedName ("Flags" )
68+ private List <AnnotationFlags > flags = null ;
7669
77- public void setColor (Color color ) {
78- this .color = color ;
79- }
70+ @ SerializedName ("Name" )
71+ private String name = null ;
72+
73+ @ SerializedName ("Rect" )
74+ private RectanglePdf rect = null ;
75+
76+ @ SerializedName ("PageIndex" )
77+ private Integer pageIndex = null ;
78+
79+ @ SerializedName ("ZIndex" )
80+ private Integer zindex = null ;
81+
82+ @ SerializedName ("HorizontalAlignment" )
83+ private HorizontalAlignment horizontalAlignment = null ;
84+
85+ @ SerializedName ("VerticalAlignment" )
86+ private VerticalAlignment verticalAlignment = null ;
8087
8188 public Annotation contents (String contents ) {
8289 this .contents = contents ;
@@ -168,6 +175,158 @@ public void setModified(String modified) {
168175 this .modified = modified ;
169176 }
170177
178+ public Annotation id (String id ) {
179+ this .id = id ;
180+ return this ;
181+ }
182+
183+ /**
184+ * Gets ID of the annotation.
185+ * @return id
186+ **/
187+ @ ApiModelProperty (value = "Gets ID of the annotation." )
188+ public String getId () {
189+ return id ;
190+ }
191+
192+ public void setId (String id ) {
193+ this .id = id ;
194+ }
195+
196+ public Annotation flags (List <AnnotationFlags > flags ) {
197+ this .flags = flags ;
198+ return this ;
199+ }
200+
201+ public Annotation addFlagsItem (AnnotationFlags flagsItem ) {
202+ if (this .flags == null ) {
203+ this .flags = new ArrayList <AnnotationFlags >();
204+ }
205+ this .flags .add (flagsItem );
206+ return this ;
207+ }
208+
209+ /**
210+ * Gets Flags of the annotation.
211+ * @return flags
212+ **/
213+ @ ApiModelProperty (value = "Gets Flags of the annotation." )
214+ public List <AnnotationFlags > getFlags () {
215+ return flags ;
216+ }
217+
218+ public void setFlags (List <AnnotationFlags > flags ) {
219+ this .flags = flags ;
220+ }
221+
222+ public Annotation name (String name ) {
223+ this .name = name ;
224+ return this ;
225+ }
226+
227+ /**
228+ * Gets Name of the annotation.
229+ * @return name
230+ **/
231+ @ ApiModelProperty (value = "Gets Name of the annotation." )
232+ public String getName () {
233+ return name ;
234+ }
235+
236+ public void setName (String name ) {
237+ this .name = name ;
238+ }
239+
240+ public Annotation rect (RectanglePdf rect ) {
241+ this .rect = rect ;
242+ return this ;
243+ }
244+
245+ /**
246+ * Gets Rect of the annotation.
247+ * @return rect
248+ **/
249+ @ ApiModelProperty (value = "Gets Rect of the annotation." )
250+ public RectanglePdf getRect () {
251+ return rect ;
252+ }
253+
254+ public void setRect (RectanglePdf rect ) {
255+ this .rect = rect ;
256+ }
257+
258+ public Annotation pageIndex (Integer pageIndex ) {
259+ this .pageIndex = pageIndex ;
260+ return this ;
261+ }
262+
263+ /**
264+ * Gets PageIndex of the annotation.
265+ * @return pageIndex
266+ **/
267+ @ ApiModelProperty (value = "Gets PageIndex of the annotation." )
268+ public Integer getPageIndex () {
269+ return pageIndex ;
270+ }
271+
272+ public void setPageIndex (Integer pageIndex ) {
273+ this .pageIndex = pageIndex ;
274+ }
275+
276+ public Annotation zindex (Integer zindex ) {
277+ this .zindex = zindex ;
278+ return this ;
279+ }
280+
281+ /**
282+ * Gets ZIndex of the annotation.
283+ * @return zindex
284+ **/
285+ @ ApiModelProperty (value = "Gets ZIndex of the annotation." )
286+ public Integer getZindex () {
287+ return zindex ;
288+ }
289+
290+ public void setZindex (Integer zindex ) {
291+ this .zindex = zindex ;
292+ }
293+
294+ public Annotation horizontalAlignment (HorizontalAlignment horizontalAlignment ) {
295+ this .horizontalAlignment = horizontalAlignment ;
296+ return this ;
297+ }
298+
299+ /**
300+ * Gets HorizontalAlignment of the annotation.
301+ * @return horizontalAlignment
302+ **/
303+ @ ApiModelProperty (value = "Gets HorizontalAlignment of the annotation." )
304+ public HorizontalAlignment getHorizontalAlignment () {
305+ return horizontalAlignment ;
306+ }
307+
308+ public void setHorizontalAlignment (HorizontalAlignment horizontalAlignment ) {
309+ this .horizontalAlignment = horizontalAlignment ;
310+ }
311+
312+ public Annotation verticalAlignment (VerticalAlignment verticalAlignment ) {
313+ this .verticalAlignment = verticalAlignment ;
314+ return this ;
315+ }
316+
317+ /**
318+ * Gets VerticalAlignment of the annotation.
319+ * @return verticalAlignment
320+ **/
321+ @ ApiModelProperty (value = "Gets VerticalAlignment of the annotation." )
322+ public VerticalAlignment getVerticalAlignment () {
323+ return verticalAlignment ;
324+ }
325+
326+ public void setVerticalAlignment (VerticalAlignment verticalAlignment ) {
327+ this .verticalAlignment = verticalAlignment ;
328+ }
329+
171330
172331 @ Override
173332 public boolean equals (java .lang .Object o ) {
@@ -178,18 +337,25 @@ public boolean equals(java.lang.Object o) {
178337 return false ;
179338 }
180339 Annotation annotation = (Annotation ) o ;
181- return Objects .equals (this .color , annotation .color ) &&
182- Objects .equals (this .contents , annotation .contents ) &&
340+ return Objects .equals (this .contents , annotation .contents ) &&
183341 Objects .equals (this .creationDate , annotation .creationDate ) &&
184342 Objects .equals (this .subject , annotation .subject ) &&
185343 Objects .equals (this .title , annotation .title ) &&
186344 Objects .equals (this .modified , annotation .modified ) &&
345+ Objects .equals (this .id , annotation .id ) &&
346+ Objects .equals (this .flags , annotation .flags ) &&
347+ Objects .equals (this .name , annotation .name ) &&
348+ Objects .equals (this .rect , annotation .rect ) &&
349+ Objects .equals (this .pageIndex , annotation .pageIndex ) &&
350+ Objects .equals (this .zindex , annotation .zindex ) &&
351+ Objects .equals (this .horizontalAlignment , annotation .horizontalAlignment ) &&
352+ Objects .equals (this .verticalAlignment , annotation .verticalAlignment ) &&
187353 super .equals (o );
188354 }
189355
190356 @ Override
191357 public int hashCode () {
192- return Objects .hash (color , contents , creationDate , subject , title , modified , super .hashCode ());
358+ return Objects .hash (contents , creationDate , subject , title , modified , id , flags , name , rect , pageIndex , zindex , horizontalAlignment , verticalAlignment , super .hashCode ());
193359 }
194360
195361
@@ -198,12 +364,19 @@ public String toString() {
198364 StringBuilder sb = new StringBuilder ();
199365 sb .append ("class Annotation {\n " );
200366 sb .append (" " ).append (toIndentedString (super .toString ())).append ("\n " );
201- sb .append (" color: " ).append (toIndentedString (color )).append ("\n " );
202367 sb .append (" contents: " ).append (toIndentedString (contents )).append ("\n " );
203368 sb .append (" creationDate: " ).append (toIndentedString (creationDate )).append ("\n " );
204369 sb .append (" subject: " ).append (toIndentedString (subject )).append ("\n " );
205370 sb .append (" title: " ).append (toIndentedString (title )).append ("\n " );
206371 sb .append (" modified: " ).append (toIndentedString (modified )).append ("\n " );
372+ sb .append (" id: " ).append (toIndentedString (id )).append ("\n " );
373+ sb .append (" flags: " ).append (toIndentedString (flags )).append ("\n " );
374+ sb .append (" name: " ).append (toIndentedString (name )).append ("\n " );
375+ sb .append (" rect: " ).append (toIndentedString (rect )).append ("\n " );
376+ sb .append (" pageIndex: " ).append (toIndentedString (pageIndex )).append ("\n " );
377+ sb .append (" zindex: " ).append (toIndentedString (zindex )).append ("\n " );
378+ sb .append (" horizontalAlignment: " ).append (toIndentedString (horizontalAlignment )).append ("\n " );
379+ sb .append (" verticalAlignment: " ).append (toIndentedString (verticalAlignment )).append ("\n " );
207380 sb .append ("}" );
208381 return sb .toString ();
209382 }
0 commit comments