com.seeq.model.NotificationConfigurationOutputV1 Maven / Gradle / Ivy
/*
* 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.EmailNotificationRecipientOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* NotificationConfigurationOutputV1
*/
public class NotificationConfigurationOutputV1 {
@JsonProperty("bccEmailRecipients")
private List bccEmailRecipients = new ArrayList();
/**
* The format in which capsules are grouped in the notification
*/
public enum CapsuleGroupingEnum {
CONDITION("CONDITION"),
CAPSULE("CAPSULE"),
ALL("ALL");
private String value;
CapsuleGroupingEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static CapsuleGroupingEnum fromValue(String input) {
for (CapsuleGroupingEnum b : CapsuleGroupingEnum.values()) {
if (b.value.equals(input)) {
return b;
}
}
return null;
}
} @JsonProperty("capsuleGrouping")
private CapsuleGroupingEnum capsuleGrouping = null;
@JsonProperty("capsuleProperties")
private List capsuleProperties = new ArrayList();
@JsonProperty("ccEmailRecipients")
private List ccEmailRecipients = new ArrayList();
@JsonProperty("contextUrl")
private String contextUrl = null;
/**
* The format of the report in the notification
*/
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("timezone")
private String timezone = null;
@JsonProperty("toEmailRecipients")
private List toEmailRecipients = new ArrayList();
public NotificationConfigurationOutputV1 bccEmailRecipients(List bccEmailRecipients) {
this.bccEmailRecipients = bccEmailRecipients;
return this;
}
public NotificationConfigurationOutputV1 addBccEmailRecipientsItem(EmailNotificationRecipientOutputV1 bccEmailRecipientsItem) {
this.bccEmailRecipients.add(bccEmailRecipientsItem);
return this;
}
/**
* Email addresses or User IDs that will be in the Bcc list of the email
* @return bccEmailRecipients
**/
@Schema(required = true, description = "Email addresses or User 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 NotificationConfigurationOutputV1 capsuleGrouping(CapsuleGroupingEnum capsuleGrouping) {
this.capsuleGrouping = capsuleGrouping;
return this;
}
/**
* The format in which capsules are grouped in the notification
* @return capsuleGrouping
**/
@Schema(description = "The format in which capsules are grouped in the notification")
public CapsuleGroupingEnum getCapsuleGrouping() {
return capsuleGrouping;
}
public void setCapsuleGrouping(CapsuleGroupingEnum capsuleGrouping) {
this.capsuleGrouping = capsuleGrouping;
}
public NotificationConfigurationOutputV1 capsuleProperties(List capsuleProperties) {
this.capsuleProperties = capsuleProperties;
return this;
}
public NotificationConfigurationOutputV1 addCapsulePropertiesItem(String capsulePropertiesItem) {
this.capsuleProperties.add(capsulePropertiesItem);
return this;
}
/**
* The list of properties included in the notification
* @return capsuleProperties
**/
@Schema(required = true, description = "The list of properties included in the notification")
public List getCapsuleProperties() {
return capsuleProperties;
}
public void setCapsuleProperties(List capsuleProperties) {
this.capsuleProperties = capsuleProperties;
}
public NotificationConfigurationOutputV1 ccEmailRecipients(List ccEmailRecipients) {
this.ccEmailRecipients = ccEmailRecipients;
return this;
}
public NotificationConfigurationOutputV1 addCcEmailRecipientsItem(EmailNotificationRecipientOutputV1 ccEmailRecipientsItem) {
this.ccEmailRecipients.add(ccEmailRecipientsItem);
return this;
}
/**
* Email addresses or User IDs that will be in the Cc list of the email
* @return ccEmailRecipients
**/
@Schema(required = true, description = "Email addresses or User 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 NotificationConfigurationOutputV1 contextUrl(String contextUrl) {
this.contextUrl = contextUrl;
return this;
}
/**
* URL that provides additional context in the notification
* @return contextUrl
**/
@Schema(description = "URL that provides additional context in the notification")
public String getContextUrl() {
return contextUrl;
}
public void setContextUrl(String contextUrl) {
this.contextUrl = contextUrl;
}
public NotificationConfigurationOutputV1 reportFormat(ReportFormatEnum reportFormat) {
this.reportFormat = reportFormat;
return this;
}
/**
* The format of the report in the notification
* @return reportFormat
**/
@Schema(description = "The format of the report in the notification")
public ReportFormatEnum getReportFormat() {
return reportFormat;
}
public void setReportFormat(ReportFormatEnum reportFormat) {
this.reportFormat = reportFormat;
}
public NotificationConfigurationOutputV1 timezone(String timezone) {
this.timezone = timezone;
return this;
}
/**
* Timezone for notification content. If empty it means UTC is being used
* @return timezone
**/
@Schema(description = "Timezone for notification content. If empty it means UTC is being used")
public String getTimezone() {
return timezone;
}
public void setTimezone(String timezone) {
this.timezone = timezone;
}
public NotificationConfigurationOutputV1 toEmailRecipients(List toEmailRecipients) {
this.toEmailRecipients = toEmailRecipients;
return this;
}
public NotificationConfigurationOutputV1 addToEmailRecipientsItem(EmailNotificationRecipientOutputV1 toEmailRecipientsItem) {
this.toEmailRecipients.add(toEmailRecipientsItem);
return this;
}
/**
* Email addresses or User IDs that will be in the To list of the email
* @return toEmailRecipients
**/
@Schema(required = true, description = "Email addresses or User 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;
}
NotificationConfigurationOutputV1 notificationConfigurationOutputV1 = (NotificationConfigurationOutputV1) o;
return Objects.equals(this.bccEmailRecipients, notificationConfigurationOutputV1.bccEmailRecipients) &&
Objects.equals(this.capsuleGrouping, notificationConfigurationOutputV1.capsuleGrouping) &&
Objects.equals(this.capsuleProperties, notificationConfigurationOutputV1.capsuleProperties) &&
Objects.equals(this.ccEmailRecipients, notificationConfigurationOutputV1.ccEmailRecipients) &&
Objects.equals(this.contextUrl, notificationConfigurationOutputV1.contextUrl) &&
Objects.equals(this.reportFormat, notificationConfigurationOutputV1.reportFormat) &&
Objects.equals(this.timezone, notificationConfigurationOutputV1.timezone) &&
Objects.equals(this.toEmailRecipients, notificationConfigurationOutputV1.toEmailRecipients);
}
@Override
public int hashCode() {
return Objects.hash(bccEmailRecipients, capsuleGrouping, capsuleProperties, ccEmailRecipients, contextUrl, reportFormat, timezone, toEmailRecipients);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NotificationConfigurationOutputV1 {\n");
sb.append(" bccEmailRecipients: ").append(toIndentedString(bccEmailRecipients)).append("\n");
sb.append(" capsuleGrouping: ").append(toIndentedString(capsuleGrouping)).append("\n");
sb.append(" capsuleProperties: ").append(toIndentedString(capsuleProperties)).append("\n");
sb.append(" ccEmailRecipients: ").append(toIndentedString(ccEmailRecipients)).append("\n");
sb.append(" contextUrl: ").append(toIndentedString(contextUrl)).append("\n");
sb.append(" reportFormat: ").append(toIndentedString(reportFormat)).append("\n");
sb.append(" timezone: ").append(toIndentedString(timezone)).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 ");
}
}