org.teamapps.dto.UiMessagePageViewBlock 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 = UiMessagePageViewBlock.class)
public class UiMessagePageViewBlock extends UiPageViewBlock implements UiObject {
protected UiTemplate topTemplate;
protected UiClientRecord topRecord;
protected UiHorizontalElementAlignment topRecordAlignment;
protected String html;
protected List imageUrls;
public UiMessagePageViewBlock() {
super();
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_MESSAGE_PAGE_VIEW_BLOCK;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("id=" + id).append(", ")
.append("alignment=" + alignment).append(", ")
.append(topTemplate != null ? "topTemplate={" + topTemplate.toString() + "}" : "").append(", ")
.append("topRecordAlignment=" + topRecordAlignment).append(", ")
.append("html=" + html).append(", ")
.append("imageUrls=" + imageUrls).append(", ")
.append(toolButtons != null ? "toolButtons={" + toolButtons.toString() + "}" : "").append(", ")
.append(topRecord != null ? "topRecord={" + topRecord.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("topTemplate")
public UiTemplate getTopTemplate() {
return topTemplate;
}
@com.fasterxml.jackson.annotation.JsonGetter("topRecord")
public UiClientRecord getTopRecord() {
return topRecord;
}
@com.fasterxml.jackson.annotation.JsonGetter("topRecordAlignment")
public UiHorizontalElementAlignment getTopRecordAlignment() {
return topRecordAlignment;
}
@com.fasterxml.jackson.annotation.JsonGetter("html")
public String getHtml() {
return html;
}
@com.fasterxml.jackson.annotation.JsonGetter("imageUrls")
public List getImageUrls() {
return imageUrls;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiMessagePageViewBlock setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("alignment")
public UiMessagePageViewBlock setAlignment(Alignment alignment) {
this.alignment = alignment;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("toolButtons")
public UiMessagePageViewBlock setToolButtons(List toolButtons) {
this.toolButtons = toolButtons;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("topTemplate")
public UiMessagePageViewBlock setTopTemplate(UiTemplate topTemplate) {
this.topTemplate = topTemplate;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("topRecord")
public UiMessagePageViewBlock setTopRecord(UiClientRecord topRecord) {
this.topRecord = topRecord;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("topRecordAlignment")
public UiMessagePageViewBlock setTopRecordAlignment(UiHorizontalElementAlignment topRecordAlignment) {
this.topRecordAlignment = topRecordAlignment;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("html")
public UiMessagePageViewBlock setHtml(String html) {
this.html = html;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("imageUrls")
public UiMessagePageViewBlock setImageUrls(List imageUrls) {
this.imageUrls = imageUrls;
return this;
}
}