Adding interfaces in documentation
[aai/sparky-be.git] / src / main / java / org / onap / aai / sparky / search / filters / config / UiFilterDataSourceConfig.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * Copyright © 2017-2018 Amdocs
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 package org.onap.aai.sparky.search.filters.config;
22
23 import com.fasterxml.jackson.annotation.JsonCreator;
24 import com.fasterxml.jackson.annotation.JsonInclude;
25 import com.fasterxml.jackson.annotation.JsonInclude.Include;
26 import com.fasterxml.jackson.annotation.JsonProperty;
27
28 @JsonInclude(Include.NON_NULL)
29 public class UiFilterDataSourceConfig {
30  
31   @JsonProperty("indexName")
32   private String indexName;
33   
34   @JsonProperty("docType")
35   private String docType;
36   
37   @JsonProperty("fieldName")
38   private String fieldName;
39   
40   @JsonProperty("pathToField")
41   private String pathToField;
42  
43   public UiFilterDataSourceConfig(){}
44   
45   @JsonCreator
46   public UiFilterDataSourceConfig(@JsonProperty("indexName") final String indexName, @JsonProperty("docType") final String docType, @JsonProperty("fieldName") final String fieldName, @JsonProperty("pathToField") final String pathToField) {
47     this.indexName = indexName;
48     this.docType = docType;
49     this.fieldName = fieldName;
50     this.pathToField = pathToField;
51   }
52
53   @JsonProperty("indexName")
54   public String getIndexName() {
55     return indexName;
56   }
57
58   public void setIndexName(String indexName) {
59     this.indexName = indexName;
60   }
61
62   @JsonProperty("docType")
63   public String getDocType() {
64     return docType;
65   }
66
67   public void setDocType(String docType) {
68     this.docType = docType;
69   }
70
71   @JsonProperty("fieldName")
72   public String getFieldName() {
73     return fieldName;
74   }
75
76   public void setFieldName(String fieldName) {
77     this.fieldName = fieldName;
78   }
79   
80   @JsonProperty("pathToField")
81   public String getPathToField() {
82     return pathToField;
83   }
84   
85   public void setPathToField(String pathToField) {
86     this.pathToField = pathToField;
87   }
88
89   @Override
90   public String toString() {
91     return "UiFilterDataSourceConfig [indexName=" + indexName + ", docType=" + docType
92         + ", fieldName=" + fieldName + ", pathToField=" + pathToField + "]";
93   }
94 }
95