Upversion artifacts to 1.8.0-SNAPSHOT
[aai/data-router.git] / src / main / java / org / onap / aai / datarouter / search / filters / config / UiFilterConfig.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.datarouter.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 UiFilterConfig {
30
31   @JsonProperty("filterId")
32   private String filterId;
33
34   @JsonProperty("filterName")
35   private String filterName;
36
37   @JsonProperty("displayName")
38   private String displayName;
39
40   @JsonProperty("dataType")
41   private String dataType;
42
43   @JsonProperty("dataSource")
44   private UiFilterDataSourceConfig dataSource = new UiFilterDataSourceConfig();
45
46   @JsonCreator
47   public UiFilterConfig(@JsonProperty("filterId") final String filterId,
48       @JsonProperty("filterName") final String filterName,
49       @JsonProperty("displayName") final String displayName,
50       @JsonProperty("dataType") final String dataType,
51       @JsonProperty("dataSource") final UiFilterDataSourceConfig dataSource
52       ) {
53     this.filterId = filterId;
54     this.filterName = filterName;
55     this.displayName = displayName;
56     this.dataType = dataType;
57     this.dataSource = dataSource;
58   }
59
60   @JsonProperty("filterId")
61   public String getFilterId() {
62     return filterId;
63   }
64
65   public void setFilterId(String filterId) {
66     this.filterId = filterId;
67   }
68
69   @JsonProperty("filterName")
70   public String getFilterName() {
71     return filterName;
72   }
73
74   public void setFilterName(String filterName) {
75     this.filterName = filterName;
76   }
77
78   @JsonProperty("displayName")
79   public String getDisplayName() {
80     return displayName;
81   }
82
83   public void setDisplayName(String displayName) {
84     this.displayName = displayName;
85   }
86
87   @JsonProperty("dataType")
88   public String getDataType() {
89     return dataType;
90   }
91
92   public void setDataType(String dataType) {
93     this.dataType = dataType;
94   }
95
96   @JsonProperty("dataSource")
97   public UiFilterDataSourceConfig getDataSource() {
98     return dataSource;
99   }
100
101   public void setDataSource(UiFilterDataSourceConfig dataSource) {
102     this.dataSource = dataSource;
103   }
104
105   @Override
106   public String toString() {
107     return "UiFilterConfig [filterId=" + filterId + ", filterName=" + filterName + ", displayName="
108         + displayName + ", dataType=" + dataType + ", dataSource=" + dataSource + "]";
109   }
110 }