All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.teamapps.dto.UiNotificationBarItem 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 = UiNotificationBarItem.class)
public class UiNotificationBarItem implements UiObject {


	protected String id;
	protected String icon;
	protected UiRepeatableAnimation iconAnimation;
	protected String text;
	protected String actionLinkText;
	protected String backgroundColor;
	protected String borderColor;
	protected String textColor;
	protected String actionLinkColor;
	protected UiSpacing padding;
	protected UiEntranceAnimation entranceAnimation;
	protected UiExitAnimation exitAnimation;
	protected boolean dismissible = true;
	protected int displayTimeInMillis = 3000;
	protected boolean progressBarVisible = false;

	public UiNotificationBarItem() {
	}

	@com.fasterxml.jackson.annotation.JsonIgnore
	public UiObjectType getUiObjectType() {
		return UiObjectType.UI_NOTIFICATION_BAR_ITEM;
	}

	@SuppressWarnings("unchecked")
	public String toString() {
		return new StringBuilder(getClass().getSimpleName()).append(": ")
				.append("id=" + id).append(", ")
				.append("icon=" + icon).append(", ")
				.append("iconAnimation=" + iconAnimation).append(", ")
				.append("text=" + text).append(", ")
				.append("actionLinkText=" + actionLinkText).append(", ")
				.append("backgroundColor=" + backgroundColor).append(", ")
				.append("borderColor=" + borderColor).append(", ")
				.append("textColor=" + textColor).append(", ")
				.append("actionLinkColor=" + actionLinkColor).append(", ")
				.append("entranceAnimation=" + entranceAnimation).append(", ")
				.append("exitAnimation=" + exitAnimation).append(", ")
				.append("dismissible=" + dismissible).append(", ")
				.append("displayTimeInMillis=" + displayTimeInMillis).append(", ")
				.append("progressBarVisible=" + progressBarVisible).append(", ")
				.append(padding != null ? "padding={" + padding.toString() + "}" : "")
				.toString();
	}

	@com.fasterxml.jackson.annotation.JsonGetter("id")
	public String getId() {
		return id;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("icon")
	public String getIcon() {
		return icon;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("iconAnimation")
	public UiRepeatableAnimation getIconAnimation() {
		return iconAnimation;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("text")
	public String getText() {
		return text;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("actionLinkText")
	public String getActionLinkText() {
		return actionLinkText;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("backgroundColor")
	public String getBackgroundColor() {
		return backgroundColor;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("borderColor")
	public String getBorderColor() {
		return borderColor;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("textColor")
	public String getTextColor() {
		return textColor;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("actionLinkColor")
	public String getActionLinkColor() {
		return actionLinkColor;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("padding")
	public UiSpacing getPadding() {
		return padding;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("entranceAnimation")
	public UiEntranceAnimation getEntranceAnimation() {
		return entranceAnimation;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("exitAnimation")
	public UiExitAnimation getExitAnimation() {
		return exitAnimation;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("dismissible")
	public boolean getDismissible() {
		return dismissible;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("displayTimeInMillis")
	public int getDisplayTimeInMillis() {
		return displayTimeInMillis;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("progressBarVisible")
	public boolean getProgressBarVisible() {
		return progressBarVisible;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("id")
	public UiNotificationBarItem setId(String id) {
		this.id = id;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("icon")
	public UiNotificationBarItem setIcon(String icon) {
		this.icon = icon;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("iconAnimation")
	public UiNotificationBarItem setIconAnimation(UiRepeatableAnimation iconAnimation) {
		this.iconAnimation = iconAnimation;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("text")
	public UiNotificationBarItem setText(String text) {
		this.text = text;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("actionLinkText")
	public UiNotificationBarItem setActionLinkText(String actionLinkText) {
		this.actionLinkText = actionLinkText;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("backgroundColor")
	public UiNotificationBarItem setBackgroundColor(String backgroundColor) {
		this.backgroundColor = backgroundColor;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("borderColor")
	public UiNotificationBarItem setBorderColor(String borderColor) {
		this.borderColor = borderColor;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("textColor")
	public UiNotificationBarItem setTextColor(String textColor) {
		this.textColor = textColor;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("actionLinkColor")
	public UiNotificationBarItem setActionLinkColor(String actionLinkColor) {
		this.actionLinkColor = actionLinkColor;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("padding")
	public UiNotificationBarItem setPadding(UiSpacing padding) {
		this.padding = padding;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("entranceAnimation")
	public UiNotificationBarItem setEntranceAnimation(UiEntranceAnimation entranceAnimation) {
		this.entranceAnimation = entranceAnimation;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("exitAnimation")
	public UiNotificationBarItem setExitAnimation(UiExitAnimation exitAnimation) {
		this.exitAnimation = exitAnimation;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("dismissible")
	public UiNotificationBarItem setDismissible(boolean dismissible) {
		this.dismissible = dismissible;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("displayTimeInMillis")
	public UiNotificationBarItem setDisplayTimeInMillis(int displayTimeInMillis) {
		this.displayTimeInMillis = displayTimeInMillis;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("progressBarVisible")
	public UiNotificationBarItem setProgressBarVisible(boolean progressBarVisible) {
		this.progressBarVisible = progressBarVisible;
		return this;
	}




}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy