Add missing distributionManagement section to poms
[aai/search-data-service.git] / search-data-service / src / main / java / org / onap / aai / sa / searchdbabstraction / elasticsearch / dao / ElasticSearchBulkOperationResult.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * Copyright © 2017-2018 Amdocs
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *       http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  */
21 package org.onap.aai.sa.searchdbabstraction.elasticsearch.dao;
22
23 import java.util.Arrays;
24
25 public class ElasticSearchBulkOperationResult {
26
27     private Integer took;
28     private Boolean errors;
29     private ElasticSearchResultItem[] items;
30
31     public ElasticSearchBulkOperationResult() {
32
33     }
34
35     public ElasticSearchResultItem[] getItems() {
36         return items;
37     }
38
39     public void setItems(ElasticSearchResultItem[] items) {
40         this.items = items;
41     }
42
43     public Integer getTook() {
44         return took;
45     }
46
47     public void setTook(Integer took) {
48         this.took = took;
49     }
50
51     public Boolean getErrors() {
52         return errors;
53     }
54
55     public void setErrors(Boolean errors) {
56         this.errors = errors;
57     }
58
59     @Override
60     public String toString() {
61         return "ElasticSearchOperationResult [took=" + took + ", errors=" + errors + ", items=" + Arrays.toString(items)
62                 + "]";
63     }
64
65
66 }