Class SendAgentlessOutboundMessageRequest

java.lang.Object
com.mypurecloud.sdk.v2.model.SendAgentlessOutboundMessageRequest
All Implemented Interfaces:
Serializable

public class SendAgentlessOutboundMessageRequest extends Object implements Serializable
SendAgentlessOutboundMessageRequest
See Also:
  • Constructor Details

    • SendAgentlessOutboundMessageRequest

      public SendAgentlessOutboundMessageRequest()
    • SendAgentlessOutboundMessageRequest

      public SendAgentlessOutboundMessageRequest(Boolean initWithEmptyList)
  • Method Details

    • fromAddress

      public SendAgentlessOutboundMessageRequest fromAddress(String fromAddress)
      The messaging address of the sender of the message. For an SMS messenger type, this must be a currently provisioned SMS phone number. For a WhatsApp, Open and Apple messenger types use the provisioned integration’s ID. For WebMessaging use the DeploymentId
    • getFromAddress

      public String getFromAddress()
    • setFromAddress

      public void setFromAddress(String fromAddress)
    • toAddress

      public SendAgentlessOutboundMessageRequest toAddress(String toAddress)
      The messaging address of the recipient of the message. For an Apple Invitation and SMS messenger type, the phone number address must be in E.164 format. E.g. +13175555555 or +34234234234. For WhatsApp messenger type, use a WhatsApp ID of a phone number. E.g for a E.164 formatted phone number `+13175555555`, a WhatsApp ID would be 13175555555. For WebMessaging this cannot be used, instead use externalContactId
    • getToAddress

      public String getToAddress()
    • setToAddress

      public void setToAddress(String toAddress)
    • toAddressMessengerType

      The recipient messaging address messenger type.
    • getToAddressMessengerType

    • setToAddressMessengerType

      public void setToAddressMessengerType(SendAgentlessOutboundMessageRequest.ToAddressMessengerTypeEnum toAddressMessengerType)
    • textBody

      public SendAgentlessOutboundMessageRequest textBody(String textBody)
      The text of the message to send. This field is required in the case of SMS messenger type. Maximum character counts are: SMS - 765 characters, other channels - 2000 characters.
    • getTextBody

      public String getTextBody()
    • setTextBody

      public void setTextBody(String textBody)
    • messagingTemplate

      public SendAgentlessOutboundMessageRequest messagingTemplate(SendMessagingTemplateRequest messagingTemplate)
      The messaging template to use in the case of WhatsApp messenger type. This field is required when using WhatsApp messenger type
    • getMessagingTemplate

      public SendMessagingTemplateRequest getMessagingTemplate()
    • setMessagingTemplate

      public void setMessagingTemplate(SendMessagingTemplateRequest messagingTemplate)
    • useExistingActiveConversation

      public SendAgentlessOutboundMessageRequest useExistingActiveConversation(Boolean useExistingActiveConversation)
      Use an existing active conversation to send the agentless outbound message. Set this parameter to 'true' to use active conversation. Default value: false
    • getUseExistingActiveConversation

      public Boolean getUseExistingActiveConversation()
    • setUseExistingActiveConversation

      public void setUseExistingActiveConversation(Boolean useExistingActiveConversation)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object