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

com.bandwidth.messaging.models.BandwidthMessagesList Maven / Gradle / Ivy

Go to download

The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs

There is a newer version: 12.0.1
Show newest version
/*
 * BandwidthLib
 *
 * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
 */

package com.bandwidth.messaging.models;

import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
import java.util.List;

/**
 * This is a model class for BandwidthMessagesList type.
 */
public class BandwidthMessagesList {
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer totalCount;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private PageInfo pageInfo;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List messages;

    /**
     * Default constructor.
     */
    public BandwidthMessagesList() {
    }

    /**
     * Initialization constructor.
     * @param  totalCount  Integer value for totalCount.
     * @param  pageInfo  PageInfo value for pageInfo.
     * @param  messages  List of BandwidthMessageItem value for messages.
     */
    public BandwidthMessagesList(
            Integer totalCount,
            PageInfo pageInfo,
            List messages) {
        this.totalCount = totalCount;
        this.pageInfo = pageInfo;
        this.messages = messages;
    }

    /**
     * Getter for TotalCount.
     * Total number of messages matched by the search
     * @return Returns the Integer
     */
    @JsonGetter("totalCount")
    public Integer getTotalCount() {
        return totalCount;
    }

    /**
     * Setter for TotalCount.
     * Total number of messages matched by the search
     * @param totalCount Value for Integer
     */
    @JsonSetter("totalCount")
    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    /**
     * Getter for PageInfo.
     * @return Returns the PageInfo
     */
    @JsonGetter("pageInfo")
    public PageInfo getPageInfo() {
        return pageInfo;
    }

    /**
     * Setter for PageInfo.
     * @param pageInfo Value for PageInfo
     */
    @JsonSetter("pageInfo")
    public void setPageInfo(PageInfo pageInfo) {
        this.pageInfo = pageInfo;
    }

    /**
     * Getter for Messages.
     * @return Returns the List of BandwidthMessageItem
     */
    @JsonGetter("messages")
    public List getMessages() {
        return messages;
    }

    /**
     * Setter for Messages.
     * @param messages Value for List of BandwidthMessageItem
     */
    @JsonSetter("messages")
    public void setMessages(List messages) {
        this.messages = messages;
    }

    /**
     * Converts this BandwidthMessagesList into string format.
     * @return String representation of this class
     */
    @Override
    public String toString() {
        return "BandwidthMessagesList [" + "totalCount=" + totalCount + ", pageInfo=" + pageInfo
                + ", messages=" + messages + "]";
    }

    /**
     * Builds a new {@link BandwidthMessagesList.Builder} object.
     * Creates the instance with the state of the current model.
     * @return a new {@link BandwidthMessagesList.Builder} object
     */
    public Builder toBuilder() {
        Builder builder = new Builder()
                .totalCount(getTotalCount())
                .pageInfo(getPageInfo())
                .messages(getMessages());
        return builder;
    }

    /**
     * Class to build instances of {@link BandwidthMessagesList}.
     */
    public static class Builder {
        private Integer totalCount;
        private PageInfo pageInfo;
        private List messages;



        /**
         * Setter for totalCount.
         * @param  totalCount  Integer value for totalCount.
         * @return Builder
         */
        public Builder totalCount(Integer totalCount) {
            this.totalCount = totalCount;
            return this;
        }

        /**
         * Setter for pageInfo.
         * @param  pageInfo  PageInfo value for pageInfo.
         * @return Builder
         */
        public Builder pageInfo(PageInfo pageInfo) {
            this.pageInfo = pageInfo;
            return this;
        }

        /**
         * Setter for messages.
         * @param  messages  List of BandwidthMessageItem value for messages.
         * @return Builder
         */
        public Builder messages(List messages) {
            this.messages = messages;
            return this;
        }

        /**
         * Builds a new {@link BandwidthMessagesList} object using the set fields.
         * @return {@link BandwidthMessagesList}
         */
        public BandwidthMessagesList build() {
            return new BandwidthMessagesList(totalCount, pageInfo, messages);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy