org.symphonyoss.symphony.agent.model.V4AttachmentInfo Maven / Gradle / Ivy
/*
* Agent API
* This document refers to Symphony API calls to send and receive messages and content. They need the on-premise Agent installed to perform decryption/encryption of content. - sessionToken and keyManagerToken can be obtained by calling the authenticationAPI on the symphony back end and the key manager respectively. Refer to the methods described in authenticatorAPI.yaml. - Actions are defined to be atomic, ie will succeed in their entirety or fail and have changed nothing. - If it returns a 40X status then it will have sent no message to any stream even if a request to aome subset of the requested streams would have succeeded. - If this contract cannot be met for any reason then this is an error and the response code will be 50X. - MessageML is a markup language for messages. See reference here: https://developers.symphony.com/documentation/message_format_reference
*
* OpenAPI spec version: 1.48.0
*
*
* 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 org.symphonyoss.symphony.agent.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.symphonyoss.symphony.agent.model.V4ThumbnailInfo;
/**
* V4AttachmentInfo
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-10-14T03:33:40.723-04:00")
public class V4AttachmentInfo {
@JsonProperty("id")
private String id = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("size")
private Long size = null;
@JsonProperty("images")
private List images = new ArrayList();
public V4AttachmentInfo id(String id) {
this.id = id;
return this;
}
/**
* The attachment ID.
* @return id
**/
@ApiModelProperty(example = "null", required = true, value = "The attachment ID.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public V4AttachmentInfo name(String name) {
this.name = name;
return this;
}
/**
* The file name.
* @return name
**/
@ApiModelProperty(example = "null", required = true, value = "The file name.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public V4AttachmentInfo size(Long size) {
this.size = size;
return this;
}
/**
* Size in bytes.
* @return size
**/
@ApiModelProperty(example = "null", required = true, value = "Size in bytes.")
public Long getSize() {
return size;
}
public void setSize(Long size) {
this.size = size;
}
public V4AttachmentInfo images(List images) {
this.images = images;
return this;
}
public V4AttachmentInfo addImagesItem(V4ThumbnailInfo imagesItem) {
this.images.add(imagesItem);
return this;
}
/**
* Get images
* @return images
**/
@ApiModelProperty(example = "null", value = "")
public List getImages() {
return images;
}
public void setImages(List images) {
this.images = images;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V4AttachmentInfo v4AttachmentInfo = (V4AttachmentInfo) o;
return Objects.equals(this.id, v4AttachmentInfo.id) &&
Objects.equals(this.name, v4AttachmentInfo.name) &&
Objects.equals(this.size, v4AttachmentInfo.size) &&
Objects.equals(this.images, v4AttachmentInfo.images);
}
@Override
public int hashCode() {
return Objects.hash(id, name, size, images);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V4AttachmentInfo {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" size: ").append(toIndentedString(size)).append("\n");
sb.append(" images: ").append(toIndentedString(images)).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 ");
}
}