/* Copyright (c) 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package com.linkedin.restli.server; import com.linkedin.data.template.RecordTemplate; import java.util.List; /** * Create a response for batch-create method by including the id and the created entity in each create response. * * @param <K> - the key type of the resource. When using {@link com.linkedin.restli.common.ComplexResourceKey}, K should * be the entire {@code ComplexResourceKey} and not just the Key part of the complex key. * @param <V> - the value type of the resource. * * @author Boyang Chen */ public class BatchCreateKVResult<K, V extends RecordTemplate> { private final List<CreateKVResponse<K, V>> _results; public BatchCreateKVResult(List<CreateKVResponse<K, V>> results) { _results = results; } public List<CreateKVResponse<K, V>> getResults() { return _results; } }