2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
20 package org.onap.aai.rest.search;
23 * ============LICENSE_START=======================================================
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
32 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
42 import com.beust.jcommander.internal.Maps;
43 import com.fasterxml.jackson.annotation.JsonProperty;
45 import java.util.LinkedHashMap;
46 import java.util.List;
49 public class CustomQueryTestDTO {
51 @JsonProperty("stored-query")
52 private String storedQuery;
54 @JsonProperty("vertices")
55 private List<LinkedHashMap<String, String>> verticesDtos;
57 @JsonProperty("edges")
58 private List<LinkedHashMap<String, String>> edgesDtos;
60 @JsonProperty("optional-properties")
61 private Map<String, String> queryOptionalProperties = Maps.newHashMap();
63 @JsonProperty("required-properties")
64 private Map<String, String> queryRequiredProperties = Maps.newHashMap();
66 @JsonProperty("expected-result")
67 private ExpectedResultsDto expectedResultsDtos;
69 public String getStoredQuery() {
73 public void setStoredQuery(String storedQuery) {
74 this.storedQuery = storedQuery;
77 public List<LinkedHashMap<String, String>> getVerticesDtos() {
81 public void setVerticesDtos(List<LinkedHashMap<String, String>> verticesDtos) {
82 this.verticesDtos = verticesDtos;
85 public List<LinkedHashMap<String, String>> getEdgesDtos() {
89 public void setEdgesDtos(List<LinkedHashMap<String, String>> edgesDtos) {
90 this.edgesDtos = edgesDtos;
93 public Map<String, String> getQueryOptionalProperties() {
94 return queryOptionalProperties;
97 public void setQueryOptionalProperties(Map<String, String> queryOptionalProperties) {
98 this.queryOptionalProperties = queryOptionalProperties;
101 public Map<String, String> getQueryRequiredProperties() {
102 return queryRequiredProperties;
105 public void setQueryRequiredProperties(Map<String, String> queryRequiredProperties) {
106 this.queryRequiredProperties = queryRequiredProperties;
109 public ExpectedResultsDto getExpectedResultsDtos() {
110 return expectedResultsDtos;
113 public void setExpectedResultsDtos(ExpectedResultsDto expectedResultsDtos) {
114 this.expectedResultsDtos = expectedResultsDtos;