2121
2222/** The attributes of a maintenance. */
2323@ JsonPropertyOrder ({
24+ MaintenanceDataAttributes .JSON_PROPERTY_CANCELED_DESCRIPTION ,
2425 MaintenanceDataAttributes .JSON_PROPERTY_COMPLETED_DATE ,
2526 MaintenanceDataAttributes .JSON_PROPERTY_COMPLETED_DESCRIPTION ,
2627 MaintenanceDataAttributes .JSON_PROPERTY_COMPONENTS_AFFECTED ,
3839 value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator" )
3940public class MaintenanceDataAttributes {
4041 @ JsonIgnore public boolean unparsed = false ;
42+ public static final String JSON_PROPERTY_CANCELED_DESCRIPTION = "canceled_description" ;
43+ private String canceledDescription ;
44+
4145 public static final String JSON_PROPERTY_COMPLETED_DATE = "completed_date" ;
4246 private OffsetDateTime completedDate ;
4347
@@ -74,6 +78,27 @@ public class MaintenanceDataAttributes {
7478 public static final String JSON_PROPERTY_UPDATES = "updates" ;
7579 private List <MaintenanceDataAttributesUpdatesItems > updates = null ;
7680
81+ public MaintenanceDataAttributes canceledDescription (String canceledDescription ) {
82+ this .canceledDescription = canceledDescription ;
83+ return this ;
84+ }
85+
86+ /**
87+ * The description shown when the maintenance is canceled.
88+ *
89+ * @return canceledDescription
90+ */
91+ @ jakarta .annotation .Nullable
92+ @ JsonProperty (JSON_PROPERTY_CANCELED_DESCRIPTION )
93+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
94+ public String getCanceledDescription () {
95+ return canceledDescription ;
96+ }
97+
98+ public void setCanceledDescription (String canceledDescription ) {
99+ this .canceledDescription = canceledDescription ;
100+ }
101+
77102 public MaintenanceDataAttributes completedDate (OffsetDateTime completedDate ) {
78103 this .completedDate = completedDate ;
79104 return this ;
@@ -428,7 +453,8 @@ public boolean equals(Object o) {
428453 return false ;
429454 }
430455 MaintenanceDataAttributes maintenanceDataAttributes = (MaintenanceDataAttributes ) o ;
431- return Objects .equals (this .completedDate , maintenanceDataAttributes .completedDate )
456+ return Objects .equals (this .canceledDescription , maintenanceDataAttributes .canceledDescription )
457+ && Objects .equals (this .completedDate , maintenanceDataAttributes .completedDate )
432458 && Objects .equals (this .completedDescription , maintenanceDataAttributes .completedDescription )
433459 && Objects .equals (this .componentsAffected , maintenanceDataAttributes .componentsAffected )
434460 && Objects .equals (
@@ -448,6 +474,7 @@ public boolean equals(Object o) {
448474 @ Override
449475 public int hashCode () {
450476 return Objects .hash (
477+ canceledDescription ,
451478 completedDate ,
452479 completedDescription ,
453480 componentsAffected ,
@@ -467,6 +494,9 @@ public int hashCode() {
467494 public String toString () {
468495 StringBuilder sb = new StringBuilder ();
469496 sb .append ("class MaintenanceDataAttributes {\n " );
497+ sb .append (" canceledDescription: " )
498+ .append (toIndentedString (canceledDescription ))
499+ .append ("\n " );
470500 sb .append (" completedDate: " ).append (toIndentedString (completedDate )).append ("\n " );
471501 sb .append (" completedDescription: " )
472502 .append (toIndentedString (completedDescription ))
0 commit comments