Class BandwidthMessage


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

      • BandwidthMessage

        public BandwidthMessage()
        Default constructor.
      • BandwidthMessage

        public BandwidthMessage​(String id,
                                String owner,
                                String applicationId,
                                String time,
                                Integer segmentCount,
                                String direction,
                                List<String> to,
                                String from,
                                List<String> media,
                                String text,
                                String tag,
                                String priority)
        Initialization constructor.
        Parameters:
        id - String value for id.
        owner - String value for owner.
        applicationId - String value for applicationId.
        time - String value for time.
        segmentCount - Integer value for segmentCount.
        direction - String value for direction.
        to - List of String value for to.
        from - String value for from.
        media - List of String value for media.
        text - String value for text.
        tag - String value for tag.
        priority - String value for priority.
    • Method Detail

      • getId

        public String getId()
        Getter for Id. The id of the message
        Returns:
        Returns the String
      • setId

        public void setId​(String id)
        Setter for Id. The id of the message
        Parameters:
        id - Value for String
      • getOwner

        public String getOwner()
        Getter for Owner. The Bandwidth phone number associated with the message
        Returns:
        Returns the String
      • setOwner

        public void setOwner​(String owner)
        Setter for Owner. The Bandwidth phone number associated with the message
        Parameters:
        owner - Value for String
      • getApplicationId

        public String getApplicationId()
        Getter for ApplicationId. The application ID associated with the message
        Returns:
        Returns the String
      • setApplicationId

        public void setApplicationId​(String applicationId)
        Setter for ApplicationId. The application ID associated with the message
        Parameters:
        applicationId - Value for String
      • getTime

        public String getTime()
        Getter for Time. The datetime stamp of the message in ISO 8601
        Returns:
        Returns the String
      • setTime

        public void setTime​(String time)
        Setter for Time. The datetime stamp of the message in ISO 8601
        Parameters:
        time - Value for String
      • getSegmentCount

        public Integer getSegmentCount()
        Getter for SegmentCount. The number of segments the original message from the user is broken into before sending over to carrier networks
        Returns:
        Returns the Integer
      • setSegmentCount

        public void setSegmentCount​(Integer segmentCount)
        Setter for SegmentCount. The number of segments the original message from the user is broken into before sending over to carrier networks
        Parameters:
        segmentCount - Value for Integer
      • getDirection

        public String getDirection()
        Getter for Direction. The direction of the message relative to Bandwidth. Can be in or out
        Returns:
        Returns the String
      • setDirection

        public void setDirection​(String direction)
        Setter for Direction. The direction of the message relative to Bandwidth. Can be in or out
        Parameters:
        direction - Value for String
      • getTo

        public List<String> getTo()
        Getter for To. The phone number recipients of the message
        Returns:
        Returns the List of String
      • setTo

        public void setTo​(List<String> to)
        Setter for To. The phone number recipients of the message
        Parameters:
        to - Value for List of String
      • getFrom

        public String getFrom()
        Getter for From. The phone number the message was sent from
        Returns:
        Returns the String
      • setFrom

        public void setFrom​(String from)
        Setter for From. The phone number the message was sent from
        Parameters:
        from - Value for String
      • getMedia

        public List<String> getMedia()
        Getter for Media. The list of media URLs sent in the message
        Returns:
        Returns the List of String
      • setMedia

        public void setMedia​(List<String> media)
        Setter for Media. The list of media URLs sent in the message
        Parameters:
        media - Value for List of String
      • getText

        public String getText()
        Getter for Text. The contents of the message
        Returns:
        Returns the String
      • setText

        public void setText​(String text)
        Setter for Text. The contents of the message
        Parameters:
        text - Value for String
      • getTag

        public String getTag()
        Getter for Tag. The custom string set by the user
        Returns:
        Returns the String
      • setTag

        public void setTag​(String tag)
        Setter for Tag. The custom string set by the user
        Parameters:
        tag - Value for String
      • getPriority

        public String getPriority()
        Getter for Priority. The priority specified by the user
        Returns:
        Returns the String
      • setPriority

        public void setPriority​(String priority)
        Setter for Priority. The priority specified by the user
        Parameters:
        priority - Value for String
      • toString

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