Skip to content

Commit 85bf4be

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 38932df of spec repo
1 parent 037b591 commit 85bf4be

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65679,6 +65679,9 @@ components:
6567965679
MaintenanceDataAttributes:
6568065680
description: The attributes of a maintenance.
6568165681
properties:
65682+
canceled_description:
65683+
description: The description shown when the maintenance is canceled.
65684+
type: string
6568265685
completed_date:
6568365686
description: Timestamp of when the maintenance was completed.
6568465687
format: date-time

src/main/java/com/datadog/api/client/v2/model/MaintenanceDataAttributes.java

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
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,
@@ -38,6 +39,9 @@
3839
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
3940
public 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

Comments
 (0)