com.seeq.model.ConditionNotificationOutputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 64.3.0-v202405012032
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.seeq.model.IdentityPreviewV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
/**
* A list of condition notifications
*/
@Schema(description = "A list of condition notifications")
public class ConditionNotificationOutputV1 {
@JsonProperty("creator")
private IdentityPreviewV1 creator = null;
@JsonProperty("enabled")
private Boolean enabled = null;
@JsonProperty("id")
private UUID id = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("workbooks")
private Map workbooks = new HashMap();
public ConditionNotificationOutputV1 creator(IdentityPreviewV1 creator) {
this.creator = creator;
return this;
}
/**
* Get creator
* @return creator
**/
@Schema(description = "")
public IdentityPreviewV1 getCreator() {
return creator;
}
public void setCreator(IdentityPreviewV1 creator) {
this.creator = creator;
}
public ConditionNotificationOutputV1 enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* Whether the associated condition monitor is enabled or not
* @return enabled
**/
@Schema(required = true, description = "Whether the associated condition monitor is enabled or not")
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
public ConditionNotificationOutputV1 id(UUID id) {
this.id = id;
return this;
}
/**
* ID of the associated condition monitor
* @return id
**/
@Schema(required = true, description = "ID of the associated condition monitor")
public UUID getId() {
return id;
}
public void setId(UUID id) {
this.id = id;
}
public ConditionNotificationOutputV1 name(String name) {
this.name = name;
return this;
}
/**
* Notification name
* @return name
**/
@Schema(required = true, description = "Notification name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ConditionNotificationOutputV1 workbooks(Map workbooks) {
this.workbooks = workbooks;
return this;
}
public ConditionNotificationOutputV1 putWorkbooksItem(String key, String workbooksItem) {
this.workbooks.put(key, workbooksItem);
return this;
}
/**
* The workbooks that contain the conditions associated with the condition monitor
* @return workbooks
**/
@Schema(required = true, description = "The workbooks that contain the conditions associated with the condition monitor")
public Map getWorkbooks() {
return workbooks;
}
public void setWorkbooks(Map workbooks) {
this.workbooks = workbooks;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ConditionNotificationOutputV1 conditionNotificationOutputV1 = (ConditionNotificationOutputV1) o;
return Objects.equals(this.creator, conditionNotificationOutputV1.creator) &&
Objects.equals(this.enabled, conditionNotificationOutputV1.enabled) &&
Objects.equals(this.id, conditionNotificationOutputV1.id) &&
Objects.equals(this.name, conditionNotificationOutputV1.name) &&
Objects.equals(this.workbooks, conditionNotificationOutputV1.workbooks);
}
@Override
public int hashCode() {
return Objects.hash(creator, enabled, id, name, workbooks);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ConditionNotificationOutputV1 {\n");
sb.append(" creator: ").append(toIndentedString(creator)).append("\n");
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" workbooks: ").append(toIndentedString(workbooks)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}