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

com.unblu.webapi.model.v3.CustomPersonActionData Maven / Gradle / Ivy

The newest version!

package com.unblu.webapi.model.v3;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonValue;

import io.swagger.annotations.ApiModelProperty;

/**
 * CustomPersonActionData
 */

@JsonPropertyOrder({
	CustomPersonActionData.JSON_PROPERTY_$_TYPE,
	CustomPersonActionData.JSON_PROPERTY_ID,
	CustomPersonActionData.JSON_PROPERTY_CREATION_TIMESTAMP,
	CustomPersonActionData.JSON_PROPERTY_MODIFICATION_TIMESTAMP,
	CustomPersonActionData.JSON_PROPERTY_VERSION,
	CustomPersonActionData.JSON_PROPERTY_ACCOUNT_ID,
	CustomPersonActionData.JSON_PROPERTY_KEY,
	CustomPersonActionData.JSON_PROPERTY_NAME,
	CustomPersonActionData.JSON_PROPERTY_DESCRIPTION,
	CustomPersonActionData.JSON_PROPERTY_TRANSLATIONS,
	CustomPersonActionData.JSON_PROPERTY_ACTION_ICON,
	CustomPersonActionData.JSON_PROPERTY_STATE,
	CustomPersonActionData.JSON_PROPERTY_TRIGGER_WEBHOOK,
	CustomPersonActionData.JSON_PROPERTY_INVOKABLE_FROM_FRONTENDS,
	CustomPersonActionData.JSON_PROPERTY_INVOKABLE_FOR_CONVERSATION_STATES,
	CustomPersonActionData.JSON_PROPERTY_INVOKABLE_FOR_PARTICIPATION_STATES,
	CustomPersonActionData.JSON_PROPERTY_INVOKABLE_BY,
	CustomPersonActionData.JSON_PROPERTY_TRIGGER_SYSTEM_MESSAGE,
	CustomPersonActionData.JSON_PROPERTY_TRIGGER_VISITOR_MOBILE_SDK_EVENT,
	CustomPersonActionData.JSON_PROPERTY_TRIGGER_VISITOR_EMBEDDED_API_EVENT,
	CustomPersonActionData.JSON_PROPERTY_TRIGGER_VISITOR_FLOATING_API_EVENT,
	CustomPersonActionData.JSON_PROPERTY_TRIGGER_AGENT_MOBILE_SDK_EVENT,
	CustomPersonActionData.JSON_PROPERTY_SORTING_ORDER,
	CustomPersonActionData.JSON_PROPERTY_TYPE,
	CustomPersonActionData.JSON_PROPERTY_AVAILABLE_FOR_TARGET_PERSON_TYPES,
	CustomPersonActionData.JSON_PROPERTY_AVAILABLE_FOR_TARGET_FRONTENDS,
	CustomPersonActionData.JSON_PROPERTY_API_EVENT_TRIGGER_FILTER,
})
@JsonAutoDetect(creatorVisibility = Visibility.NONE, fieldVisibility = Visibility.NONE, getterVisibility = Visibility.NONE, isGetterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE)
public class CustomPersonActionData implements CustomActionData {
	/**
	 * Gets or Sets $type
	 */
	public enum TypeEnum {
		CUSTOMPERSONACTIONDATA("CustomPersonActionData");

		private String value;

		TypeEnum(String value) {
			this.value = value;
		}

		@JsonValue
		public String getValue() {
			return value;
		}

		@Override
		public String toString() {
			return String.valueOf(value);
		}

		@JsonCreator
		public static TypeEnum fromValue(String value) {
			for (TypeEnum b : TypeEnum.values()) {
				if (b.value.equals(value)) {
					return b;
				}
			}
			return TypeEnum.CUSTOMPERSONACTIONDATA;
		}
	}

	public static final String JSON_PROPERTY_$_TYPE = "$_type";
	@JsonProperty(JSON_PROPERTY_$_TYPE)
	private TypeEnum $type = TypeEnum.CUSTOMPERSONACTIONDATA;

	public static final String JSON_PROPERTY_ID = "id";
	@JsonProperty(JSON_PROPERTY_ID)
	private String id;

	public static final String JSON_PROPERTY_CREATION_TIMESTAMP = "creationTimestamp";
	@JsonProperty(JSON_PROPERTY_CREATION_TIMESTAMP)
	private Long creationTimestamp;

	public static final String JSON_PROPERTY_MODIFICATION_TIMESTAMP = "modificationTimestamp";
	@JsonProperty(JSON_PROPERTY_MODIFICATION_TIMESTAMP)
	private Long modificationTimestamp;

	public static final String JSON_PROPERTY_VERSION = "version";
	@JsonProperty(JSON_PROPERTY_VERSION)
	private Long version;

	public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId";
	@JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
	private String accountId;

	public static final String JSON_PROPERTY_KEY = "key";
	@JsonProperty(JSON_PROPERTY_KEY)
	private String key;

	public static final String JSON_PROPERTY_NAME = "name";
	@JsonProperty(JSON_PROPERTY_NAME)
	private String name;

	public static final String JSON_PROPERTY_DESCRIPTION = "description";
	@JsonProperty(JSON_PROPERTY_DESCRIPTION)
	private String description;

	public static final String JSON_PROPERTY_TRANSLATIONS = "translations";
	@JsonProperty(JSON_PROPERTY_TRANSLATIONS)
	private Map translations = null;

	public static final String JSON_PROPERTY_ACTION_ICON = "actionIcon";
	@JsonProperty(JSON_PROPERTY_ACTION_ICON)
	private ExpandableField actionIcon = null;

	public static final String JSON_PROPERTY_STATE = "state";
	@JsonProperty(JSON_PROPERTY_STATE)
	private ECustomActionState state;

	public static final String JSON_PROPERTY_TRIGGER_WEBHOOK = "triggerWebhook";
	@JsonProperty(JSON_PROPERTY_TRIGGER_WEBHOOK)
	private CustomActionWebhookRegistration triggerWebhook = null;

	public static final String JSON_PROPERTY_INVOKABLE_FROM_FRONTENDS = "invokableFromFrontends";
	@JsonProperty(JSON_PROPERTY_INVOKABLE_FROM_FRONTENDS)
	private List invokableFromFrontends = null;

	public static final String JSON_PROPERTY_INVOKABLE_FOR_CONVERSATION_STATES = "invokableForConversationStates";
	@JsonProperty(JSON_PROPERTY_INVOKABLE_FOR_CONVERSATION_STATES)
	private List invokableForConversationStates = null;

	public static final String JSON_PROPERTY_INVOKABLE_FOR_PARTICIPATION_STATES = "invokableForParticipationStates";
	@JsonProperty(JSON_PROPERTY_INVOKABLE_FOR_PARTICIPATION_STATES)
	private List invokableForParticipationStates = null;

	public static final String JSON_PROPERTY_INVOKABLE_BY = "invokableBy";
	@JsonProperty(JSON_PROPERTY_INVOKABLE_BY)
	private List invokableBy = null;

	public static final String JSON_PROPERTY_TRIGGER_SYSTEM_MESSAGE = "triggerSystemMessage";
	@JsonProperty(JSON_PROPERTY_TRIGGER_SYSTEM_MESSAGE)
	private Boolean triggerSystemMessage;

	public static final String JSON_PROPERTY_TRIGGER_VISITOR_MOBILE_SDK_EVENT = "triggerVisitorMobileSdkEvent";
	@JsonProperty(JSON_PROPERTY_TRIGGER_VISITOR_MOBILE_SDK_EVENT)
	private Boolean triggerVisitorMobileSdkEvent;

	public static final String JSON_PROPERTY_TRIGGER_VISITOR_EMBEDDED_API_EVENT = "triggerVisitorEmbeddedApiEvent";
	@JsonProperty(JSON_PROPERTY_TRIGGER_VISITOR_EMBEDDED_API_EVENT)
	private Boolean triggerVisitorEmbeddedApiEvent;

	public static final String JSON_PROPERTY_TRIGGER_VISITOR_FLOATING_API_EVENT = "triggerVisitorFloatingApiEvent";
	@JsonProperty(JSON_PROPERTY_TRIGGER_VISITOR_FLOATING_API_EVENT)
	private Boolean triggerVisitorFloatingApiEvent;

	public static final String JSON_PROPERTY_TRIGGER_AGENT_MOBILE_SDK_EVENT = "triggerAgentMobileSdkEvent";
	@JsonProperty(JSON_PROPERTY_TRIGGER_AGENT_MOBILE_SDK_EVENT)
	private Boolean triggerAgentMobileSdkEvent;

	public static final String JSON_PROPERTY_SORTING_ORDER = "sortingOrder";
	@JsonProperty(JSON_PROPERTY_SORTING_ORDER)
	private Integer sortingOrder;

	public static final String JSON_PROPERTY_TYPE = "type";
	@JsonProperty(JSON_PROPERTY_TYPE)
	private ECustomActionType type = ECustomActionType.PERSON;

	public static final String JSON_PROPERTY_AVAILABLE_FOR_TARGET_PERSON_TYPES = "availableForTargetPersonTypes";
	@JsonProperty(JSON_PROPERTY_AVAILABLE_FOR_TARGET_PERSON_TYPES)
	private List availableForTargetPersonTypes = null;

	public static final String JSON_PROPERTY_AVAILABLE_FOR_TARGET_FRONTENDS = "availableForTargetFrontends";
	@JsonProperty(JSON_PROPERTY_AVAILABLE_FOR_TARGET_FRONTENDS)
	private List availableForTargetFrontends = null;

	public static final String JSON_PROPERTY_API_EVENT_TRIGGER_FILTER = "apiEventTriggerFilter";
	@JsonProperty(JSON_PROPERTY_API_EVENT_TRIGGER_FILTER)
	private ECustomPersonActionEventTriggerFilter apiEventTriggerFilter;

	public CustomPersonActionData $type(TypeEnum $type) {
		this.$type = $type;
		return this;
	}

	/**
	 * Get $type
	 * 
	 * @return $type
	 **/
	@ApiModelProperty(value = "")
	public TypeEnum get$Type() {
		return $type;
	}

	public void set$Type(TypeEnum $type) {
		this.$type = $type;
	}

	public CustomPersonActionData id(String id) {
		this.id = id;
		return this;
	}

	/**
	 * Unique id of the entity. When creating an entity this property can be omitted as it will be generated by the server anyway.
	 * 
	 * @return id
	 **/
	@ApiModelProperty(value = "Unique id of the entity. When creating an entity this property can be omitted as it will be generated by the server anyway.")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public CustomPersonActionData creationTimestamp(Long creationTimestamp) {
		this.creationTimestamp = creationTimestamp;
		return this;
	}

	/**
	 * Creation timestamp of the entity. It is defined when the entity is stored the first time in the system. It is ignored, when sending it to the server and
	 * therefore can be omitted. Note: If you set this property it will return the same value but it will not be written to the storage and will not effect the data
	 * consistency.
	 * 
	 * @return creationTimestamp
	 **/
	@ApiModelProperty(value = "Creation timestamp of the entity. It is defined when the entity is stored the first time in the system. It is ignored, when sending it to the server and therefore can be omitted. Note: If you set this property it will return the same value but it will not be written to the storage and will not effect the data consistency.")
	public Long getCreationTimestamp() {
		return creationTimestamp;
	}

	public void setCreationTimestamp(Long creationTimestamp) {
		this.creationTimestamp = creationTimestamp;
	}

	public CustomPersonActionData modificationTimestamp(Long modificationTimestamp) {
		this.modificationTimestamp = modificationTimestamp;
		return this;
	}

	/**
	 * Timestamp of the last modification. This property is always optional and can be omitted, when sending data to the server. It is only of informational
	 * character. It is ignored, when sending it to the server and therefore can be omitted. Note: If you set this property it will return the same value but it
	 * will not be written to the storage and will not effect the data consistency.
	 * 
	 * @return modificationTimestamp
	 **/
	@ApiModelProperty(value = "Timestamp of the last modification. This property is always optional and can be omitted, when sending data to the server. It is only of informational character. It is ignored, when sending it to the server and therefore can be omitted. Note: If you set this property it will return the same value but it will not be written to the storage and will not effect the data consistency.")
	public Long getModificationTimestamp() {
		return modificationTimestamp;
	}

	public void setModificationTimestamp(Long modificationTimestamp) {
		this.modificationTimestamp = modificationTimestamp;
	}

	public CustomPersonActionData version(Long version) {
		this.version = version;
		return this;
	}

	/**
	 * Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When
	 * creating an object, the version can be omitted.
	 * 
	 * @return version
	 **/
	@ApiModelProperty(value = "Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When creating an object, the version can be omitted.")
	public Long getVersion() {
		return version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	public CustomPersonActionData accountId(String accountId) {
		this.accountId = accountId;
		return this;
	}

	/**
	 * ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the
	 * user currently logged in. When editing an entity, you must include the account ID.
	 * 
	 * @return accountId
	 **/
	@ApiModelProperty(value = "ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the user currently logged in. When editing an entity, you must include the account ID.")
	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public CustomPersonActionData key(String key) {
		this.key = key;
		return this;
	}

	/**
	 * The unique key of the action
	 * 
	 * @return key
	 **/
	@ApiModelProperty(value = "The unique key of the action")
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public CustomPersonActionData name(String name) {
		this.name = name;
		return this;
	}

	/**
	 * The name of the custom action. Maximum of 250 characters. Can not be omitted.
	 * 
	 * @return name
	 **/
	@ApiModelProperty(value = "The name of the custom action. Maximum of 250 characters. Can not be omitted.")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public CustomPersonActionData description(String description) {
		this.description = description;
		return this;
	}

	/**
	 * The description of the custom action. Maximum of 500 characters. Can be omitted.
	 * 
	 * @return description
	 **/
	@ApiModelProperty(value = "The description of the custom action. Maximum of 500 characters. Can be omitted.")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public CustomPersonActionData translations(Map translations) {
		this.translations = translations;
		return this;
	}

	public CustomPersonActionData putTranslationsItem(String key, CustomActionTranslation translationsItem) {
		if (this.translations == null) {
			this.translations = new HashMap<>();
		}
		this.translations.put(key, translationsItem);
		return this;
	}

	/**
	 * A map of localized versions of the name and description of this custom action
	 * 
	 * @return translations
	 **/
	@ApiModelProperty(value = "A map of localized versions of the name and description of this custom action")
	public Map getTranslations() {
		return translations;
	}

	public void setTranslations(Map translations) {
		this.translations = translations;
	}

	public CustomPersonActionData actionIcon(ExpandableField actionIcon) {
		this.actionIcon = actionIcon;
		return this;
	}

	/**
	 * The avatar ID of the avatar used as the action's icon. The ID can be expanded.
	 * 
	 * @return actionIcon
	 **/
	@ApiModelProperty(value = "The avatar ID of the avatar used as the action's icon. The ID can be expanded.")
	public ExpandableField getActionIcon() {
		return actionIcon;
	}

	public void setActionIcon(ExpandableField actionIcon) {
		this.actionIcon = actionIcon;
	}

	public CustomPersonActionData state(ECustomActionState state) {
		this.state = state;
		return this;
	}

	/**
	 * Get state
	 * 
	 * @return state
	 **/
	@ApiModelProperty(value = "")
	public ECustomActionState getState() {
		return state;
	}

	public void setState(ECustomActionState state) {
		this.state = state;
	}

	public CustomPersonActionData triggerWebhook(CustomActionWebhookRegistration triggerWebhook) {
		this.triggerWebhook = triggerWebhook;
		return this;
	}

	/**
	 * Get triggerWebhook
	 * 
	 * @return triggerWebhook
	 **/
	@ApiModelProperty(value = "")
	public CustomActionWebhookRegistration getTriggerWebhook() {
		return triggerWebhook;
	}

	public void setTriggerWebhook(CustomActionWebhookRegistration triggerWebhook) {
		this.triggerWebhook = triggerWebhook;
	}

	public CustomPersonActionData invokableFromFrontends(List invokableFromFrontends) {
		this.invokableFromFrontends = invokableFromFrontends;
		return this;
	}

	public CustomPersonActionData addInvokableFromFrontendsItem(EFrontend invokableFromFrontendsItem) {
		if (this.invokableFromFrontends == null) {
			this.invokableFromFrontends = new ArrayList<>();
		}
		this.invokableFromFrontends.add(invokableFromFrontendsItem);
		return this;
	}

	/**
	 * The frontends that the action may be invoked from
	 * 
	 * @return invokableFromFrontends
	 **/
	@ApiModelProperty(value = "The frontends that the action may be invoked from")
	public List getInvokableFromFrontends() {
		return invokableFromFrontends;
	}

	public void setInvokableFromFrontends(List invokableFromFrontends) {
		this.invokableFromFrontends = invokableFromFrontends;
	}

	public CustomPersonActionData invokableForConversationStates(List invokableForConversationStates) {
		this.invokableForConversationStates = invokableForConversationStates;
		return this;
	}

	public CustomPersonActionData addInvokableForConversationStatesItem(EConversationState invokableForConversationStatesItem) {
		if (this.invokableForConversationStates == null) {
			this.invokableForConversationStates = new ArrayList<>();
		}
		this.invokableForConversationStates.add(invokableForConversationStatesItem);
		return this;
	}

	/**
	 * The conversation states the action may be invoked in
	 * 
	 * @return invokableForConversationStates
	 **/
	@ApiModelProperty(value = "The conversation states the action may be invoked in")
	public List getInvokableForConversationStates() {
		return invokableForConversationStates;
	}

	public void setInvokableForConversationStates(List invokableForConversationStates) {
		this.invokableForConversationStates = invokableForConversationStates;
	}

	public CustomPersonActionData invokableForParticipationStates(List invokableForParticipationStates) {
		this.invokableForParticipationStates = invokableForParticipationStates;
		return this;
	}

	public CustomPersonActionData addInvokableForParticipationStatesItem(EConversationParticipationState invokableForParticipationStatesItem) {
		if (this.invokableForParticipationStates == null) {
			this.invokableForParticipationStates = new ArrayList<>();
		}
		this.invokableForParticipationStates.add(invokableForParticipationStatesItem);
		return this;
	}

	/**
	 * The participation states a person may invoke the action in
	 * 
	 * @return invokableForParticipationStates
	 **/
	@ApiModelProperty(value = "The participation states a person may invoke the action in")
	public List getInvokableForParticipationStates() {
		return invokableForParticipationStates;
	}

	public void setInvokableForParticipationStates(List invokableForParticipationStates) {
		this.invokableForParticipationStates = invokableForParticipationStates;
	}

	public CustomPersonActionData invokableBy(List invokableBy) {
		this.invokableBy = invokableBy;
		return this;
	}

	public CustomPersonActionData addInvokableByItem(EConversationImpactingParticipationType invokableByItem) {
		if (this.invokableBy == null) {
			this.invokableBy = new ArrayList<>();
		}
		this.invokableBy.add(invokableByItem);
		return this;
	}

	/**
	 * The types of participant who may invoke the action
	 * 
	 * @return invokableBy
	 **/
	@ApiModelProperty(value = "The types of participant who may invoke the action")
	public List getInvokableBy() {
		return invokableBy;
	}

	public void setInvokableBy(List invokableBy) {
		this.invokableBy = invokableBy;
	}

	public CustomPersonActionData triggerSystemMessage(Boolean triggerSystemMessage) {
		this.triggerSystemMessage = triggerSystemMessage;
		return this;
	}

	/**
	 * A flag indicating whether the action should trigger a system message. The default value is true.
	 * 
	 * @return triggerSystemMessage
	 **/
	@ApiModelProperty(value = "A flag indicating whether the action should trigger a system message. The default value is true.")
	public Boolean isTriggerSystemMessage() {
		return triggerSystemMessage;
	}

	public void setTriggerSystemMessage(Boolean triggerSystemMessage) {
		this.triggerSystemMessage = triggerSystemMessage;
	}

	public CustomPersonActionData triggerVisitorMobileSdkEvent(Boolean triggerVisitorMobileSdkEvent) {
		this.triggerVisitorMobileSdkEvent = triggerVisitorMobileSdkEvent;
		return this;
	}

	/**
	 * A flag indicating whether the action should trigger a visitor mobile SDK event. The default value is false.
	 * 
	 * @return triggerVisitorMobileSdkEvent
	 **/
	@ApiModelProperty(value = "A flag indicating whether the action should trigger a visitor mobile SDK event. The default value is false.")
	public Boolean isTriggerVisitorMobileSdkEvent() {
		return triggerVisitorMobileSdkEvent;
	}

	public void setTriggerVisitorMobileSdkEvent(Boolean triggerVisitorMobileSdkEvent) {
		this.triggerVisitorMobileSdkEvent = triggerVisitorMobileSdkEvent;
	}

	public CustomPersonActionData triggerVisitorEmbeddedApiEvent(Boolean triggerVisitorEmbeddedApiEvent) {
		this.triggerVisitorEmbeddedApiEvent = triggerVisitorEmbeddedApiEvent;
		return this;
	}

	/**
	 * A flag indicating whether the action should trigger an Embedded JS API event. The default value is false.
	 * 
	 * @return triggerVisitorEmbeddedApiEvent
	 **/
	@ApiModelProperty(value = "A flag indicating whether the action should trigger an Embedded JS API event. The default value is false.")
	public Boolean isTriggerVisitorEmbeddedApiEvent() {
		return triggerVisitorEmbeddedApiEvent;
	}

	public void setTriggerVisitorEmbeddedApiEvent(Boolean triggerVisitorEmbeddedApiEvent) {
		this.triggerVisitorEmbeddedApiEvent = triggerVisitorEmbeddedApiEvent;
	}

	public CustomPersonActionData triggerVisitorFloatingApiEvent(Boolean triggerVisitorFloatingApiEvent) {
		this.triggerVisitorFloatingApiEvent = triggerVisitorFloatingApiEvent;
		return this;
	}

	/**
	 * A flag indicating whether the action should trigger a Visitor JS API event. The default value is false.
	 * 
	 * @return triggerVisitorFloatingApiEvent
	 **/
	@ApiModelProperty(value = "A flag indicating whether the action should trigger a Visitor JS API event. The default value is false.")
	public Boolean isTriggerVisitorFloatingApiEvent() {
		return triggerVisitorFloatingApiEvent;
	}

	public void setTriggerVisitorFloatingApiEvent(Boolean triggerVisitorFloatingApiEvent) {
		this.triggerVisitorFloatingApiEvent = triggerVisitorFloatingApiEvent;
	}

	public CustomPersonActionData triggerAgentMobileSdkEvent(Boolean triggerAgentMobileSdkEvent) {
		this.triggerAgentMobileSdkEvent = triggerAgentMobileSdkEvent;
		return this;
	}

	/**
	 * A flag indicating whether the action should trigger an agent mobile SDK event. The default value is false.
	 * 
	 * @return triggerAgentMobileSdkEvent
	 **/
	@ApiModelProperty(value = "A flag indicating whether the action should trigger an agent mobile SDK event. The default value is false.")
	public Boolean isTriggerAgentMobileSdkEvent() {
		return triggerAgentMobileSdkEvent;
	}

	public void setTriggerAgentMobileSdkEvent(Boolean triggerAgentMobileSdkEvent) {
		this.triggerAgentMobileSdkEvent = triggerAgentMobileSdkEvent;
	}

	public CustomPersonActionData sortingOrder(Integer sortingOrder) {
		this.sortingOrder = sortingOrder;
		return this;
	}

	/**
	 * The sorting order within the custom actions when displayed in the action bar. The default value is 5.
	 * 
	 * @return sortingOrder
	 **/
	@ApiModelProperty(value = "The sorting order within the custom actions when displayed in the action bar. The default value is 5.")
	public Integer getSortingOrder() {
		return sortingOrder;
	}

	public void setSortingOrder(Integer sortingOrder) {
		this.sortingOrder = sortingOrder;
	}

	public CustomPersonActionData type(ECustomActionType type) {
		this.type = type;
		return this;
	}

	/**
	 * Get type
	 * 
	 * @return type
	 **/
	@ApiModelProperty(value = "")
	public ECustomActionType getType() {
		return type;
	}

	public void setType(ECustomActionType type) {
		this.type = type;
	}

	public CustomPersonActionData availableForTargetPersonTypes(List availableForTargetPersonTypes) {
		this.availableForTargetPersonTypes = availableForTargetPersonTypes;
		return this;
	}

	public CustomPersonActionData addAvailableForTargetPersonTypesItem(ECustomPersonActionTargetPersonType availableForTargetPersonTypesItem) {
		if (this.availableForTargetPersonTypes == null) {
			this.availableForTargetPersonTypes = new ArrayList<>();
		}
		this.availableForTargetPersonTypes.add(availableForTargetPersonTypesItem);
		return this;
	}

	/**
	 * The person types the action can be invoked on
	 * 
	 * @return availableForTargetPersonTypes
	 **/
	@ApiModelProperty(value = "The person types the action can be invoked on")
	public List getAvailableForTargetPersonTypes() {
		return availableForTargetPersonTypes;
	}

	public void setAvailableForTargetPersonTypes(List availableForTargetPersonTypes) {
		this.availableForTargetPersonTypes = availableForTargetPersonTypes;
	}

	public CustomPersonActionData availableForTargetFrontends(List availableForTargetFrontends) {
		this.availableForTargetFrontends = availableForTargetFrontends;
		return this;
	}

	public CustomPersonActionData addAvailableForTargetFrontendsItem(EFrontend availableForTargetFrontendsItem) {
		if (this.availableForTargetFrontends == null) {
			this.availableForTargetFrontends = new ArrayList<>();
		}
		this.availableForTargetFrontends.add(availableForTargetFrontendsItem);
		return this;
	}

	/**
	 * The frontends of the person the action can be invoked on. If omitted, the action can be invoked on any of the target person's frontends, even if they
	 * aren't present in the conversation at that time.
	 * 
	 * @return availableForTargetFrontends
	 **/
	@ApiModelProperty(value = "The frontends of the person the action can be invoked on. If omitted, the action can be invoked on any of the target person's frontends, even if they aren't present in the conversation at that time.")
	public List getAvailableForTargetFrontends() {
		return availableForTargetFrontends;
	}

	public void setAvailableForTargetFrontends(List availableForTargetFrontends) {
		this.availableForTargetFrontends = availableForTargetFrontends;
	}

	public CustomPersonActionData apiEventTriggerFilter(ECustomPersonActionEventTriggerFilter apiEventTriggerFilter) {
		this.apiEventTriggerFilter = apiEventTriggerFilter;
		return this;
	}

	/**
	 * Get apiEventTriggerFilter
	 * 
	 * @return apiEventTriggerFilter
	 **/
	@ApiModelProperty(value = "")
	public ECustomPersonActionEventTriggerFilter getApiEventTriggerFilter() {
		return apiEventTriggerFilter;
	}

	public void setApiEventTriggerFilter(ECustomPersonActionEventTriggerFilter apiEventTriggerFilter) {
		this.apiEventTriggerFilter = apiEventTriggerFilter;
	}

	@Override
	public boolean equals(java.lang.Object o) {
		if (this == o) {
			return true;
		}
		if (o == null || getClass() != o.getClass()) {
			return false;
		}
		CustomPersonActionData customPersonActionData = (CustomPersonActionData) o;
		return Objects.equals(this.$type, customPersonActionData.$type) &&
				Objects.equals(this.id, customPersonActionData.id) &&
				Objects.equals(this.creationTimestamp, customPersonActionData.creationTimestamp) &&
				Objects.equals(this.modificationTimestamp, customPersonActionData.modificationTimestamp) &&
				Objects.equals(this.version, customPersonActionData.version) &&
				Objects.equals(this.accountId, customPersonActionData.accountId) &&
				Objects.equals(this.key, customPersonActionData.key) &&
				Objects.equals(this.name, customPersonActionData.name) &&
				Objects.equals(this.description, customPersonActionData.description) &&
				Objects.equals(this.translations, customPersonActionData.translations) &&
				Objects.equals(this.actionIcon, customPersonActionData.actionIcon) &&
				Objects.equals(this.state, customPersonActionData.state) &&
				Objects.equals(this.triggerWebhook, customPersonActionData.triggerWebhook) &&
				Objects.equals(this.invokableFromFrontends, customPersonActionData.invokableFromFrontends) &&
				Objects.equals(this.invokableForConversationStates, customPersonActionData.invokableForConversationStates) &&
				Objects.equals(this.invokableForParticipationStates, customPersonActionData.invokableForParticipationStates) &&
				Objects.equals(this.invokableBy, customPersonActionData.invokableBy) &&
				Objects.equals(this.triggerSystemMessage, customPersonActionData.triggerSystemMessage) &&
				Objects.equals(this.triggerVisitorMobileSdkEvent, customPersonActionData.triggerVisitorMobileSdkEvent) &&
				Objects.equals(this.triggerVisitorEmbeddedApiEvent, customPersonActionData.triggerVisitorEmbeddedApiEvent) &&
				Objects.equals(this.triggerVisitorFloatingApiEvent, customPersonActionData.triggerVisitorFloatingApiEvent) &&
				Objects.equals(this.triggerAgentMobileSdkEvent, customPersonActionData.triggerAgentMobileSdkEvent) &&
				Objects.equals(this.sortingOrder, customPersonActionData.sortingOrder) &&
				Objects.equals(this.type, customPersonActionData.type) &&
				Objects.equals(this.availableForTargetPersonTypes, customPersonActionData.availableForTargetPersonTypes) &&
				Objects.equals(this.availableForTargetFrontends, customPersonActionData.availableForTargetFrontends) &&
				Objects.equals(this.apiEventTriggerFilter, customPersonActionData.apiEventTriggerFilter);
	}

	@Override
	public int hashCode() {
		return Objects.hash($type, id, creationTimestamp, modificationTimestamp, version, accountId, key, name, description, translations, actionIcon, state, triggerWebhook, invokableFromFrontends, invokableForConversationStates, invokableForParticipationStates, invokableBy, triggerSystemMessage, triggerVisitorMobileSdkEvent, triggerVisitorEmbeddedApiEvent, triggerVisitorFloatingApiEvent, triggerAgentMobileSdkEvent, sortingOrder, type, availableForTargetPersonTypes, availableForTargetFrontends, apiEventTriggerFilter);
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("class CustomPersonActionData {\n");
		sb.append("    $type: ").append(toIndentedString($type)).append("\n");
		sb.append("    id: ").append(toIndentedString(id)).append("\n");
		sb.append("    creationTimestamp: ").append(toIndentedString(creationTimestamp)).append("\n");
		sb.append("    modificationTimestamp: ").append(toIndentedString(modificationTimestamp)).append("\n");
		sb.append("    version: ").append(toIndentedString(version)).append("\n");
		sb.append("    accountId: ").append(toIndentedString(accountId)).append("\n");
		sb.append("    key: ").append(toIndentedString(key)).append("\n");
		sb.append("    name: ").append(toIndentedString(name)).append("\n");
		sb.append("    description: ").append(toIndentedString(description)).append("\n");
		sb.append("    translations: ").append(toIndentedString(translations)).append("\n");
		sb.append("    actionIcon: ").append(toIndentedString(actionIcon)).append("\n");
		sb.append("    state: ").append(toIndentedString(state)).append("\n");
		sb.append("    triggerWebhook: ").append(toIndentedString(triggerWebhook)).append("\n");
		sb.append("    invokableFromFrontends: ").append(toIndentedString(invokableFromFrontends)).append("\n");
		sb.append("    invokableForConversationStates: ").append(toIndentedString(invokableForConversationStates)).append("\n");
		sb.append("    invokableForParticipationStates: ").append(toIndentedString(invokableForParticipationStates)).append("\n");
		sb.append("    invokableBy: ").append(toIndentedString(invokableBy)).append("\n");
		sb.append("    triggerSystemMessage: ").append(toIndentedString(triggerSystemMessage)).append("\n");
		sb.append("    triggerVisitorMobileSdkEvent: ").append(toIndentedString(triggerVisitorMobileSdkEvent)).append("\n");
		sb.append("    triggerVisitorEmbeddedApiEvent: ").append(toIndentedString(triggerVisitorEmbeddedApiEvent)).append("\n");
		sb.append("    triggerVisitorFloatingApiEvent: ").append(toIndentedString(triggerVisitorFloatingApiEvent)).append("\n");
		sb.append("    triggerAgentMobileSdkEvent: ").append(toIndentedString(triggerAgentMobileSdkEvent)).append("\n");
		sb.append("    sortingOrder: ").append(toIndentedString(sortingOrder)).append("\n");
		sb.append("    type: ").append(toIndentedString(type)).append("\n");
		sb.append("    availableForTargetPersonTypes: ").append(toIndentedString(availableForTargetPersonTypes)).append("\n");
		sb.append("    availableForTargetFrontends: ").append(toIndentedString(availableForTargetFrontends)).append("\n");
		sb.append("    apiEventTriggerFilter: ").append(toIndentedString(apiEventTriggerFilter)).append("\n");
		sb.append("}");
		return sb.toString();
	}

	/**
	 * Convert the given object to string with each line indented by 4 spaces (except the first line).
	 */
	private String toIndentedString(java.lang.Object o) {
		if (o == null) {
			return "null";
		}
		return o.toString().replace("\n", "\n    ");
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy