com.seeq.model.NotifiableReportOutputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 65.1.3-v202408082312
*
*
* 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;
/**
* A list of reports that have notifications
*/
@Schema(description = "A list of reports that have notifications")
public class NotifiableReportOutputV1 {
@JsonProperty("contextualText")
private String contextualText = null;
@JsonProperty("createdAt")
private String createdAt = null;
@JsonProperty("enabled")
private Boolean enabled = null;
@JsonProperty("id")
private String id = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("owner")
private IdentityPreviewV1 owner = null;
@JsonProperty("ownerId")
private String ownerId = null;
public NotifiableReportOutputV1 contextualText(String contextualText) {
this.contextualText = contextualText;
return this;
}
/**
* Additional context about the notifications
* @return contextualText
**/
@Schema(description = "Additional context about the notifications")
public String getContextualText() {
return contextualText;
}
public void setContextualText(String contextualText) {
this.contextualText = contextualText;
}
public NotifiableReportOutputV1 createdAt(String createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* The time the report was created
* @return createdAt
**/
@Schema(required = true, description = "The time the report was created")
public String getCreatedAt() {
return createdAt;
}
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
public NotifiableReportOutputV1 enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* Whether this report is enabled or not
* @return enabled
**/
@Schema(required = true, description = "Whether this report is enabled or not")
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
public NotifiableReportOutputV1 id(String id) {
this.id = id;
return this;
}
/**
* ID of the report
* @return id
**/
@Schema(required = true, description = "ID of the report")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public NotifiableReportOutputV1 name(String name) {
this.name = name;
return this;
}
/**
* Name of the Organizer topic and document name associated with the report
* @return name
**/
@Schema(required = true, description = "Name of the Organizer topic and document name associated with the report")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public NotifiableReportOutputV1 owner(IdentityPreviewV1 owner) {
this.owner = owner;
return this;
}
/**
* Get owner
* @return owner
**/
@Schema(description = "")
public IdentityPreviewV1 getOwner() {
return owner;
}
public void setOwner(IdentityPreviewV1 owner) {
this.owner = owner;
}
public NotifiableReportOutputV1 ownerId(String ownerId) {
this.ownerId = ownerId;
return this;
}
/**
* ID of the report's owner
* @return ownerId
**/
@Schema(description = "ID of the report's owner")
public String getOwnerId() {
return ownerId;
}
public void setOwnerId(String ownerId) {
this.ownerId = ownerId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NotifiableReportOutputV1 notifiableReportOutputV1 = (NotifiableReportOutputV1) o;
return Objects.equals(this.contextualText, notifiableReportOutputV1.contextualText) &&
Objects.equals(this.createdAt, notifiableReportOutputV1.createdAt) &&
Objects.equals(this.enabled, notifiableReportOutputV1.enabled) &&
Objects.equals(this.id, notifiableReportOutputV1.id) &&
Objects.equals(this.name, notifiableReportOutputV1.name) &&
Objects.equals(this.owner, notifiableReportOutputV1.owner) &&
Objects.equals(this.ownerId, notifiableReportOutputV1.ownerId);
}
@Override
public int hashCode() {
return Objects.hash(contextualText, createdAt, enabled, id, name, owner, ownerId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NotifiableReportOutputV1 {\n");
sb.append(" contextualText: ").append(toIndentedString(contextualText)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).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(" owner: ").append(toIndentedString(owner)).append("\n");
sb.append(" ownerId: ").append(toIndentedString(ownerId)).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 ");
}
}