Class BandwidthMessageItem


  • public class BandwidthMessageItem
    extends Object
    This is a model class for BandwidthMessageItem type.
    • Constructor Detail

      • BandwidthMessageItem

        public BandwidthMessageItem()
        Default constructor.
      • BandwidthMessageItem

        public BandwidthMessageItem​(String messageId,
                                    String accountId,
                                    String sourceTn,
                                    String destinationTn,
                                    String messageStatus,
                                    String messageDirection,
                                    String messageType,
                                    Integer segmentCount,
                                    Integer errorCode,
                                    String receiveTime,
                                    String carrierName,
                                    Integer messageSize,
                                    Integer messageLength,
                                    Integer attachmentCount,
                                    Integer recipientCount,
                                    String campaignClass)
        Initialization constructor.
        Parameters:
        messageId - String value for messageId.
        accountId - String value for accountId.
        sourceTn - String value for sourceTn.
        destinationTn - String value for destinationTn.
        messageStatus - String value for messageStatus.
        messageDirection - String value for messageDirection.
        messageType - String value for messageType.
        segmentCount - Integer value for segmentCount.
        errorCode - Integer value for errorCode.
        receiveTime - String value for receiveTime.
        carrierName - String value for carrierName.
        messageSize - Integer value for messageSize.
        messageLength - Integer value for messageLength.
        attachmentCount - Integer value for attachmentCount.
        recipientCount - Integer value for recipientCount.
        campaignClass - String value for campaignClass.
    • Method Detail

      • getMessageId

        public String getMessageId()
        Getter for MessageId. The message id
        Returns:
        Returns the String
      • setMessageId

        public void setMessageId​(String messageId)
        Setter for MessageId. The message id
        Parameters:
        messageId - Value for String
      • getAccountId

        public String getAccountId()
        Getter for AccountId. The account id of the message
        Returns:
        Returns the String
      • setAccountId

        public void setAccountId​(String accountId)
        Setter for AccountId. The account id of the message
        Parameters:
        accountId - Value for String
      • getSourceTn

        public String getSourceTn()
        Getter for SourceTn. The source phone number of the message
        Returns:
        Returns the String
      • setSourceTn

        public void setSourceTn​(String sourceTn)
        Setter for SourceTn. The source phone number of the message
        Parameters:
        sourceTn - Value for String
      • getDestinationTn

        public String getDestinationTn()
        Getter for DestinationTn. The recipient phone number of the message
        Returns:
        Returns the String
      • setDestinationTn

        public void setDestinationTn​(String destinationTn)
        Setter for DestinationTn. The recipient phone number of the message
        Parameters:
        destinationTn - Value for String
      • getMessageStatus

        public String getMessageStatus()
        Getter for MessageStatus. The status of the message
        Returns:
        Returns the String
      • setMessageStatus

        public void setMessageStatus​(String messageStatus)
        Setter for MessageStatus. The status of the message
        Parameters:
        messageStatus - Value for String
      • getMessageDirection

        public String getMessageDirection()
        Getter for MessageDirection. The direction of the message relative to Bandwidth. INBOUND or OUTBOUND
        Returns:
        Returns the String
      • setMessageDirection

        public void setMessageDirection​(String messageDirection)
        Setter for MessageDirection. The direction of the message relative to Bandwidth. INBOUND or OUTBOUND
        Parameters:
        messageDirection - Value for String
      • getMessageType

        public String getMessageType()
        Getter for MessageType. The type of message. sms or mms
        Returns:
        Returns the String
      • setMessageType

        public void setMessageType​(String messageType)
        Setter for MessageType. The type of message. sms or mms
        Parameters:
        messageType - Value for String
      • getSegmentCount

        public Integer getSegmentCount()
        Getter for SegmentCount. The number of segments the message was sent as
        Returns:
        Returns the Integer
      • setSegmentCount

        public void setSegmentCount​(Integer segmentCount)
        Setter for SegmentCount. The number of segments the message was sent as
        Parameters:
        segmentCount - Value for Integer
      • getErrorCode

        public Integer getErrorCode()
        Getter for ErrorCode. The numeric error code of the message
        Returns:
        Returns the Integer
      • setErrorCode

        public void setErrorCode​(Integer errorCode)
        Setter for ErrorCode. The numeric error code of the message
        Parameters:
        errorCode - Value for Integer
      • getReceiveTime

        public String getReceiveTime()
        Getter for ReceiveTime. The ISO 8601 datetime of the message
        Returns:
        Returns the String
      • setReceiveTime

        public void setReceiveTime​(String receiveTime)
        Setter for ReceiveTime. The ISO 8601 datetime of the message
        Parameters:
        receiveTime - Value for String
      • getCarrierName

        public String getCarrierName()
        Getter for CarrierName. The name of the carrier. Not currently supported for MMS, coming soon
        Returns:
        Returns the String
      • setCarrierName

        public void setCarrierName​(String carrierName)
        Setter for CarrierName. The name of the carrier. Not currently supported for MMS, coming soon
        Parameters:
        carrierName - Value for String
      • getMessageSize

        public Integer getMessageSize()
        Getter for MessageSize. The size of the message including message content and headers
        Returns:
        Returns the Integer
      • setMessageSize

        public void setMessageSize​(Integer messageSize)
        Setter for MessageSize. The size of the message including message content and headers
        Parameters:
        messageSize - Value for Integer
      • getMessageLength

        public Integer getMessageLength()
        Getter for MessageLength. The length of the message content
        Returns:
        Returns the Integer
      • setMessageLength

        public void setMessageLength​(Integer messageLength)
        Setter for MessageLength. The length of the message content
        Parameters:
        messageLength - Value for Integer
      • getAttachmentCount

        public Integer getAttachmentCount()
        Getter for AttachmentCount. The number of attachments the message has
        Returns:
        Returns the Integer
      • setAttachmentCount

        public void setAttachmentCount​(Integer attachmentCount)
        Setter for AttachmentCount. The number of attachments the message has
        Parameters:
        attachmentCount - Value for Integer
      • getRecipientCount

        public Integer getRecipientCount()
        Getter for RecipientCount. The number of recipients the message has
        Returns:
        Returns the Integer
      • setRecipientCount

        public void setRecipientCount​(Integer recipientCount)
        Setter for RecipientCount. The number of recipients the message has
        Parameters:
        recipientCount - Value for Integer
      • getCampaignClass

        public String getCampaignClass()
        Getter for CampaignClass. The campaign class of the message, if it has one
        Returns:
        Returns the String
      • setCampaignClass

        public void setCampaignClass​(String campaignClass)
        Setter for CampaignClass. The campaign class of the message, if it has one
        Parameters:
        campaignClass - Value for String
      • toString

        public String toString()
        Converts this BandwidthMessageItem into string format.
        Overrides:
        toString in class Object
        Returns:
        String representation of this class