
com.azure.communication.chat.models.ListChatMessagesOptions 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.models;
import com.azure.core.annotation.Fluent;
import java.time.OffsetDateTime;
/**
* Additional parameters for chat messages operation.
*/
@Fluent
public final class ListChatMessagesOptions {
private Integer maxPageSize;
private OffsetDateTime startTime;
/**
* Gets the maximum page size. It represents the number of messages being requested.
*
* @return The maximum page size.
*/
public Integer getMaxPageSize() {
return maxPageSize;
}
/**
* Set the maximum page size. It represents the number of messages being requested.
*
* @param maxPageSize The maximum page size.
* @return The {@link ListChatMessagesOptions} object itself.
*/
public ListChatMessagesOptions setMaxPageSize(Integer maxPageSize) {
this.maxPageSize = maxPageSize;
return this;
}
/**
* Gets the start time for the range to query.
*
* @return The start time.
*/
public OffsetDateTime getStartTime() {
return startTime;
}
/**
* Sets the start time for the range to query.
*
* @param startTime The start time.
* @return The {@link ListChatMessagesOptions} object itself.
*/
public ListChatMessagesOptions setStartTime(OffsetDateTime startTime) {
this.startTime = startTime;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy