
com.azure.communication.chat.implementation.models.ChatMessageContent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-communication-chat Show documentation
Show all versions of azure-communication-chat Show documentation
This package contains a Java SDK for Chat Azure Communication Services.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.communication.chat.implementation.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Content of a chat message. */
@Fluent
public final class ChatMessageContent {
/*
* Chat message content for messages of types text or html.
*/
@JsonProperty(value = "message")
private String message;
/*
* Chat message content for messages of type topicUpdated.
*/
@JsonProperty(value = "topic")
private String topic;
/*
* Chat message content for messages of types participantAdded or
* participantRemoved.
*/
@JsonProperty(value = "participants")
private List participants;
/*
* List of attachments for this message
*/
@JsonProperty(value = "attachments")
private List attachments;
/*
* Identifies a participant in Azure Communication services. A participant
* is, for example, a phone number or an Azure communication user. This
* model is polymorphic: Apart from kind and rawId, at most one further
* property may be set which must match the kind enum value.
*/
@JsonProperty(value = "initiatorCommunicationIdentifier")
private CommunicationIdentifierModel initiatorCommunicationIdentifier;
/**
* Get the message property: Chat message content for messages of types text or html.
*
* @return the message value.
*/
public String getMessage() {
return this.message;
}
/**
* Set the message property: Chat message content for messages of types text or html.
*
* @param message the message value to set.
* @return the ChatMessageContent object itself.
*/
public ChatMessageContent setMessage(String message) {
this.message = message;
return this;
}
/**
* Get the topic property: Chat message content for messages of type topicUpdated.
*
* @return the topic value.
*/
public String getTopic() {
return this.topic;
}
/**
* Set the topic property: Chat message content for messages of type topicUpdated.
*
* @param topic the topic value to set.
* @return the ChatMessageContent object itself.
*/
public ChatMessageContent setTopic(String topic) {
this.topic = topic;
return this;
}
/**
* Get the participants property: Chat message content for messages of types participantAdded or participantRemoved.
*
* @return the participants value.
*/
public List getParticipants() {
return this.participants;
}
/**
* Set the participants property: Chat message content for messages of types participantAdded or participantRemoved.
*
* @param participants the participants value to set.
* @return the ChatMessageContent object itself.
*/
public ChatMessageContent setParticipants(List participants) {
this.participants = participants;
return this;
}
/**
* Get the attachments property: List of attachments for this message.
*
* @return the attachments value.
*/
public List getAttachments() {
return this.attachments;
}
/**
* Set the attachments property: List of attachments for this message.
*
* @param attachments the attachments value to set.
* @return the ChatMessageContent object itself.
*/
public ChatMessageContent setAttachments(List attachments) {
this.attachments = attachments;
return this;
}
/**
* Get the initiatorCommunicationIdentifier property: Identifies a participant in Azure Communication services. A
* participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from
* kind and rawId, at most one further property may be set which must match the kind enum value.
*
* @return the initiatorCommunicationIdentifier value.
*/
public CommunicationIdentifierModel getInitiatorCommunicationIdentifier() {
return this.initiatorCommunicationIdentifier;
}
/**
* Set the initiatorCommunicationIdentifier property: Identifies a participant in Azure Communication services. A
* participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from
* kind and rawId, at most one further property may be set which must match the kind enum value.
*
* @param initiatorCommunicationIdentifier the initiatorCommunicationIdentifier value to set.
* @return the ChatMessageContent object itself.
*/
public ChatMessageContent setInitiatorCommunicationIdentifier(
CommunicationIdentifierModel initiatorCommunicationIdentifier) {
this.initiatorCommunicationIdentifier = initiatorCommunicationIdentifier;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy