org.teamapps.dto.UiAccordionPanel Maven / Gradle / Ivy
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 = UiAccordionPanel.class)
public class UiAccordionPanel implements UiObject {
protected String panelId;
protected String icon;
protected String title;
protected boolean scrollVertical = true;
protected boolean scrollHorizontal;
protected boolean open;
protected UiClientObjectReference content;
public UiAccordionPanel() {
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_ACCORDION_PANEL;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("panelId=" + panelId).append(", ")
.append("icon=" + icon).append(", ")
.append("title=" + title).append(", ")
.append("scrollVertical=" + scrollVertical).append(", ")
.append("scrollHorizontal=" + scrollHorizontal).append(", ")
.append("open=" + open).append(", ")
.append(content != null ? "content={" + content.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("panelId")
public String getPanelId() {
return panelId;
}
@com.fasterxml.jackson.annotation.JsonGetter("icon")
public String getIcon() {
return icon;
}
@com.fasterxml.jackson.annotation.JsonGetter("title")
public String getTitle() {
return title;
}
@com.fasterxml.jackson.annotation.JsonGetter("scrollVertical")
public boolean getScrollVertical() {
return scrollVertical;
}
@com.fasterxml.jackson.annotation.JsonGetter("scrollHorizontal")
public boolean getScrollHorizontal() {
return scrollHorizontal;
}
@com.fasterxml.jackson.annotation.JsonGetter("open")
public boolean getOpen() {
return open;
}
@com.fasterxml.jackson.annotation.JsonGetter("content")
public UiClientObjectReference getContent() {
return content;
}
@com.fasterxml.jackson.annotation.JsonSetter("panelId")
public UiAccordionPanel setPanelId(String panelId) {
this.panelId = panelId;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("icon")
public UiAccordionPanel setIcon(String icon) {
this.icon = icon;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("title")
public UiAccordionPanel setTitle(String title) {
this.title = title;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("scrollVertical")
public UiAccordionPanel setScrollVertical(boolean scrollVertical) {
this.scrollVertical = scrollVertical;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("scrollHorizontal")
public UiAccordionPanel setScrollHorizontal(boolean scrollHorizontal) {
this.scrollHorizontal = scrollHorizontal;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("open")
public UiAccordionPanel setOpen(boolean open) {
this.open = open;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("content")
public UiAccordionPanel setContent(UiClientObjectReference content) {
this.content = content;
return this;
}
}