Merge "Remove redundant robot variable"
[integration/csit.git] / plans / so / integration-etsi-testing / so-simulators / aai-simulator / src / main / java / org / onap / so / aaisimulator / models / Results.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.io.Serializable;
23 import java.util.ArrayList;
24 import java.util.List;
25 import java.util.Map;
26 import com.fasterxml.jackson.annotation.JsonIgnore;
27 import com.fasterxml.jackson.annotation.JsonProperty;
28
29 /**
30  * @author waqas.ikram@ericsson.com
31  *
32  */
33 public class Results implements Serializable {
34
35     private static final long serialVersionUID = 3967660859271162759L;
36
37     @JsonProperty("results")
38     private List<Map<String, Object>> values = new ArrayList<>();
39
40     public Results() {}
41
42     public Results(final Map<String, Object> value) {
43         this.values.add(value);
44     }
45
46     /**
47      * @return the values
48      */
49     public List<Map<String, Object>> getValues() {
50         return values;
51     }
52
53     /**
54      * @param values the values to set
55      */
56     public void setValues(final List<Map<String, Object>> values) {
57         this.values = values;
58     }
59
60
61     @JsonIgnore
62     @Override
63     public String toString() {
64         return "Result [values=" + values + "]";
65     }
66
67 }