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

src.main.java.com.smartbear.readyapi.client.model.MultiPart Maven / Gradle / Ivy

Go to download

Java client library for creating and executing test recipes against Ready!API TestServer

The newest version!
package com.smartbear.readyapi.client.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.smartbear.readyapi.client.model.BodyPart;
import com.smartbear.readyapi.client.model.ContentDisposition;
import com.smartbear.readyapi.client.model.MediaType;
import com.smartbear.readyapi.client.model.MessageBodyWorkers;
import com.smartbear.readyapi.client.model.MultiPart;
import com.smartbear.readyapi.client.model.Providers;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;





@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-07-29T13:25:49.703+02:00")
public class MultiPart   {
  
  private ContentDisposition contentDisposition = null;
  private Object entity = null;
  private Map> headers = new HashMap>();
  private MediaType mediaType = null;
  private MessageBodyWorkers messageBodyWorkers = null;
  private MultiPart parent = null;
  private Providers providers = null;
  private List bodyParts = new ArrayList();
  private Map> parameterizedHeaders = new HashMap>();

  
  /**
   **/
  public MultiPart contentDisposition(ContentDisposition contentDisposition) {
    this.contentDisposition = contentDisposition;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("contentDisposition")
  public ContentDisposition getContentDisposition() {
    return contentDisposition;
  }
  public void setContentDisposition(ContentDisposition contentDisposition) {
    this.contentDisposition = contentDisposition;
  }

  
  /**
   * Entity items.
   **/
  public MultiPart entity(Object entity) {
    this.entity = entity;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "Entity items.")
  @JsonProperty("entity")
  public Object getEntity() {
    return entity;
  }
  public void setEntity(Object entity) {
    this.entity = entity;
  }

  
  /**
   * Headers array.
   **/
  public MultiPart headers(Map> headers) {
    this.headers = headers;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "Headers array.")
  @JsonProperty("headers")
  public Map> getHeaders() {
    return headers;
  }
  public void setHeaders(Map> headers) {
    this.headers = headers;
  }

  
  /**
   **/
  public MultiPart mediaType(MediaType mediaType) {
    this.mediaType = mediaType;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("mediaType")
  public MediaType getMediaType() {
    return mediaType;
  }
  public void setMediaType(MediaType mediaType) {
    this.mediaType = mediaType;
  }

  
  /**
   **/
  public MultiPart messageBodyWorkers(MessageBodyWorkers messageBodyWorkers) {
    this.messageBodyWorkers = messageBodyWorkers;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("messageBodyWorkers")
  public MessageBodyWorkers getMessageBodyWorkers() {
    return messageBodyWorkers;
  }
  public void setMessageBodyWorkers(MessageBodyWorkers messageBodyWorkers) {
    this.messageBodyWorkers = messageBodyWorkers;
  }

  
  /**
   **/
  public MultiPart parent(MultiPart parent) {
    this.parent = parent;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("parent")
  public MultiPart getParent() {
    return parent;
  }
  public void setParent(MultiPart parent) {
    this.parent = parent;
  }

  
  /**
   **/
  public MultiPart providers(Providers providers) {
    this.providers = providers;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("providers")
  public Providers getProviders() {
    return providers;
  }
  public void setProviders(Providers providers) {
    this.providers = providers;
  }

  
  /**
   **/
  public MultiPart bodyParts(List bodyParts) {
    this.bodyParts = bodyParts;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("bodyParts")
  public List getBodyParts() {
    return bodyParts;
  }
  public void setBodyParts(List bodyParts) {
    this.bodyParts = bodyParts;
  }

  
  /**
   **/
  public MultiPart parameterizedHeaders(Map> parameterizedHeaders) {
    this.parameterizedHeaders = parameterizedHeaders;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("parameterizedHeaders")
  public Map> getParameterizedHeaders() {
    return parameterizedHeaders;
  }
  public void setParameterizedHeaders(Map> parameterizedHeaders) {
    this.parameterizedHeaders = parameterizedHeaders;
  }

  

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    MultiPart multiPart = (MultiPart) o;
    return Objects.equals(this.contentDisposition, multiPart.contentDisposition) &&
        Objects.equals(this.entity, multiPart.entity) &&
        Objects.equals(this.headers, multiPart.headers) &&
        Objects.equals(this.mediaType, multiPart.mediaType) &&
        Objects.equals(this.messageBodyWorkers, multiPart.messageBodyWorkers) &&
        Objects.equals(this.parent, multiPart.parent) &&
        Objects.equals(this.providers, multiPart.providers) &&
        Objects.equals(this.bodyParts, multiPart.bodyParts) &&
        Objects.equals(this.parameterizedHeaders, multiPart.parameterizedHeaders);
  }

  @Override
  public int hashCode() {
    return Objects.hash(contentDisposition, entity, headers, mediaType, messageBodyWorkers, parent, providers, bodyParts, parameterizedHeaders);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class MultiPart {\n");
    
    sb.append("    contentDisposition: ").append(toIndentedString(contentDisposition)).append("\n");
    sb.append("    entity: ").append(toIndentedString(entity)).append("\n");
    sb.append("    headers: ").append(toIndentedString(headers)).append("\n");
    sb.append("    mediaType: ").append(toIndentedString(mediaType)).append("\n");
    sb.append("    messageBodyWorkers: ").append(toIndentedString(messageBodyWorkers)).append("\n");
    sb.append("    parent: ").append(toIndentedString(parent)).append("\n");
    sb.append("    providers: ").append(toIndentedString(providers)).append("\n");
    sb.append("    bodyParts: ").append(toIndentedString(bodyParts)).append("\n");
    sb.append("    parameterizedHeaders: ").append(toIndentedString(parameterizedHeaders)).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