Class MessageContent


  • public class MessageContent
    extends Object
    An abstraction for a message containing a content type along with its data.
    • Constructor Detail

      • MessageContent

        public MessageContent()
    • Method Detail

      • getBodyAsBinaryData

        public BinaryData getBodyAsBinaryData()
        Gets the message body.
        Returns:
        The message body.
      • setBodyAsBinaryData

        public MessageContent setBodyAsBinaryData​(BinaryData binaryData)
        Sets the message body.
        Parameters:
        binaryData - The message body.
        Returns:
        The updated MessageContent object.
      • getContentType

        public String getContentType()
        Gets the content type.
        Returns:
        The content type.
      • setContentType

        public MessageContent setContentType​(String contentType)
        Sets the content type.
        Parameters:
        contentType - The content type.
        Returns:
        The updated MessageContent object.