2424@ JsonPropertyOrder ({
2525 SLOCorrectionCreateRequestAttributes .JSON_PROPERTY_CATEGORY ,
2626 SLOCorrectionCreateRequestAttributes .JSON_PROPERTY_DESCRIPTION ,
27+ SLOCorrectionCreateRequestAttributes .JSON_PROPERTY_DURATION ,
2728 SLOCorrectionCreateRequestAttributes .JSON_PROPERTY_END ,
29+ SLOCorrectionCreateRequestAttributes .JSON_PROPERTY_RRULE ,
2830 SLOCorrectionCreateRequestAttributes .JSON_PROPERTY_SLO_ID ,
2931 SLOCorrectionCreateRequestAttributes .JSON_PROPERTY_START ,
3032 SLOCorrectionCreateRequestAttributes .JSON_PROPERTY_TIMEZONE
@@ -38,9 +40,15 @@ public class SLOCorrectionCreateRequestAttributes {
3840 public static final String JSON_PROPERTY_DESCRIPTION = "description" ;
3941 private String description ;
4042
43+ public static final String JSON_PROPERTY_DURATION = "duration" ;
44+ private Long duration ;
45+
4146 public static final String JSON_PROPERTY_END = "end" ;
4247 private Long end ;
4348
49+ public static final String JSON_PROPERTY_RRULE = "rrule" ;
50+ private String rrule ;
51+
4452 public static final String JSON_PROPERTY_SLO_ID = "slo_id" ;
4553 private String sloId ;
4654
@@ -55,12 +63,10 @@ public SLOCorrectionCreateRequestAttributes() {}
5563 @ JsonCreator
5664 public SLOCorrectionCreateRequestAttributes (
5765 @ JsonProperty (required = true , value = JSON_PROPERTY_CATEGORY ) SLOCorrectionCategory category ,
58- @ JsonProperty (required = true , value = JSON_PROPERTY_END ) Long end ,
5966 @ JsonProperty (required = true , value = JSON_PROPERTY_SLO_ID ) String sloId ,
6067 @ JsonProperty (required = true , value = JSON_PROPERTY_START ) Long start ) {
6168 this .category = category ;
6269 this .unparsed |= !category .isValid ();
63- this .end = end ;
6470 this .sloId = sloId ;
6571 this .start = start ;
6672 }
@@ -112,6 +118,30 @@ public void setDescription(String description) {
112118 this .description = description ;
113119 }
114120
121+ public SLOCorrectionCreateRequestAttributes duration (Long duration ) {
122+ this .duration = duration ;
123+ return this ;
124+ }
125+
126+ /**
127+ * Length of time (in seconds) for a specified `rrule` recurring SLO correction.
128+ *
129+ * @return duration
130+ */
131+ @ javax .annotation .Nullable
132+ @ ApiModelProperty (
133+ example = "1600000000" ,
134+ value = "Length of time (in seconds) for a specified `rrule` recurring SLO correction." )
135+ @ JsonProperty (JSON_PROPERTY_DURATION )
136+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
137+ public Long getDuration () {
138+ return duration ;
139+ }
140+
141+ public void setDuration (Long duration ) {
142+ this .duration = duration ;
143+ }
144+
115145 public SLOCorrectionCreateRequestAttributes end (Long end ) {
116146 this .end = end ;
117147 return this ;
@@ -122,12 +152,12 @@ public SLOCorrectionCreateRequestAttributes end(Long end) {
122152 *
123153 * @return end
124154 */
155+ @ javax .annotation .Nullable
125156 @ ApiModelProperty (
126157 example = "1600000000" ,
127- required = true ,
128158 value = "Ending time of the correction in epoch seconds." )
129159 @ JsonProperty (JSON_PROPERTY_END )
130- @ JsonInclude (value = JsonInclude .Include .ALWAYS )
160+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
131161 public Long getEnd () {
132162 return end ;
133163 }
@@ -136,6 +166,30 @@ public void setEnd(Long end) {
136166 this .end = end ;
137167 }
138168
169+ public SLOCorrectionCreateRequestAttributes rrule (String rrule ) {
170+ this .rrule = rrule ;
171+ return this ;
172+ }
173+
174+ /**
175+ * Recurrence rules as defined in the iCalendar RFC 5545.
176+ *
177+ * @return rrule
178+ */
179+ @ javax .annotation .Nullable
180+ @ ApiModelProperty (
181+ example = "RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5" ,
182+ value = "Recurrence rules as defined in the iCalendar RFC 5545." )
183+ @ JsonProperty (JSON_PROPERTY_RRULE )
184+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
185+ public String getRrule () {
186+ return rrule ;
187+ }
188+
189+ public void setRrule (String rrule ) {
190+ this .rrule = rrule ;
191+ }
192+
139193 public SLOCorrectionCreateRequestAttributes sloId (String sloId ) {
140194 this .sloId = sloId ;
141195 return this ;
@@ -221,15 +275,17 @@ public boolean equals(Object o) {
221275 (SLOCorrectionCreateRequestAttributes ) o ;
222276 return Objects .equals (this .category , slOCorrectionCreateRequestAttributes .category )
223277 && Objects .equals (this .description , slOCorrectionCreateRequestAttributes .description )
278+ && Objects .equals (this .duration , slOCorrectionCreateRequestAttributes .duration )
224279 && Objects .equals (this .end , slOCorrectionCreateRequestAttributes .end )
280+ && Objects .equals (this .rrule , slOCorrectionCreateRequestAttributes .rrule )
225281 && Objects .equals (this .sloId , slOCorrectionCreateRequestAttributes .sloId )
226282 && Objects .equals (this .start , slOCorrectionCreateRequestAttributes .start )
227283 && Objects .equals (this .timezone , slOCorrectionCreateRequestAttributes .timezone );
228284 }
229285
230286 @ Override
231287 public int hashCode () {
232- return Objects .hash (category , description , end , sloId , start , timezone );
288+ return Objects .hash (category , description , duration , end , rrule , sloId , start , timezone );
233289 }
234290
235291 @ Override
@@ -238,7 +294,9 @@ public String toString() {
238294 sb .append ("class SLOCorrectionCreateRequestAttributes {\n " );
239295 sb .append (" category: " ).append (toIndentedString (category )).append ("\n " );
240296 sb .append (" description: " ).append (toIndentedString (description )).append ("\n " );
297+ sb .append (" duration: " ).append (toIndentedString (duration )).append ("\n " );
241298 sb .append (" end: " ).append (toIndentedString (end )).append ("\n " );
299+ sb .append (" rrule: " ).append (toIndentedString (rrule )).append ("\n " );
242300 sb .append (" sloId: " ).append (toIndentedString (sloId )).append ("\n " );
243301 sb .append (" start: " ).append (toIndentedString (start )).append ("\n " );
244302 sb .append (" timezone: " ).append (toIndentedString (timezone )).append ("\n " );
0 commit comments