Class BandwidthMessage

java.lang.Object
com.bandwidth.messaging.models.BandwidthMessage

public class BandwidthMessage
extends java.lang.Object
This is a model class for BandwidthMessage type.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  BandwidthMessage.Builder
    Class to build instances of BandwidthMessage.
  • Constructor Summary

    Constructors 
    Constructor Description
    BandwidthMessage()
    Default constructor.
    BandwidthMessage​(java.lang.String id, java.lang.String owner, java.lang.String applicationId, java.lang.String time, java.lang.Integer segmentCount, java.lang.String direction, java.util.List<java.lang.String> to, java.lang.String from, java.util.List<java.lang.String> media, java.lang.String text, java.lang.String tag, java.lang.String priority)
    Initialization constructor.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getApplicationId()
    Getter for ApplicationId.
    java.lang.String getDirection()
    Getter for Direction.
    java.lang.String getFrom()
    Getter for From.
    java.lang.String getId()
    Getter for Id.
    java.util.List<java.lang.String> getMedia()
    Getter for Media.
    java.lang.String getOwner()
    Getter for Owner.
    java.lang.String getPriority()
    Getter for Priority.
    java.lang.Integer getSegmentCount()
    Getter for SegmentCount.
    java.lang.String getTag()
    Getter for Tag.
    java.lang.String getText()
    Getter for Text.
    java.lang.String getTime()
    Getter for Time.
    java.util.List<java.lang.String> getTo()
    Getter for To.
    void setApplicationId​(java.lang.String applicationId)
    Setter for ApplicationId.
    void setDirection​(java.lang.String direction)
    Setter for Direction.
    void setFrom​(java.lang.String from)
    Setter for From.
    void setId​(java.lang.String id)
    Setter for Id.
    void setMedia​(java.util.List<java.lang.String> media)
    Setter for Media.
    void setOwner​(java.lang.String owner)
    Setter for Owner.
    void setPriority​(java.lang.String priority)
    Setter for Priority.
    void setSegmentCount​(java.lang.Integer segmentCount)
    Setter for SegmentCount.
    void setTag​(java.lang.String tag)
    Setter for Tag.
    void setText​(java.lang.String text)
    Setter for Text.
    void setTime​(java.lang.String time)
    Setter for Time.
    void setTo​(java.util.List<java.lang.String> to)
    Setter for To.
    BandwidthMessage.Builder toBuilder()
    Builds a new BandwidthMessage.Builder object.
    java.lang.String toString()
    Converts this BandwidthMessage into string format.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BandwidthMessage

      public BandwidthMessage()
      Default constructor.
    • BandwidthMessage

      public BandwidthMessage​(java.lang.String id, java.lang.String owner, java.lang.String applicationId, java.lang.String time, java.lang.Integer segmentCount, java.lang.String direction, java.util.List<java.lang.String> to, java.lang.String from, java.util.List<java.lang.String> media, java.lang.String text, java.lang.String tag, java.lang.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 Details

    • getId

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

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

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

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

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

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

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

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

      public java.lang.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​(java.lang.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 java.lang.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​(java.lang.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 java.util.List<java.lang.String> getTo()
      Getter for To. The phone number recipients of the message
      Returns:
      Returns the List of String
    • setTo

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

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

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

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

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

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

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

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

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

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

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

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

      public BandwidthMessage.Builder toBuilder()
      Builds a new BandwidthMessage.Builder object. Creates the instance with the state of the current model.
      Returns:
      a new BandwidthMessage.Builder object