26
26
ChangeWidgetRequest .JSON_PROPERTY_EVENT_QUERY ,
27
27
ChangeWidgetRequest .JSON_PROPERTY_FORMULAS ,
28
28
ChangeWidgetRequest .JSON_PROPERTY_INCREASE_GOOD ,
29
+ ChangeWidgetRequest .JSON_PROPERTY_LIMIT ,
29
30
ChangeWidgetRequest .JSON_PROPERTY_LOG_QUERY ,
30
31
ChangeWidgetRequest .JSON_PROPERTY_NETWORK_QUERY ,
31
32
ChangeWidgetRequest .JSON_PROPERTY_ORDER_BY ,
@@ -61,6 +62,9 @@ public class ChangeWidgetRequest {
61
62
public static final String JSON_PROPERTY_INCREASE_GOOD = "increase_good" ;
62
63
private Boolean increaseGood ;
63
64
65
+ public static final String JSON_PROPERTY_LIMIT = "limit" ;
66
+ private Long limit ;
67
+
64
68
public static final String JSON_PROPERTY_LOG_QUERY = "log_query" ;
65
69
private LogQueryDefinition logQuery ;
66
70
@@ -245,6 +249,27 @@ public void setIncreaseGood(Boolean increaseGood) {
245
249
this .increaseGood = increaseGood ;
246
250
}
247
251
252
+ public ChangeWidgetRequest limit (Long limit ) {
253
+ this .limit = limit ;
254
+ return this ;
255
+ }
256
+
257
+ /**
258
+ * The number of items to show.
259
+ *
260
+ * @return limit
261
+ */
262
+ @ jakarta .annotation .Nullable
263
+ @ JsonProperty (JSON_PROPERTY_LIMIT )
264
+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
265
+ public Long getLimit () {
266
+ return limit ;
267
+ }
268
+
269
+ public void setLimit (Long limit ) {
270
+ this .limit = limit ;
271
+ }
272
+
248
273
public ChangeWidgetRequest logQuery (LogQueryDefinition logQuery ) {
249
274
this .logQuery = logQuery ;
250
275
this .unparsed |= logQuery .unparsed ;
@@ -590,6 +615,7 @@ public boolean equals(Object o) {
590
615
&& Objects .equals (this .eventQuery , changeWidgetRequest .eventQuery )
591
616
&& Objects .equals (this .formulas , changeWidgetRequest .formulas )
592
617
&& Objects .equals (this .increaseGood , changeWidgetRequest .increaseGood )
618
+ && Objects .equals (this .limit , changeWidgetRequest .limit )
593
619
&& Objects .equals (this .logQuery , changeWidgetRequest .logQuery )
594
620
&& Objects .equals (this .networkQuery , changeWidgetRequest .networkQuery )
595
621
&& Objects .equals (this .orderBy , changeWidgetRequest .orderBy )
@@ -614,6 +640,7 @@ public int hashCode() {
614
640
eventQuery ,
615
641
formulas ,
616
642
increaseGood ,
643
+ limit ,
617
644
logQuery ,
618
645
networkQuery ,
619
646
orderBy ,
@@ -639,6 +666,7 @@ public String toString() {
639
666
sb .append (" eventQuery: " ).append (toIndentedString (eventQuery )).append ("\n " );
640
667
sb .append (" formulas: " ).append (toIndentedString (formulas )).append ("\n " );
641
668
sb .append (" increaseGood: " ).append (toIndentedString (increaseGood )).append ("\n " );
669
+ sb .append (" limit: " ).append (toIndentedString (limit )).append ("\n " );
642
670
sb .append (" logQuery: " ).append (toIndentedString (logQuery )).append ("\n " );
643
671
sb .append (" networkQuery: " ).append (toIndentedString (networkQuery )).append ("\n " );
644
672
sb .append (" orderBy: " ).append (toIndentedString (orderBy )).append ("\n " );
0 commit comments