Update sli-adaptor/aai-service package names
[ccsdk/sli/adaptors.git] / aai-service / provider / src / main / java / org / onap / ccsdk / sli / adaptors / aai / query / FormattedQueryRequestData.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * openECOMP : SDN-C
4  * ================================================================================
5  * Copyright (C) 2017 ONAP Intellectual Property. All rights
6  *                                              reserved.
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
22 package org.onap.ccsdk.sli.adaptors.aai.query;
23
24 import java.util.List;
25
26 import javax.xml.bind.annotation.XmlAccessType;
27 import javax.xml.bind.annotation.XmlAccessorType;
28 import javax.xml.bind.annotation.XmlRootElement;
29 import javax.xml.bind.annotation.XmlType;
30
31 import org.onap.ccsdk.sli.adaptors.aai.data.AAIDatum;
32
33 import com.fasterxml.jackson.annotation.JsonProperty;
34
35 @XmlAccessorType(XmlAccessType.FIELD)
36 @XmlType(name = "", propOrder = {
37     "start",
38     "query"
39 })
40 @XmlRootElement(name = "query-request")
41 public class FormattedQueryRequestData implements AAIDatum {
42
43         @JsonProperty("start")
44         protected List<String> start;
45
46         @JsonProperty("query")
47     private String query;
48
49     @JsonProperty("start")
50     public List<String> getStart ()
51     {
52         return start;
53     }
54
55     @JsonProperty("start")
56     public void setStart (List<String> start)
57     {
58         this.start = start;
59     }
60
61     @JsonProperty("query")
62     public String getQuery ()
63     {
64         return query;
65     }
66
67     @JsonProperty("query")
68     public void setQuery (String query)
69     {
70         this.query = query;
71     }
72
73     @Override
74     public String toString()
75     {
76         return " [start = "+start+", query = "+query+"]";
77     }
78
79     public String getResourceVersion() {
80         return null;
81     }
82
83 }