Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65679,6 +65679,9 @@ components:
MaintenanceDataAttributes:
description: The attributes of a maintenance.
properties:
canceled_description:
description: The description shown when the maintenance is canceled.
type: string
completed_date:
description: Timestamp of when the maintenance was completed.
format: date-time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

/** The attributes of a maintenance. */
@JsonPropertyOrder({
MaintenanceDataAttributes.JSON_PROPERTY_CANCELED_DESCRIPTION,
MaintenanceDataAttributes.JSON_PROPERTY_COMPLETED_DATE,
MaintenanceDataAttributes.JSON_PROPERTY_COMPLETED_DESCRIPTION,
MaintenanceDataAttributes.JSON_PROPERTY_COMPONENTS_AFFECTED,
Expand All @@ -38,6 +39,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class MaintenanceDataAttributes {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_CANCELED_DESCRIPTION = "canceled_description";
private String canceledDescription;

public static final String JSON_PROPERTY_COMPLETED_DATE = "completed_date";
private OffsetDateTime completedDate;

Expand Down Expand Up @@ -74,6 +78,27 @@ public class MaintenanceDataAttributes {
public static final String JSON_PROPERTY_UPDATES = "updates";
private List<MaintenanceDataAttributesUpdatesItems> updates = null;

public MaintenanceDataAttributes canceledDescription(String canceledDescription) {
this.canceledDescription = canceledDescription;
return this;
}

/**
* The description shown when the maintenance is canceled.
*
* @return canceledDescription
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CANCELED_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCanceledDescription() {
return canceledDescription;
}

public void setCanceledDescription(String canceledDescription) {
this.canceledDescription = canceledDescription;
}

public MaintenanceDataAttributes completedDate(OffsetDateTime completedDate) {
this.completedDate = completedDate;
return this;
Expand Down Expand Up @@ -428,7 +453,8 @@ public boolean equals(Object o) {
return false;
}
MaintenanceDataAttributes maintenanceDataAttributes = (MaintenanceDataAttributes) o;
return Objects.equals(this.completedDate, maintenanceDataAttributes.completedDate)
return Objects.equals(this.canceledDescription, maintenanceDataAttributes.canceledDescription)
&& Objects.equals(this.completedDate, maintenanceDataAttributes.completedDate)
&& Objects.equals(this.completedDescription, maintenanceDataAttributes.completedDescription)
&& Objects.equals(this.componentsAffected, maintenanceDataAttributes.componentsAffected)
&& Objects.equals(
Expand All @@ -448,6 +474,7 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
canceledDescription,
completedDate,
completedDescription,
componentsAffected,
Expand All @@ -467,6 +494,9 @@ public int hashCode() {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MaintenanceDataAttributes {\n");
sb.append(" canceledDescription: ")
.append(toIndentedString(canceledDescription))
.append("\n");
sb.append(" completedDate: ").append(toIndentedString(completedDate)).append("\n");
sb.append(" completedDescription: ")
.append(toIndentedString(completedDescription))
Expand Down
Loading