Initial commit for AAI-UI(sparky-backend)
[aai/sparky-be.git] / src / test / java / org / openecomp / sparky / dal / elasticsearch / entity / AutoSuggestDocumentEntityFields.java
1 /* 
2 * ============LICENSE_START=======================================================
3 * SPARKY (inventory UI service)
4 * ================================================================================
5 * Copyright © 2017 AT&T Intellectual Property.
6 * Copyright © 2017 Amdocs
7 * All rights reserved.
8 * ================================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
12
13 *      http://www.apache.org/licenses/LICENSE-2.0
14
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END=========================================================
21
22 * ECOMP and OpenECOMP are trademarks
23 * and service marks of AT&T Intellectual Property.
24 */
25 package org.openecomp.sparky.dal.elasticsearch.entity;
26
27 import java.util.ArrayList;
28 import java.util.List;
29
30 import com.fasterxml.jackson.annotation.JsonInclude;
31 import com.fasterxml.jackson.annotation.JsonInclude.Include;
32
33 @JsonInclude(Include.NON_NULL)
34 public class AutoSuggestDocumentEntityFields {
35
36   private String output;
37   private List<String> input;
38   private PayloadEntity payload;
39   private int weight;
40   
41   public AutoSuggestDocumentEntityFields() {
42     input = new ArrayList<String>();
43   }
44
45   public String getOutput() {
46     return output;
47   }
48
49   public void setOutput(String output) {
50     this.output = output;
51   }
52
53   public List<String> getInput() {
54     return input;
55   }
56
57   public void setInput(List<String> input) {
58     this.input = input;
59   }
60
61   public PayloadEntity getPayload() {
62     return payload;
63   }
64
65   public void setPayload(PayloadEntity payload) {
66     this.payload = payload;
67   }
68
69   public int getWeight() {
70     return weight;
71   }
72
73   public void setWeight(int weight) {
74     this.weight = weight;
75   }
76   
77   public void addInput(String input) {
78     this.input.add(input);
79   }
80   
81 }