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