Use aai-common release version in traversal
[aai/traversal.git] / aai-traversal / src / main / java / org / onap / aai / rest / search / CustomQueryTestDTO.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20 package org.onap.aai.rest.search;
21
22 /*-
23  * ============LICENSE_START=======================================================
24  * org.onap.aai
25  * ================================================================================
26  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
27  * ================================================================================
28  * Licensed under the Apache License, Version 2.0 (the "License");
29  * you may not use this file except in compliance with the License.
30  * You may obtain a copy of the License at
31  * 
32  *      http://www.apache.org/licenses/LICENSE-2.0
33  * 
34  * Unless required by applicable law or agreed to in writing, software
35  * distributed under the License is distributed on an "AS IS" BASIS,
36  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
37  * See the License for the specific language governing permissions and
38  * limitations under the License.
39  * ============LICENSE_END=========================================================
40  */
41
42 import com.beust.jcommander.internal.Maps;
43 import com.fasterxml.jackson.annotation.JsonProperty;
44
45 import java.util.LinkedHashMap;
46 import java.util.List;
47 import java.util.Map;
48
49 public class CustomQueryTestDTO {
50
51     @JsonProperty("stored-query")
52     private String storedQuery;
53
54     @JsonProperty("vertices")
55     private List<LinkedHashMap<String, String>> verticesDtos;
56
57     @JsonProperty("edges")
58     private List<LinkedHashMap<String, String>> edgesDtos;
59
60     @JsonProperty("optional-properties")
61     private Map<String, String> queryOptionalProperties = Maps.newHashMap();
62
63     @JsonProperty("required-properties")
64     private Map<String, String> queryRequiredProperties = Maps.newHashMap();
65
66     @JsonProperty("expected-result")
67     private ExpectedResultsDto expectedResultsDtos;
68
69     public String getStoredQuery() {
70         return storedQuery;
71     }
72
73     public void setStoredQuery(String storedQuery) {
74         this.storedQuery = storedQuery;
75     }
76
77     public List<LinkedHashMap<String, String>> getVerticesDtos() {
78         return verticesDtos;
79     }
80
81     public void setVerticesDtos(List<LinkedHashMap<String, String>> verticesDtos) {
82         this.verticesDtos = verticesDtos;
83     }
84
85     public List<LinkedHashMap<String, String>> getEdgesDtos() {
86         return edgesDtos;
87     }
88
89     public void setEdgesDtos(List<LinkedHashMap<String, String>> edgesDtos) {
90         this.edgesDtos = edgesDtos;
91     }
92
93     public Map<String, String> getQueryOptionalProperties() {
94         return queryOptionalProperties;
95     }
96
97     public void setQueryOptionalProperties(Map<String, String> queryOptionalProperties) {
98         this.queryOptionalProperties = queryOptionalProperties;
99     }
100
101     public Map<String, String> getQueryRequiredProperties() {
102         return queryRequiredProperties;
103     }
104
105     public void setQueryRequiredProperties(Map<String, String> queryRequiredProperties) {
106         this.queryRequiredProperties = queryRequiredProperties;
107     }
108
109     public ExpectedResultsDto getExpectedResultsDtos() {
110         return expectedResultsDtos;
111     }
112
113     public void setExpectedResultsDtos(ExpectedResultsDto expectedResultsDtos) {
114         this.expectedResultsDtos = expectedResultsDtos;
115     }
116
117 }