2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017,2019 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.policy.api;
23 import com.google.gson.Gson;
24 import java.util.UUID;
26 public class DictionaryParameters {
27 private static final Gson GSON = new Gson();
28 private DictionaryType dictionaryType;
29 private String dictionary;
30 private String dictionaryJson;
31 private UUID requestID;
35 * @return the dictionaryType
37 public DictionaryType getDictionaryType() {
38 return dictionaryType;
42 * @param dictionaryType the dictionaryType to set
44 public void setDictionaryType(DictionaryType dictionaryType) {
45 this.dictionaryType = dictionaryType;
49 * @return the dictionary
51 public String getDictionary() {
56 * @param dictionary the dictionary to set
58 public void setDictionary(String dictionary) {
59 this.dictionary = dictionary;
63 * @return the dictionaryFields
65 public String getDictionaryJson() {
66 return dictionaryJson;
70 * @param dictionaryFields the dictionaryFields to set
72 public void setDictionaryJson(String dictionaryJson) {
73 this.dictionaryJson = dictionaryJson;
77 * @return the requestID
79 public UUID getRequestID() {
84 * @param requestID the requestID to set
86 public void setRequestID(UUID requestID) {
87 this.requestID = requestID;
91 * Used to print the input Params for REST call.
93 * @return JSON String of this object.
96 public String toString() {
97 return GSON.toJson(this);