86 строки
5.8 KiB
YAML
86 строки
5.8 KiB
YAML
### YamlMime:JavaType
|
|
uid: "com.azure.core.models.MessageContent"
|
|
fullName: "com.azure.core.models.MessageContent"
|
|
name: "MessageContent"
|
|
nameWithType: "MessageContent"
|
|
summary: "Represents a message with a specific content type and data."
|
|
inheritances:
|
|
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
|
|
inheritedClassMethods:
|
|
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
|
|
methodsRef:
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
|
|
syntax: "public class **MessageContent**"
|
|
constructors:
|
|
- uid: "com.azure.core.models.MessageContent.MessageContent()"
|
|
fullName: "com.azure.core.models.MessageContent.MessageContent()"
|
|
name: "MessageContent()"
|
|
nameWithType: "MessageContent.MessageContent()"
|
|
summary: "Creates a new instance of <xref uid=\"com.azure.core.models.MessageContent\" data-throw-if-not-resolved=\"false\" data-raw-source=\"MessageContent\"></xref>."
|
|
syntax: "public MessageContent()"
|
|
desc: "Creates a new instance of <xref uid=\"com.azure.core.models.MessageContent\" data-throw-if-not-resolved=\"false\" data-raw-source=\"MessageContent\"></xref>."
|
|
methods:
|
|
- uid: "com.azure.core.models.MessageContent.getBodyAsBinaryData()"
|
|
fullName: "com.azure.core.models.MessageContent.getBodyAsBinaryData()"
|
|
name: "getBodyAsBinaryData()"
|
|
nameWithType: "MessageContent.getBodyAsBinaryData()"
|
|
summary: "Gets the message body."
|
|
syntax: "public BinaryData getBodyAsBinaryData()"
|
|
desc: "Gets the message body."
|
|
returns:
|
|
description: "The message body."
|
|
type: "<xref href=\"com.azure.core.util.BinaryData?alt=com.azure.core.util.BinaryData&text=BinaryData\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.core.models.MessageContent.getContentType()"
|
|
fullName: "com.azure.core.models.MessageContent.getContentType()"
|
|
name: "getContentType()"
|
|
nameWithType: "MessageContent.getContentType()"
|
|
summary: "Gets the content type."
|
|
syntax: "public String getContentType()"
|
|
desc: "Gets the content type."
|
|
returns:
|
|
description: "The content type."
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- uid: "com.azure.core.models.MessageContent.setBodyAsBinaryData(com.azure.core.util.BinaryData)"
|
|
fullName: "com.azure.core.models.MessageContent.setBodyAsBinaryData(BinaryData binaryData)"
|
|
name: "setBodyAsBinaryData(BinaryData binaryData)"
|
|
nameWithType: "MessageContent.setBodyAsBinaryData(BinaryData binaryData)"
|
|
summary: "Sets the message body."
|
|
parameters:
|
|
- description: "The message body."
|
|
name: "binaryData"
|
|
type: "<xref href=\"com.azure.core.util.BinaryData?alt=com.azure.core.util.BinaryData&text=BinaryData\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public MessageContent setBodyAsBinaryData(BinaryData binaryData)"
|
|
desc: "Sets the message body."
|
|
returns:
|
|
description: "The updated <xref uid=\"com.azure.core.models.MessageContent\" data-throw-if-not-resolved=\"false\" data-raw-source=\"MessageContent\"></xref> object."
|
|
type: "<xref href=\"com.azure.core.models.MessageContent?alt=com.azure.core.models.MessageContent&text=MessageContent\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.core.models.MessageContent.setContentType(java.lang.String)"
|
|
fullName: "com.azure.core.models.MessageContent.setContentType(String contentType)"
|
|
name: "setContentType(String contentType)"
|
|
nameWithType: "MessageContent.setContentType(String contentType)"
|
|
summary: "Sets the content type."
|
|
parameters:
|
|
- description: "The content type."
|
|
name: "contentType"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public MessageContent setContentType(String contentType)"
|
|
desc: "Sets the content type."
|
|
returns:
|
|
description: "The updated <xref uid=\"com.azure.core.models.MessageContent\" data-throw-if-not-resolved=\"false\" data-raw-source=\"MessageContent\"></xref> object."
|
|
type: "<xref href=\"com.azure.core.models.MessageContent?alt=com.azure.core.models.MessageContent&text=MessageContent\" data-throw-if-not-resolved=\"False\" />"
|
|
type: "class"
|
|
desc: "Represents a message with a specific content type and data.\n\nThis class encapsulates a message that includes a content type and its corresponding data. The data is represented as a <xref uid=\"com.azure.core.util.BinaryData\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BinaryData\"></xref> object, and the content type is a string.\n\nThis class is useful when you want to work with a message that includes a specific type of content and its corresponding data. For example, you can use it to represent a message with JSON data, XML data, or plain text data."
|
|
metadata: {}
|
|
package: "com.azure.core.models"
|
|
artifact: com.azure:azure-core:1.54.0
|