com.seeq.model.ReportNotificationConfigurationInputV1 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 io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* ReportNotificationConfigurationInputV1
*/
public class ReportNotificationConfigurationInputV1 {
@JsonProperty("bccEmailRecipients")
private List bccEmailRecipients = new ArrayList();
@JsonProperty("ccEmailRecipients")
private List ccEmailRecipients = new ArrayList();
@JsonProperty("contextualText")
private String contextualText = null;
/**
* Output format for the report
*/
public enum ReportFormatEnum {
TEXT("TEXT"),
PDF("PDF");
private String value;
ReportFormatEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static ReportFormatEnum fromValue(String input) {
for (ReportFormatEnum b : ReportFormatEnum.values()) {
if (b.value.equals(input)) {
return b;
}
}
return null;
}
} @JsonProperty("reportFormat")
private ReportFormatEnum reportFormat = null;
@JsonProperty("toEmailRecipients")
private List toEmailRecipients = new ArrayList();
public ReportNotificationConfigurationInputV1 bccEmailRecipients(List bccEmailRecipients) {
this.bccEmailRecipients = bccEmailRecipients;
return this;
}
public ReportNotificationConfigurationInputV1 addBccEmailRecipientsItem(String bccEmailRecipientsItem) {
if (this.bccEmailRecipients == null) {
this.bccEmailRecipients = new ArrayList();
}
this.bccEmailRecipients.add(bccEmailRecipientsItem);
return this;
}
/**
* Email addresses or Seeq Identity IDs that will be in the Bcc list of the email
* @return bccEmailRecipients
**/
@Schema(description = "Email addresses or Seeq Identity IDs that will be in the Bcc list of the email")
public List getBccEmailRecipients() {
return bccEmailRecipients;
}
public void setBccEmailRecipients(List bccEmailRecipients) {
this.bccEmailRecipients = bccEmailRecipients;
}
public ReportNotificationConfigurationInputV1 ccEmailRecipients(List ccEmailRecipients) {
this.ccEmailRecipients = ccEmailRecipients;
return this;
}
public ReportNotificationConfigurationInputV1 addCcEmailRecipientsItem(String ccEmailRecipientsItem) {
if (this.ccEmailRecipients == null) {
this.ccEmailRecipients = new ArrayList();
}
this.ccEmailRecipients.add(ccEmailRecipientsItem);
return this;
}
/**
* Email addresses or Seeq Identity IDs that will be in the Cc list of the email
* @return ccEmailRecipients
**/
@Schema(description = "Email addresses or Seeq Identity IDs that will be in the Cc list of the email")
public List getCcEmailRecipients() {
return ccEmailRecipients;
}
public void setCcEmailRecipients(List ccEmailRecipients) {
this.ccEmailRecipients = ccEmailRecipients;
}
public ReportNotificationConfigurationInputV1 contextualText(String contextualText) {
this.contextualText = contextualText;
return this;
}
/**
* Custom text that will be inserted into the notification to provide additional context about the notifications. For emails, this can be HTML that includes a link to the worksheet
* @return contextualText
**/
@Schema(description = "Custom text that will be inserted into the notification to provide additional context about the notifications. For emails, this can be HTML that includes a link to the worksheet")
public String getContextualText() {
return contextualText;
}
public void setContextualText(String contextualText) {
this.contextualText = contextualText;
}
public ReportNotificationConfigurationInputV1 reportFormat(ReportFormatEnum reportFormat) {
this.reportFormat = reportFormat;
return this;
}
/**
* Output format for the report
* @return reportFormat
**/
@Schema(description = "Output format for the report")
public ReportFormatEnum getReportFormat() {
return reportFormat;
}
public void setReportFormat(ReportFormatEnum reportFormat) {
this.reportFormat = reportFormat;
}
public ReportNotificationConfigurationInputV1 toEmailRecipients(List toEmailRecipients) {
this.toEmailRecipients = toEmailRecipients;
return this;
}
public ReportNotificationConfigurationInputV1 addToEmailRecipientsItem(String toEmailRecipientsItem) {
if (this.toEmailRecipients == null) {
this.toEmailRecipients = new ArrayList();
}
this.toEmailRecipients.add(toEmailRecipientsItem);
return this;
}
/**
* Email addresses or Seeq Identity IDs that will be in the To list of the email
* @return toEmailRecipients
**/
@Schema(description = "Email addresses or Seeq Identity IDs that will be in the To list of the email")
public List getToEmailRecipients() {
return toEmailRecipients;
}
public void setToEmailRecipients(List toEmailRecipients) {
this.toEmailRecipients = toEmailRecipients;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ReportNotificationConfigurationInputV1 reportNotificationConfigurationInputV1 = (ReportNotificationConfigurationInputV1) o;
return Objects.equals(this.bccEmailRecipients, reportNotificationConfigurationInputV1.bccEmailRecipients) &&
Objects.equals(this.ccEmailRecipients, reportNotificationConfigurationInputV1.ccEmailRecipients) &&
Objects.equals(this.contextualText, reportNotificationConfigurationInputV1.contextualText) &&
Objects.equals(this.reportFormat, reportNotificationConfigurationInputV1.reportFormat) &&
Objects.equals(this.toEmailRecipients, reportNotificationConfigurationInputV1.toEmailRecipients);
}
@Override
public int hashCode() {
return Objects.hash(bccEmailRecipients, ccEmailRecipients, contextualText, reportFormat, toEmailRecipients);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ReportNotificationConfigurationInputV1 {\n");
sb.append(" bccEmailRecipients: ").append(toIndentedString(bccEmailRecipients)).append("\n");
sb.append(" ccEmailRecipients: ").append(toIndentedString(ccEmailRecipients)).append("\n");
sb.append(" contextualText: ").append(toIndentedString(contextualText)).append("\n");
sb.append(" reportFormat: ").append(toIndentedString(reportFormat)).append("\n");
sb.append(" toEmailRecipients: ").append(toIndentedString(toEmailRecipients)).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 ");
}
}