Adding back-end support for UI filters
[aai/sparky-be.git] / src / main / java / org / onap / aai / sparky / search / filters / config / UiFilterOptionsValuesConfig.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6  * Copyright © 2017 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  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  */
23 package org.onap.aai.sparky.search.filters.config;
24
25 import com.att.aft.dme2.internal.jackson.annotate.JsonCreator;
26 import com.fasterxml.jackson.annotation.JsonInclude;
27 import com.fasterxml.jackson.annotation.JsonInclude.Include;
28 import com.fasterxml.jackson.annotation.JsonProperty;
29
30 @JsonInclude(Include.NON_NULL)
31 public class UiFilterOptionsValuesConfig {
32   @JsonProperty("decode")
33   private String decode;
34   
35   @JsonProperty("code")
36   private String code;
37   
38   @JsonCreator
39   public UiFilterOptionsValuesConfig(@JsonProperty("decode") final String decode, @JsonProperty("code") final String code) {
40     this.decode = decode;
41     this.code = code;
42   }
43
44   @JsonProperty("decode")
45   public String getDecode() {
46     return decode;
47   }
48
49   public void setDecode(String decode) {
50     this.decode = decode;
51   }
52
53   @JsonProperty("code")
54   public String getCode() {
55     return code;
56   }
57
58   public void setCode(String code) {
59     this.code = code;
60   }
61
62   @Override
63   public String toString() {
64     return "UiFilterOptionsValuesConfig [decode=" + decode + ", code=" + code + "]";
65   }
66 }