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

io.swagger.client.model.IFormFile Maven / Gradle / Ivy

/*
 * DocxMerge
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: v1
 * 
 *
 * 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 io.swagger.client.model;

import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * IFormFile
 */

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2018-12-11T02:42:35.962+01:00[Europe/Madrid]")public class IFormFile {

  @SerializedName("contentType")
  private String contentType = null;

  @SerializedName("contentDisposition")
  private String contentDisposition = null;

  @SerializedName("headers")
  private Map> headers = null;

  @SerializedName("length")
  private Long length = null;

  @SerializedName("name")
  private String name = null;

  @SerializedName("fileName")
  private String fileName = null;
  /**
  * Get contentType
  * @return contentType
  **/
  @Schema(description = "")
  public String getContentType() {
    return contentType;
  }
  /**
  * Get contentDisposition
  * @return contentDisposition
  **/
  @Schema(description = "")
  public String getContentDisposition() {
    return contentDisposition;
  }
  public IFormFile headers(Map> headers) {
    this.headers = headers;
    return this;
  }

  
  public IFormFile putHeadersItem(String key, List headersItem) {
    if (this.headers == null) {
      this.headers = new HashMap>();
    }
    this.headers.put(key, headersItem);
    return this;
  }
  /**
  * Get headers
  * @return headers
  **/
  @Schema(description = "")
  public Map> getHeaders() {
    return headers;
  }
  public void setHeaders(Map> headers) {
    this.headers = headers;
  }
  /**
  * Get length
  * @return length
  **/
  @Schema(description = "")
  public Long getLength() {
    return length;
  }
  /**
  * Get name
  * @return name
  **/
  @Schema(description = "")
  public String getName() {
    return name;
  }
  /**
  * Get fileName
  * @return fileName
  **/
  @Schema(description = "")
  public String getFileName() {
    return fileName;
  }
  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    IFormFile iformFile = (IFormFile) o;
    return Objects.equals(this.contentType, iformFile.contentType) &&
        Objects.equals(this.contentDisposition, iformFile.contentDisposition) &&
        Objects.equals(this.headers, iformFile.headers) &&
        Objects.equals(this.length, iformFile.length) &&
        Objects.equals(this.name, iformFile.name) &&
        Objects.equals(this.fileName, iformFile.fileName);
  }

  @Override
  public int hashCode() {
    return java.util.Objects.hash(contentType, contentDisposition, headers, length, name, fileName);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class IFormFile {\n");
    
    sb.append("    contentType: ").append(toIndentedString(contentType)).append("\n");
    sb.append("    contentDisposition: ").append(toIndentedString(contentDisposition)).append("\n");
    sb.append("    headers: ").append(toIndentedString(headers)).append("\n");
    sb.append("    length: ").append(toIndentedString(length)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).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 - 2025 Weber Informatics LLC | Privacy Policy