ChatMessagesCollection.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.implementation.models;

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** The ChatMessagesCollection model. */
@Immutable
public final class ChatMessagesCollection {
    /*
     * Collection of chat messages.
     */
    @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
    private List<ChatMessage> value;

    /*
     * If there are more chat messages that can be retrieved, the next link
     * will be populated.
     */
    @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
    private String nextLink;

    /**
     * Get the value property: Collection of chat messages.
     *
     * @return the value value.
     */
    public List<ChatMessage> getValue() {
        return this.value;
    }

    /**
     * Get the nextLink property: If there are more chat messages that can be retrieved, the next link will be
     * populated.
     *
     * @return the nextLink value.
     */
    public String getNextLink() {
        return this.nextLink;
    }
}