Package com.azure.core.models
Class MessageContent
java.lang.Object
com.azure.core.models.MessageContent
An abstraction for a message containing a content type along with its data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the message body.Gets the content type.setBodyAsBinaryData(BinaryData binaryData) Sets the message body.setContentType(String contentType) Sets the content type.
-
Constructor Details
-
MessageContent
public MessageContent()
-
-
Method Details
-
getBodyAsBinaryData
Gets the message body.- Returns:
- The message body.
-
setBodyAsBinaryData
Sets the message body.- Parameters:
binaryData- The message body.- Returns:
- The updated
MessageContentobject.
-
getContentType
Gets the content type.- Returns:
- The content type.
-
setContentType
Sets the content type.- Parameters:
contentType- The content type.- Returns:
- The updated
MessageContentobject.
-