001/*
002 *   Copyright 2024 Vonage
003 *
004 *   Licensed under the Apache License, Version 2.0 (the "License");
005 *   you may not use this file except in compliance with the License.
006 *   You may obtain a copy of the License at
007 *
008 *        http://www.apache.org/licenses/LICENSE-2.0
009 *
010 *   Unless required by applicable law or agreed to in writing, software
011 *   distributed under the License is distributed on an "AS IS" BASIS,
012 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 *   See the License for the specific language governing permissions and
014 *   limitations under the License.
015 */
016package com.vonage.client.proactiveconnect;
017
018import com.fasterxml.jackson.annotation.JsonProperty;
019import com.vonage.client.Jsonable;
020import com.vonage.client.JsonableBaseObject;
021
022/**
023 * Results from list upload.
024 */
025public class UploadListItemsResponse extends JsonableBaseObject {
026        private Integer inserted, updated, deleted;
027
028        protected UploadListItemsResponse() {
029        }
030
031        /**
032         * Items inserted in the list.
033         *
034         * @return The number of inserted items, or {@code null} if not applicable.
035         */
036        @JsonProperty("inserted")
037        public Integer getInserted() {
038                return inserted;
039        }
040
041        /**
042         * Items updated in the list.
043         *
044         * @return The number of updated items, or {@code null} if not applicable.
045         */
046        @JsonProperty("updated")
047        public Integer getUpdated() {
048                return updated;
049        }
050
051        /**
052         * Items deleted in the list.
053         *
054         * @return The number of deleted items, or {@code null} if not applicable.
055         */
056        @JsonProperty("deleted")
057        public Integer getDeleted() {
058                return deleted;
059        }
060        
061        /**
062         * Creates an instance of this class from a JSON payload.
063         *
064         * @param json The JSON string to parse.
065         * @return An instance of this class with the fields populated, if present.
066         */
067        public static UploadListItemsResponse fromJson(String json) {
068                return Jsonable.fromJson(json);
069        }
070}