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

com.seeq.model.SendEmailAttachmentV1 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: 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;
/**
 * SendEmailAttachmentV1
 */
public class SendEmailAttachmentV1 {
  @JsonProperty("content")
  private String content = null;

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

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

  public SendEmailAttachmentV1 content(String content) {
    this.content = content;
    return this;
  }

   /**
   * The base64 encoded content of an attachment.
   * @return content
  **/
  @Schema(required = true, description = "The base64 encoded content of an attachment.")
  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public SendEmailAttachmentV1 type(String type) {
    this.type = type;
    return this;
  }

   /**
   * The MIME type of the content of an attachment.
   * @return type
  **/
  @Schema(example = "application/pdf", required = true, description = "The MIME type of the content of an attachment.")
  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public SendEmailAttachmentV1 filename(String filename) {
    this.filename = filename;
    return this;
  }

   /**
   * The filename of an attachment.
   * @return filename
  **/
  @Schema(required = true, description = "The filename of an attachment.")
  public String getFilename() {
    return filename;
  }

  public void setFilename(String filename) {
    this.filename = filename;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SendEmailAttachmentV1 sendEmailAttachmentV1 = (SendEmailAttachmentV1) o;
    return Objects.equals(this.content, sendEmailAttachmentV1.content) &&
        Objects.equals(this.type, sendEmailAttachmentV1.type) &&
        Objects.equals(this.filename, sendEmailAttachmentV1.filename);
  }

  @Override
  public int hashCode() {
    return Objects.hash(content, type, filename);
  }


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