SendChatMessageOptions.java
// 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.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The SendChatMessageOptions model. */
@Fluent
public final class SendChatMessageOptions {
/*
* The chat message priority.
*/
@JsonProperty(value = "priority")
private ChatMessagePriority priority;
/*
* Chat message content.
*/
@JsonProperty(value = "content", required = true)
private String content;
/*
* The display name of the chat message sender. This property is used to
* populate sender name for push notifications.
*/
@JsonProperty(value = "senderDisplayName")
private String senderDisplayName;
/**
* Get the priority property: The chat message priority.
*
* @return the priority value.
*/
public ChatMessagePriority getPriority() {
return this.priority;
}
/**
* Set the priority property: The chat message priority.
*
* @param priority the priority value to set.
* @return the SendChatMessageOptions object itself.
*/
public SendChatMessageOptions setPriority(ChatMessagePriority priority) {
this.priority = priority;
return this;
}
/**
* Get the content property: Chat message content.
*
* @return the content value.
*/
public String getContent() {
return this.content;
}
/**
* Set the content property: Chat message content.
*
* @param content the content value to set.
* @return the SendChatMessageOptions object itself.
*/
public SendChatMessageOptions setContent(String content) {
this.content = content;
return this;
}
/**
* Get the senderDisplayName property: The display name of the chat message sender. This property is used to
* populate sender name for push notifications.
*
* @return the senderDisplayName value.
*/
public String getSenderDisplayName() {
return this.senderDisplayName;
}
/**
* Set the senderDisplayName property: The display name of the chat message sender. This property is used to
* populate sender name for push notifications.
*
* @param senderDisplayName the senderDisplayName value to set.
* @return the SendChatMessageOptions object itself.
*/
public SendChatMessageOptions setSenderDisplayName(String senderDisplayName) {
this.senderDisplayName = senderDisplayName;
return this;
}
}