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

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

There is a newer version: 66.0.0-v202410141803
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 64.4.1-v202409112255
 * 
 *
 * 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;
/**
 * ConditionMonitorNotificationConfigurationInputV1
 */
public class ConditionMonitorNotificationConfigurationInputV1 {
  @JsonProperty("bccEmailRecipients")
  private List bccEmailRecipients = new ArrayList();

  /**
   * Used to customize how capsules are formatted in the notification. 'All' shows all capsules in a single table, 'Condition' groups capsules per condition, and 'Capsule' sends a separate email for each capsule found. Only applicable to Condition Monitors
   */
  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("contextualText")
  private String contextualText = null;

  @JsonProperty("timezone")
  private String timezone = null;

  @JsonProperty("toEmailRecipients")
  private List toEmailRecipients = new ArrayList();

  public ConditionMonitorNotificationConfigurationInputV1 bccEmailRecipients(List bccEmailRecipients) {
    this.bccEmailRecipients = bccEmailRecipients;
    return this;
  }

  public ConditionMonitorNotificationConfigurationInputV1 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 ConditionMonitorNotificationConfigurationInputV1 capsuleGrouping(CapsuleGroupingEnum capsuleGrouping) {
    this.capsuleGrouping = capsuleGrouping;
    return this;
  }

   /**
   * Used to customize how capsules are formatted in the notification. 'All' shows all capsules in a single table, 'Condition' groups capsules per condition, and 'Capsule' sends a separate email for each capsule found. Only applicable to Condition Monitors
   * @return capsuleGrouping
  **/
  @Schema(description = "Used to customize how capsules are formatted in the notification. 'All' shows all capsules in a single table, 'Condition' groups capsules per condition, and 'Capsule' sends a separate email for each capsule found. Only applicable to Condition Monitors")
  public CapsuleGroupingEnum getCapsuleGrouping() {
    return capsuleGrouping;
  }

  public void setCapsuleGrouping(CapsuleGroupingEnum capsuleGrouping) {
    this.capsuleGrouping = capsuleGrouping;
  }

  public ConditionMonitorNotificationConfigurationInputV1 capsuleProperties(List capsuleProperties) {
    this.capsuleProperties = capsuleProperties;
    return this;
  }

  public ConditionMonitorNotificationConfigurationInputV1 addCapsulePropertiesItem(String capsulePropertiesItem) {
    if (this.capsuleProperties == null) {
      this.capsuleProperties = new ArrayList();
    }
    this.capsuleProperties.add(capsulePropertiesItem);
    return this;
  }

   /**
   * List of capsule properties that will be included in the notification
   * @return capsuleProperties
  **/
  @Schema(description = "List of capsule properties that will be included in the notification")
  public List getCapsuleProperties() {
    return capsuleProperties;
  }

  public void setCapsuleProperties(List capsuleProperties) {
    this.capsuleProperties = capsuleProperties;
  }

  public ConditionMonitorNotificationConfigurationInputV1 ccEmailRecipients(List ccEmailRecipients) {
    this.ccEmailRecipients = ccEmailRecipients;
    return this;
  }

  public ConditionMonitorNotificationConfigurationInputV1 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 ConditionMonitorNotificationConfigurationInputV1 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 ConditionMonitorNotificationConfigurationInputV1 timezone(String timezone) {
    this.timezone = timezone;
    return this;
  }

   /**
   * Timezone to use for the capsules. UTC used by default
   * @return timezone
  **/
  @Schema(description = "Timezone to use for the capsules. UTC used by default")
  public String getTimezone() {
    return timezone;
  }

  public void setTimezone(String timezone) {
    this.timezone = timezone;
  }

  public ConditionMonitorNotificationConfigurationInputV1 toEmailRecipients(List toEmailRecipients) {
    this.toEmailRecipients = toEmailRecipients;
    return this;
  }

  public ConditionMonitorNotificationConfigurationInputV1 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;
    }
    ConditionMonitorNotificationConfigurationInputV1 conditionMonitorNotificationConfigurationInputV1 = (ConditionMonitorNotificationConfigurationInputV1) o;
    return Objects.equals(this.bccEmailRecipients, conditionMonitorNotificationConfigurationInputV1.bccEmailRecipients) &&
        Objects.equals(this.capsuleGrouping, conditionMonitorNotificationConfigurationInputV1.capsuleGrouping) &&
        Objects.equals(this.capsuleProperties, conditionMonitorNotificationConfigurationInputV1.capsuleProperties) &&
        Objects.equals(this.ccEmailRecipients, conditionMonitorNotificationConfigurationInputV1.ccEmailRecipients) &&
        Objects.equals(this.contextualText, conditionMonitorNotificationConfigurationInputV1.contextualText) &&
        Objects.equals(this.timezone, conditionMonitorNotificationConfigurationInputV1.timezone) &&
        Objects.equals(this.toEmailRecipients, conditionMonitorNotificationConfigurationInputV1.toEmailRecipients);
  }

  @Override
  public int hashCode() {
    return Objects.hash(bccEmailRecipients, capsuleGrouping, capsuleProperties, ccEmailRecipients, contextualText, timezone, toEmailRecipients);
  }


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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy