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

com.seeq.model.EmailerConfigurationOutputV1 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: 63.1.6-v202409101657
 * 
 *
 * 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;
/**
 * EmailerConfigurationOutputV1
 */
public class EmailerConfigurationOutputV1 {
  @JsonProperty("maxNumberOfAttachments")
  private Integer maxNumberOfAttachments = null;

  @JsonProperty("maxAttachmentsSizeInMB")
  private Double maxAttachmentsSizeInMB = null;

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

  public EmailerConfigurationOutputV1 maxNumberOfAttachments(Integer maxNumberOfAttachments) {
    this.maxNumberOfAttachments = maxNumberOfAttachments;
    return this;
  }

   /**
   * The maximum number of attachments allowed in an email.
   * @return maxNumberOfAttachments
  **/
  @Schema(required = true, description = "The maximum number of attachments allowed in an email.")
  public Integer getMaxNumberOfAttachments() {
    return maxNumberOfAttachments;
  }

  public void setMaxNumberOfAttachments(Integer maxNumberOfAttachments) {
    this.maxNumberOfAttachments = maxNumberOfAttachments;
  }

  public EmailerConfigurationOutputV1 maxAttachmentsSizeInMB(Double maxAttachmentsSizeInMB) {
    this.maxAttachmentsSizeInMB = maxAttachmentsSizeInMB;
    return this;
  }

   /**
   * The maximum size, in megabytes, for all attachments in an email.
   * @return maxAttachmentsSizeInMB
  **/
  @Schema(required = true, description = "The maximum size, in megabytes, for all attachments in an email.")
  public Double getMaxAttachmentsSizeInMB() {
    return maxAttachmentsSizeInMB;
  }

  public void setMaxAttachmentsSizeInMB(Double maxAttachmentsSizeInMB) {
    this.maxAttachmentsSizeInMB = maxAttachmentsSizeInMB;
  }

  public EmailerConfigurationOutputV1 allowedAttachmentTypes(List allowedAttachmentTypes) {
    this.allowedAttachmentTypes = allowedAttachmentTypes;
    return this;
  }

  public EmailerConfigurationOutputV1 addAllowedAttachmentTypesItem(String allowedAttachmentTypesItem) {
    this.allowedAttachmentTypes.add(allowedAttachmentTypesItem);
    return this;
  }

   /**
   * The list of allowed MIME types for attachments
   * @return allowedAttachmentTypes
  **/
  @Schema(required = true, description = "The list of allowed MIME types for attachments")
  public List getAllowedAttachmentTypes() {
    return allowedAttachmentTypes;
  }

  public void setAllowedAttachmentTypes(List allowedAttachmentTypes) {
    this.allowedAttachmentTypes = allowedAttachmentTypes;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    EmailerConfigurationOutputV1 emailerConfigurationOutputV1 = (EmailerConfigurationOutputV1) o;
    return Objects.equals(this.maxNumberOfAttachments, emailerConfigurationOutputV1.maxNumberOfAttachments) &&
        Objects.equals(this.maxAttachmentsSizeInMB, emailerConfigurationOutputV1.maxAttachmentsSizeInMB) &&
        Objects.equals(this.allowedAttachmentTypes, emailerConfigurationOutputV1.allowedAttachmentTypes);
  }

  @Override
  public int hashCode() {
    return Objects.hash(maxNumberOfAttachments, maxAttachmentsSizeInMB, allowedAttachmentTypes);
  }


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