org.teamapps.dto.UiComponentPageViewBlock 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 = UiComponentPageViewBlock.class)
public class UiComponentPageViewBlock extends UiPageViewBlock implements UiObject {
protected UiClientObjectReference component;
protected int height;
protected String title;
public UiComponentPageViewBlock() {
super();
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_COMPONENT_PAGE_VIEW_BLOCK;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("id=" + id).append(", ")
.append("alignment=" + alignment).append(", ")
.append("height=" + height).append(", ")
.append("title=" + title).append(", ")
.append(toolButtons != null ? "toolButtons={" + toolButtons.toString() + "}" : "").append(", ")
.append(component != null ? "component={" + component.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("component")
public UiClientObjectReference getComponent() {
return component;
}
@com.fasterxml.jackson.annotation.JsonGetter("height")
public int getHeight() {
return height;
}
@com.fasterxml.jackson.annotation.JsonGetter("title")
public String getTitle() {
return title;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiComponentPageViewBlock setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("alignment")
public UiComponentPageViewBlock setAlignment(Alignment alignment) {
this.alignment = alignment;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("toolButtons")
public UiComponentPageViewBlock setToolButtons(List toolButtons) {
this.toolButtons = toolButtons;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("component")
public UiComponentPageViewBlock setComponent(UiClientObjectReference component) {
this.component = component;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("height")
public UiComponentPageViewBlock setHeight(int height) {
this.height = height;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("title")
public UiComponentPageViewBlock setTitle(String title) {
this.title = title;
return this;
}
}