src.main.java.com.smartbear.readyapi.client.model.BodyPart Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ready-api-testserver-client Show documentation
Show all versions of ready-api-testserver-client Show documentation
Java client library for creating and executing test recipes against Ready!API TestServer
package com.smartbear.readyapi.client.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
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.HashMap;
import java.util.List;
import java.util.Map;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-24T08:38:08.699-04:00")
public class BodyPart {
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 Map> parameterizedHeaders = new HashMap>();
/**
**/
public BodyPart 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;
}
/**
**/
public BodyPart entity(Object entity) {
this.entity = entity;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("entity")
public Object getEntity() {
return entity;
}
public void setEntity(Object entity) {
this.entity = entity;
}
/**
**/
public BodyPart headers(Map> headers) {
this.headers = headers;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("headers")
public Map> getHeaders() {
return headers;
}
public void setHeaders(Map> headers) {
this.headers = headers;
}
/**
**/
public BodyPart 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 BodyPart 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 BodyPart 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 BodyPart 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 BodyPart 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;
}
BodyPart bodyPart = (BodyPart) o;
return Objects.equals(this.contentDisposition, bodyPart.contentDisposition) &&
Objects.equals(this.entity, bodyPart.entity) &&
Objects.equals(this.headers, bodyPart.headers) &&
Objects.equals(this.mediaType, bodyPart.mediaType) &&
Objects.equals(this.messageBodyWorkers, bodyPart.messageBodyWorkers) &&
Objects.equals(this.parent, bodyPart.parent) &&
Objects.equals(this.providers, bodyPart.providers) &&
Objects.equals(this.parameterizedHeaders, bodyPart.parameterizedHeaders);
}
@Override
public int hashCode() {
return Objects.hash(contentDisposition, entity, headers, mediaType, messageBodyWorkers, parent, providers, parameterizedHeaders);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BodyPart {\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(" 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