Make clientAuth header optional and log request
[policy/engine.git] / PolicyEngineAPI / src / main / java / org / onap / policy / api / DictionaryParameters.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * PolicyEngineAPI
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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=========================================================
19  */
20
21 package org.onap.policy.api;
22
23 import com.google.gson.Gson;
24 import java.util.UUID;
25
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;
32
33
34     /**
35      * @return the dictionaryType
36      */
37     public DictionaryType getDictionaryType() {
38         return dictionaryType;
39     }
40
41     /**
42      * @param dictionaryType the dictionaryType to set
43      */
44     public void setDictionaryType(DictionaryType dictionaryType) {
45         this.dictionaryType = dictionaryType;
46     }
47
48     /**
49      * @return the dictionary
50      */
51     public String getDictionary() {
52         return dictionary;
53     }
54
55     /**
56      * @param dictionary the dictionary to set
57      */
58     public void setDictionary(String dictionary) {
59         this.dictionary = dictionary;
60     }
61
62     /**
63      * @return the dictionaryFields
64      */
65     public String getDictionaryJson() {
66         return dictionaryJson;
67     }
68
69     /**
70      * @param dictionaryFields the dictionaryFields to set
71      */
72     public void setDictionaryJson(String dictionaryJson) {
73         this.dictionaryJson = dictionaryJson;
74     }
75
76     /**
77      * @return the requestID
78      */
79     public UUID getRequestID() {
80         return requestID;
81     }
82
83     /**
84      * @param requestID the requestID to set
85      */
86     public void setRequestID(UUID requestID) {
87         this.requestID = requestID;
88     }
89
90     /**
91      * Used to print the input Params for REST call.
92      *
93      * @return JSON String of this object.
94      */
95     @Override
96     public String toString() {
97         return GSON.toJson(this);
98     }
99
100 }