Class ChatAttachment
java.lang.Object
com.azure.communication.chat.models.ChatAttachment
An attachment in a chat message.
-
Constructor Summary
ConstructorsConstructorDescriptionChatAttachment
(String id, ChatAttachmentType attachmentType) Create a new instance of ChatAttachment -
Method Summary
Modifier and TypeMethodDescriptionGet the attachmentType property: The type of attachment.getId()
Get the id property: Id of the attachment.getName()
Get the name property: The name of the attachment content.Get the previewUrl property: The URL where the preview of attachment can be downloaded.getUrl()
Get the url property: The URL where the attachment can be downloaded.Set the name property: The name of the attachment content.setPreviewUrl
(String previewUrl) Set the previewUrl property: The URL where the preview of attachment can be downloaded.Set the url property: The URL where the attachment can be downloaded.
-
Constructor Details
-
ChatAttachment
Create a new instance of ChatAttachment- Parameters:
id
- the unique id of the chat attachmentattachmentType
- the type of attachment
-
-
Method Details
-
getId
Get the id property: Id of the attachment.- Returns:
- the id value.
-
getAttachmentType
Get the attachmentType property: The type of attachment.- Returns:
- the attachmentType value.
-
getName
Get the name property: The name of the attachment content.- Returns:
- the name value.
-
setName
Set the name property: The name of the attachment content.- Parameters:
name
- the name value to set.- Returns:
- the ChatAttachment object itself.
-
getUrl
Get the url property: The URL where the attachment can be downloaded.- Returns:
- the url value.
-
setUrl
Set the url property: The URL where the attachment can be downloaded.- Parameters:
url
- the url value to set.- Returns:
- the ChatAttachment object itself.
-
getPreviewUrl
Get the previewUrl property: The URL where the preview of attachment can be downloaded.- Returns:
- the previewUrl value.
-
setPreviewUrl
Set the previewUrl property: The URL where the preview of attachment can be downloaded.- Parameters:
previewUrl
- the previewUrl value to set.- Returns:
- the ChatAttachment object itself.
-