azure-docs-sdk-java/docs-ref-autogen/com.azure.communication.cha...

137 строки
8.5 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.communication.chat.models.ChatAttachment"
fullName: "com.azure.communication.chat.models.ChatAttachment"
name: "ChatAttachment"
nameWithType: "ChatAttachment"
summary: "An attachment in a chat message."
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 final class **ChatAttachment**"
constructors:
- uid: "com.azure.communication.chat.models.ChatAttachment.ChatAttachment(java.lang.String,com.azure.communication.chat.models.ChatAttachmentType)"
fullName: "com.azure.communication.chat.models.ChatAttachment.ChatAttachment(String id, ChatAttachmentType attachmentType)"
name: "ChatAttachment(String id, ChatAttachmentType attachmentType)"
nameWithType: "ChatAttachment.ChatAttachment(String id, ChatAttachmentType attachmentType)"
summary: "Create a new instance of Chat<wbr>Attachment"
parameters:
- description: "the unique id of the chat attachment"
name: "id"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- description: "the type of attachment"
name: "attachmentType"
type: "<xref href=\"com.azure.communication.chat.models.ChatAttachmentType?alt=com.azure.communication.chat.models.ChatAttachmentType&text=ChatAttachmentType\" data-throw-if-not-resolved=\"False\" />"
syntax: "public ChatAttachment(String id, ChatAttachmentType attachmentType)"
desc: "Create a new instance of ChatAttachment"
methods:
- uid: "com.azure.communication.chat.models.ChatAttachment.getAttachmentType()"
fullName: "com.azure.communication.chat.models.ChatAttachment.getAttachmentType()"
name: "getAttachmentType()"
nameWithType: "ChatAttachment.getAttachmentType()"
summary: "Get the attachment<wbr>Type property: The type of attachment."
syntax: "public ChatAttachmentType getAttachmentType()"
desc: "Get the attachmentType property: The type of attachment."
returns:
description: "the attachmentType value."
type: "<xref href=\"com.azure.communication.chat.models.ChatAttachmentType?alt=com.azure.communication.chat.models.ChatAttachmentType&text=ChatAttachmentType\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.communication.chat.models.ChatAttachment.getId()"
fullName: "com.azure.communication.chat.models.ChatAttachment.getId()"
name: "getId()"
nameWithType: "ChatAttachment.getId()"
summary: "Get the id property: Id of the attachment."
syntax: "public String getId()"
desc: "Get the id property: Id of the attachment."
returns:
description: "the id value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.communication.chat.models.ChatAttachment.getName()"
fullName: "com.azure.communication.chat.models.ChatAttachment.getName()"
name: "getName()"
nameWithType: "ChatAttachment.getName()"
summary: "Get the name property: The name of the attachment content."
syntax: "public String getName()"
desc: "Get the name property: The name of the attachment content."
returns:
description: "the name value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.communication.chat.models.ChatAttachment.getPreviewUrl()"
fullName: "com.azure.communication.chat.models.ChatAttachment.getPreviewUrl()"
name: "getPreviewUrl()"
nameWithType: "ChatAttachment.getPreviewUrl()"
summary: "Get the preview<wbr>Url property: The URL where the preview of attachment can be downloaded."
syntax: "public String getPreviewUrl()"
desc: "Get the previewUrl property: The URL where the preview of attachment can be downloaded."
returns:
description: "the previewUrl value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.communication.chat.models.ChatAttachment.getUrl()"
fullName: "com.azure.communication.chat.models.ChatAttachment.getUrl()"
name: "getUrl()"
nameWithType: "ChatAttachment.getUrl()"
summary: "Get the url property: The URL where the attachment can be downloaded."
syntax: "public String getUrl()"
desc: "Get the url property: The URL where the attachment can be downloaded."
returns:
description: "the url value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.communication.chat.models.ChatAttachment.setName(java.lang.String)"
fullName: "com.azure.communication.chat.models.ChatAttachment.setName(String name)"
name: "setName(String name)"
nameWithType: "ChatAttachment.setName(String name)"
summary: "Set the name property: The name of the attachment content."
parameters:
- description: "the name value to set."
name: "name"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public ChatAttachment setName(String name)"
desc: "Set the name property: The name of the attachment content."
returns:
description: "the ChatAttachment object itself."
type: "<xref href=\"com.azure.communication.chat.models.ChatAttachment?alt=com.azure.communication.chat.models.ChatAttachment&text=ChatAttachment\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.communication.chat.models.ChatAttachment.setPreviewUrl(java.lang.String)"
fullName: "com.azure.communication.chat.models.ChatAttachment.setPreviewUrl(String previewUrl)"
name: "setPreviewUrl(String previewUrl)"
nameWithType: "ChatAttachment.setPreviewUrl(String previewUrl)"
summary: "Set the preview<wbr>Url property: The URL where the preview of attachment can be downloaded."
parameters:
- description: "the previewUrl value to set."
name: "previewUrl"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public ChatAttachment setPreviewUrl(String previewUrl)"
desc: "Set the previewUrl property: The URL where the preview of attachment can be downloaded."
returns:
description: "the ChatAttachment object itself."
type: "<xref href=\"com.azure.communication.chat.models.ChatAttachment?alt=com.azure.communication.chat.models.ChatAttachment&text=ChatAttachment\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.communication.chat.models.ChatAttachment.setUrl(java.lang.String)"
fullName: "com.azure.communication.chat.models.ChatAttachment.setUrl(String url)"
name: "setUrl(String url)"
nameWithType: "ChatAttachment.setUrl(String url)"
summary: "Set the url property: The URL where the attachment can be downloaded."
parameters:
- description: "the url value to set."
name: "url"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public ChatAttachment setUrl(String url)"
desc: "Set the url property: The URL where the attachment can be downloaded."
returns:
description: "the ChatAttachment object itself."
type: "<xref href=\"com.azure.communication.chat.models.ChatAttachment?alt=com.azure.communication.chat.models.ChatAttachment&text=ChatAttachment\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "An attachment in a chat message."
metadata: {}
package: "com.azure.communication.chat.models"
artifact: com.azure:azure-communication-chat:1.5.6