All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.communication.chat.models.ListChatMessagesOptions Maven / Gradle / Ivy

There is a newer version: 1.5.7
Show newest version
// 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