Class SendMessageInput
java.lang.Object
com.kingsrook.qqq.backend.core.model.actions.AbstractActionInput
com.kingsrook.qqq.backend.core.model.actions.messaging.SendMessageInput
Provider-neutral message input. All rich-message fields are optional.
Category, linked record, sender name, locale, and variables without a template
are advisory: providers that do not support them silently ignore them.
Recipients and senders remain Party values; use MultiParty for multiple parties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachment(Attachment attachment) voidaddContent(Content content) Getter for attachmentListGetter for category.Getter for contentListgetFrom()Getter for fromGetter for idempotencyKey.Getter for linkedRecordId.Getter for linkedTableName.Getter for locale.Getter for messagingProviderNameGetter for senderName.Getter for subjectGetter for templateName.getTo()Getter for toGetter for variables.voidsetAttachmentList(List<Attachment> attachmentList) Setter for attachmentListvoidsetCategory(String category) Setter for categoryvoidsetContentList(List<Content> contentList) Setter for contentListvoidSetter for fromvoidsetIdempotencyKey(String idempotencyKey) Setter for idempotencyKeyvoidsetLinkedRecordId(Serializable linkedRecordId) Setter for linkedRecordIdvoidsetLinkedTableName(String linkedTableName) Setter for linkedTableNamevoidSetter for localevoidsetMessagingProviderName(String messagingProviderName) Setter for messagingProviderNamevoidsetSenderName(String senderName) Setter for senderNamevoidsetSubject(String subject) Setter for subjectvoidsetTemplateName(String templateName) Setter for templateNamevoidSetter for tovoidsetVariables(Map<String, Serializable> variables) Setter for variableswithAttachment(Attachment attachment) withAttachmentList(List<Attachment> attachmentList) Fluent setter for attachmentListwithCategory(String category) Fluent setter for categorywithContent(Content content) withContentList(List<Content> contentList) Fluent setter for contentListFluent setter for fromwithIdempotencyKey(String idempotencyKey) Fluent setter for idempotencyKeywithLinkedRecord(String table, Serializable id) Fluent setter for the associated table and record identifier.withLinkedRecordId(Serializable linkedRecordId) Fluent setter for linkedRecordIdwithLinkedTableName(String linkedTableName) Fluent setter for linkedTableNamewithLocale(String locale) Fluent setter for localewithMessagingProviderName(String messagingProviderName) Fluent setter for messagingProviderNamewithSenderName(String senderName) Fluent setter for senderNamewithSubject(String subject) Fluent setter for subjectwithTemplateName(String templateName) Fluent setter for templateNameFluent setter for towithVariable(String name, Serializable value) Add or replace one variable, initializing the map when needed.withVariables(Map<String, Serializable> variables) Fluent setter for variablesMethods inherited from class com.kingsrook.qqq.backend.core.model.actions.AbstractActionInput
getActionIdentity, getAsyncJobCallback, getPermissionBypassReason, getPermissionEnforcement, setAsyncJobCallback, setPermissionEnforcement, withPermissionBypass, withPermissionEnforcement
-
Constructor Details
-
SendMessageInput
public SendMessageInput()
-
-
Method Details
-
getTo
Getter for to -
setTo
Setter for to -
withTo
Fluent setter for to -
getFrom
Getter for from -
setFrom
Setter for from -
withFrom
Fluent setter for from -
getSubject
Getter for subject -
setSubject
Setter for subject -
withSubject
Fluent setter for subject -
getContentList
-
setContentList
-
withContentList
Fluent setter for contentList -
getAttachmentList
Getter for attachmentList -
setAttachmentList
Setter for attachmentList -
withAttachmentList
Fluent setter for attachmentList -
withContent
-
addContent
-
withAttachment
-
addAttachment
-
getMessagingProviderName
Getter for messagingProviderName -
setMessagingProviderName
Setter for messagingProviderName -
withMessagingProviderName
Fluent setter for messagingProviderName -
getTemplateName
Getter for templateName. Provider template name. Requires the TEMPLATES capability. -
setTemplateName
Setter for templateName -
withTemplateName
Fluent setter for templateName -
getVariables
Getter for variables. Template variables; advisory when no template is selected. -
setVariables
Setter for variables -
withVariables
Fluent setter for variables -
getIdempotencyKey
Getter for idempotencyKey. Provider deduplication key. Requires the IDEMPOTENCY capability. -
setIdempotencyKey
Setter for idempotencyKey -
withIdempotencyKey
Fluent setter for idempotencyKey -
getCategory
Getter for category. Conventional values: TRANSACTIONAL, NOTIFICATION, MARKETING, SECURITY. Providers may refuse unknown categories. -
setCategory
Setter for category -
withCategory
Fluent setter for category -
getLinkedTableName
Getter for linkedTableName. Advisory name of the table associated with this message. -
setLinkedTableName
Setter for linkedTableName -
withLinkedTableName
Fluent setter for linkedTableName -
getLinkedRecordId
Getter for linkedRecordId. Advisory identifier of the record associated with this message. -
setLinkedRecordId
Setter for linkedRecordId -
withLinkedRecordId
Fluent setter for linkedRecordId -
getSenderName
Getter for senderName. Calling qbit or process name for audit; distinct from the from party. -
setSenderName
Setter for senderName -
withSenderName
Fluent setter for senderName -
getLocale
Getter for locale. Advisory locale for provider rendering. -
setLocale
Setter for locale -
withLocale
Fluent setter for locale -
withVariable
Add or replace one variable, initializing the map when needed. -
withLinkedRecord
Fluent setter for the associated table and record identifier.
-