1717import io .swagger .annotations .ApiModel ;
1818import io .swagger .annotations .ApiModelProperty ;
1919import java .util .Objects ;
20+ import org .openapitools .jackson .nullable .JsonNullable ;
2021
2122/** The attribute object associated with the SLO correction. */
2223@ ApiModel (description = "The attribute object associated with the SLO correction." )
@@ -44,13 +45,13 @@ public class SLOCorrectionResponseAttributes {
4445 private String description ;
4546
4647 public static final String JSON_PROPERTY_DURATION = "duration" ;
47- private Long duration ;
48+ private JsonNullable < Long > duration = JsonNullable .< Long > undefined () ;
4849
4950 public static final String JSON_PROPERTY_END = "end" ;
5051 private Long end ;
5152
5253 public static final String JSON_PROPERTY_RRULE = "rrule" ;
53- private String rrule ;
54+ private JsonNullable < String > rrule = JsonNullable .< String > undefined () ;
5455
5556 public static final String JSON_PROPERTY_SLO_ID = "slo_id" ;
5657 private String sloId ;
@@ -133,7 +134,7 @@ public void setDescription(String description) {
133134 }
134135
135136 public SLOCorrectionResponseAttributes duration (Long duration ) {
136- this .duration = duration ;
137+ this .duration = JsonNullable .< Long > of ( duration ) ;
137138 return this ;
138139 }
139140
@@ -146,16 +147,26 @@ public SLOCorrectionResponseAttributes duration(Long duration) {
146147 @ ApiModelProperty (
147148 example = "3600" ,
148149 value = "Length of time (in seconds) for a specified `rrule` recurring SLO correction." )
150+ @ JsonIgnore
151+ public Long getDuration () {
152+ return duration .orElse (null );
153+ }
154+
149155 @ JsonProperty (JSON_PROPERTY_DURATION )
150156 @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
151- public Long getDuration () {
157+ public JsonNullable < Long > getDuration_JsonNullable () {
152158 return duration ;
153159 }
154160
155- public void setDuration (Long duration ) {
161+ @ JsonProperty (JSON_PROPERTY_DURATION )
162+ public void setDuration_JsonNullable (JsonNullable <Long > duration ) {
156163 this .duration = duration ;
157164 }
158165
166+ public void setDuration (Long duration ) {
167+ this .duration = JsonNullable .<Long >of (duration );
168+ }
169+
159170 public SLOCorrectionResponseAttributes end (Long end ) {
160171 this .end = end ;
161172 return this ;
@@ -179,7 +190,7 @@ public void setEnd(Long end) {
179190 }
180191
181192 public SLOCorrectionResponseAttributes rrule (String rrule ) {
182- this .rrule = rrule ;
193+ this .rrule = JsonNullable .< String > of ( rrule ) ;
183194 return this ;
184195 }
185196
@@ -192,16 +203,26 @@ public SLOCorrectionResponseAttributes rrule(String rrule) {
192203 @ ApiModelProperty (
193204 example = "RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5" ,
194205 value = "Recurrence rules as defined in the iCalendar RFC 5545." )
206+ @ JsonIgnore
207+ public String getRrule () {
208+ return rrule .orElse (null );
209+ }
210+
195211 @ JsonProperty (JSON_PROPERTY_RRULE )
196212 @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
197- public String getRrule () {
213+ public JsonNullable < String > getRrule_JsonNullable () {
198214 return rrule ;
199215 }
200216
201- public void setRrule (String rrule ) {
217+ @ JsonProperty (JSON_PROPERTY_RRULE )
218+ public void setRrule_JsonNullable (JsonNullable <String > rrule ) {
202219 this .rrule = rrule ;
203220 }
204221
222+ public void setRrule (String rrule ) {
223+ this .rrule = JsonNullable .<String >of (rrule );
224+ }
225+
205226 public SLOCorrectionResponseAttributes sloId (String sloId ) {
206227 this .sloId = sloId ;
207228 return this ;
0 commit comments