2 * ============LICENSE_START=======================================================
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.aai.datarouter.search.filters.config;
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;
28 @JsonInclude(Include.NON_NULL)
29 public class UiFilterDataSourceConfig {
31 @JsonProperty("indexName")
32 private String indexName;
34 @JsonProperty("docType")
35 private String docType;
37 @JsonProperty("fieldName")
38 private String fieldName;
40 @JsonProperty("pathToField")
41 private String pathToField;
43 public UiFilterDataSourceConfig(){}
46 public UiFilterDataSourceConfig(
47 @JsonProperty("indexName") final String indexName, @JsonProperty("docType") final String docType,
48 @JsonProperty("fieldName") final String fieldName, @JsonProperty("pathToField") final String pathToField) {
49 this.indexName = indexName;
50 this.docType = docType;
51 this.fieldName = fieldName;
52 this.pathToField = pathToField;
55 @JsonProperty("indexName")
56 public String getIndexName() {
60 public void setIndexName(String indexName) {
61 this.indexName = indexName;
64 @JsonProperty("docType")
65 public String getDocType() {
69 public void setDocType(String docType) {
70 this.docType = docType;
73 @JsonProperty("fieldName")
74 public String getFieldName() {
78 public void setFieldName(String fieldName) {
79 this.fieldName = fieldName;
82 @JsonProperty("pathToField")
83 public String getPathToField() {
87 public void setPathToField(String pathToField) {
88 this.pathToField = pathToField;
92 public String toString() {
93 return "UiFilterDataSourceConfig [indexName=" + indexName + ", docType=" + docType
94 + ", fieldName=" + fieldName + ", pathToField=" + pathToField + "]";