org.teamapps.dto.UiFileItem Maven / Gradle / Ivy
The newest version!
package org.teamapps.dto;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver;
/**
* THIS IS GENERATED CODE!
* PLEASE DO NOT MODIFY - ALL YOUR WORK WOULD BE LOST!
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.CUSTOM, property = "_type", defaultImpl = UiFileItem.class)
public class UiFileItem implements UiObject {
protected String uuid;
protected String icon;
protected String thumbnail;
protected String fileName;
protected String description;
protected long size;
protected String linkUrl;
public UiFileItem() {
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_FILE_ITEM;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("fileName=" + fileName).append(", ")
.append("uuid=" + uuid).append(", ")
.append("icon=" + icon).append(", ")
.append("thumbnail=" + thumbnail).append(", ")
.append("description=" + description).append(", ")
.append("size=" + size).append(", ")
.append("linkUrl=" + linkUrl)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("uuid")
public String getUuid() {
return uuid;
}
@com.fasterxml.jackson.annotation.JsonGetter("icon")
public String getIcon() {
return icon;
}
@com.fasterxml.jackson.annotation.JsonGetter("thumbnail")
public String getThumbnail() {
return thumbnail;
}
@com.fasterxml.jackson.annotation.JsonGetter("fileName")
public String getFileName() {
return fileName;
}
@com.fasterxml.jackson.annotation.JsonGetter("description")
public String getDescription() {
return description;
}
@com.fasterxml.jackson.annotation.JsonGetter("size")
public long getSize() {
return size;
}
@com.fasterxml.jackson.annotation.JsonGetter("linkUrl")
public String getLinkUrl() {
return linkUrl;
}
@com.fasterxml.jackson.annotation.JsonSetter("uuid")
public UiFileItem setUuid(String uuid) {
this.uuid = uuid;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("icon")
public UiFileItem setIcon(String icon) {
this.icon = icon;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("thumbnail")
public UiFileItem setThumbnail(String thumbnail) {
this.thumbnail = thumbnail;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("fileName")
public UiFileItem setFileName(String fileName) {
this.fileName = fileName;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("description")
public UiFileItem setDescription(String description) {
this.description = description;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("size")
public UiFileItem setSize(long size) {
this.size = size;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("linkUrl")
public UiFileItem setLinkUrl(String linkUrl) {
this.linkUrl = linkUrl;
return this;
}
}