Class PollOptionContent


  • public class PollOptionContent
    extends java.lang.Object
    • Constructor Detail

      • PollOptionContent

        public PollOptionContent()
    • Method Detail

      • withOptionId

        public PollOptionContent withOptionId​(java.lang.String optionId)
        Set id of option. Will override the previous value if it was set.
        Parameters:
        optionId - option id.
        Returns:
        same instance for a method chaining.
      • withText

        public PollOptionContent withText​(java.lang.String text)
        Set text of option. Will override the previous value if it was set.
        Parameters:
        text - option text.
        Returns:
        same instance for a method chaining.
      • withAttachment

        public PollOptionContent withAttachment​(MediaAttachment attachment)
        Set attachment. Will override the previous value if it was set.
        Parameters:
        attachment - media attachment.
        Returns:
        same instance for a method chaining.
      • getAttachment

        public MediaAttachment getAttachment()
        Returns:
        attachment.
      • getText

        public java.lang.String getText()
        Returns:
        text.
      • getOptionId

        public java.lang.String getOptionId()
        Returns:
        option id.