2424 SyntheticsDowntimeTimeSlotRecurrenceResponse .JSON_PROPERTY_FREQUENCY ,
2525 SyntheticsDowntimeTimeSlotRecurrenceResponse .JSON_PROPERTY_INTERVAL ,
2626 SyntheticsDowntimeTimeSlotRecurrenceResponse .JSON_PROPERTY_UNTIL ,
27+ SyntheticsDowntimeTimeSlotRecurrenceResponse .JSON_PROPERTY_WEEKDAY_POSITIONS ,
2728 SyntheticsDowntimeTimeSlotRecurrenceResponse .JSON_PROPERTY_WEEKDAYS
2829})
2930@ jakarta .annotation .Generated (
@@ -39,6 +40,9 @@ public class SyntheticsDowntimeTimeSlotRecurrenceResponse {
3940 public static final String JSON_PROPERTY_UNTIL = "until" ;
4041 private SyntheticsDowntimeTimeSlotDate until ;
4142
43+ public static final String JSON_PROPERTY_WEEKDAY_POSITIONS = "weekdayPositions" ;
44+ private List <SyntheticsDowntimeWeekdayPosition > weekdayPositions = null ;
45+
4246 public static final String JSON_PROPERTY_WEEKDAYS = "weekdays" ;
4347 private List <SyntheticsDowntimeWeekday > weekdays = new ArrayList <>();
4448
@@ -124,6 +128,40 @@ public void setUntil(SyntheticsDowntimeTimeSlotDate until) {
124128 this .until = until ;
125129 }
126130
131+ public SyntheticsDowntimeTimeSlotRecurrenceResponse weekdayPositions (
132+ List <SyntheticsDowntimeWeekdayPosition > weekdayPositions ) {
133+ this .weekdayPositions = weekdayPositions ;
134+ return this ;
135+ }
136+
137+ public SyntheticsDowntimeTimeSlotRecurrenceResponse addWeekdayPositionsItem (
138+ SyntheticsDowntimeWeekdayPosition weekdayPositionsItem ) {
139+ if (this .weekdayPositions == null ) {
140+ this .weekdayPositions = new ArrayList <>();
141+ }
142+ this .weekdayPositions .add (weekdayPositionsItem );
143+ this .unparsed |= !weekdayPositionsItem .isValid ();
144+ return this ;
145+ }
146+
147+ /**
148+ * Positions of the weekdays within a month for a monthly Synthetics downtime recurrence. Used in
149+ * combination with <code>weekdays</code> to schedule occurrences such as "the first Monday of the
150+ * month".
151+ *
152+ * @return weekdayPositions
153+ */
154+ @ jakarta .annotation .Nullable
155+ @ JsonProperty (JSON_PROPERTY_WEEKDAY_POSITIONS )
156+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
157+ public List <SyntheticsDowntimeWeekdayPosition > getWeekdayPositions () {
158+ return weekdayPositions ;
159+ }
160+
161+ public void setWeekdayPositions (List <SyntheticsDowntimeWeekdayPosition > weekdayPositions ) {
162+ this .weekdayPositions = weekdayPositions ;
163+ }
164+
127165 public SyntheticsDowntimeTimeSlotRecurrenceResponse weekdays (
128166 List <SyntheticsDowntimeWeekday > weekdays ) {
129167 this .weekdays = weekdays ;
@@ -213,6 +251,8 @@ public boolean equals(Object o) {
213251 return Objects .equals (this .frequency , syntheticsDowntimeTimeSlotRecurrenceResponse .frequency )
214252 && Objects .equals (this .interval , syntheticsDowntimeTimeSlotRecurrenceResponse .interval )
215253 && Objects .equals (this .until , syntheticsDowntimeTimeSlotRecurrenceResponse .until )
254+ && Objects .equals (
255+ this .weekdayPositions , syntheticsDowntimeTimeSlotRecurrenceResponse .weekdayPositions )
216256 && Objects .equals (this .weekdays , syntheticsDowntimeTimeSlotRecurrenceResponse .weekdays )
217257 && Objects .equals (
218258 this .additionalProperties ,
@@ -221,7 +261,8 @@ public boolean equals(Object o) {
221261
222262 @ Override
223263 public int hashCode () {
224- return Objects .hash (frequency , interval , until , weekdays , additionalProperties );
264+ return Objects .hash (
265+ frequency , interval , until , weekdayPositions , weekdays , additionalProperties );
225266 }
226267
227268 @ Override
@@ -231,6 +272,7 @@ public String toString() {
231272 sb .append (" frequency: " ).append (toIndentedString (frequency )).append ("\n " );
232273 sb .append (" interval: " ).append (toIndentedString (interval )).append ("\n " );
233274 sb .append (" until: " ).append (toIndentedString (until )).append ("\n " );
275+ sb .append (" weekdayPositions: " ).append (toIndentedString (weekdayPositions )).append ("\n " );
234276 sb .append (" weekdays: " ).append (toIndentedString (weekdays )).append ("\n " );
235277 sb .append (" additionalProperties: " )
236278 .append (toIndentedString (additionalProperties ))
0 commit comments