All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.seeq.model.NotifiableReportOutputV1 Maven / Gradle / Ivy

There is a newer version: 66.0.0-v202407310200
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 60.1.3-v202304250417
 * 
 *
 * 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("contextUrl")
  private String contextUrl = 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 contextUrl(String contextUrl) {
    this.contextUrl = contextUrl;
    return this;
  }

   /**
   * Link to more context
   * @return contextUrl
  **/
  @Schema(description = "Link to more context")
  public String getContextUrl() {
    return contextUrl;
  }

  public void setContextUrl(String contextUrl) {
    this.contextUrl = contextUrl;
  }

  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(required = true, 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.contextUrl, notifiableReportOutputV1.contextUrl) &&
        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(contextUrl, createdAt, enabled, id, name, owner, ownerId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class NotifiableReportOutputV1 {\n");
    
    sb.append("    contextUrl: ").append(toIndentedString(contextUrl)).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    ");
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy