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

com.seeq.model.AttachmentInputV1 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: 65.1.3-v202408082312
 * 
 *
 * 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;
/**
 * Can be used to attach a screenshot of the problem
 */
@Schema(description = "Can be used to attach a screenshot of the problem")
public class AttachmentInputV1 {
  @JsonProperty("content")
  private String content = null;

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

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

  public AttachmentInputV1 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 AttachmentInputV1 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;
  }

  public AttachmentInputV1 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;
  }


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

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


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