437aaf06886ec65b7fd6c4d8b03aae8395b6739d
[integration/csit.git] / plans / so / integration-etsi-testing / so-simulators / aai-simulator / src / main / java / org / onap / so / aaisimulator / models / Result.java
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2019 Nordix Foundation.
4  * ================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20 package org.onap.so.aaisimulator.models;
21
22 import java.util.ArrayList;
23 import java.util.List;
24 import java.util.Map;
25 import com.fasterxml.jackson.annotation.JsonIgnore;
26 import com.fasterxml.jackson.annotation.JsonRootName;
27
28 /**
29  * @author waqas.ikram@ericsson.com
30  *
31  */
32 @JsonRootName(value = "result")
33 public class Result {
34
35     private List<Map<String, Object>> values = new ArrayList<>();
36
37     public Result() {}
38
39     public Result(final Map<String, Object> value) {
40         this.values.add(value);
41     }
42
43     /**
44      * @return the values
45      */
46     public List<Map<String, Object>> getValues() {
47         return values;
48     }
49
50     /**
51      * @param values the values to set
52      */
53     public void setValues(final List<Map<String, Object>> values) {
54         this.values = values;
55     }
56
57
58     @JsonIgnore
59     @Override
60     public String toString() {
61         return "Result [values=" + values + "]";
62     }
63
64 }