6f2b4ec6000c480dfcfde7e99501769488bb8df4
[dcaegen2/services.git] / components / slice-analysis-ms / src / main / java / org / onap / slice / analysis / ms / models / ConfigPolicy.java
1 /*******************************************************************************
2  *  ============LICENSE_START=======================================================
3  *  slice-analysis-ms
4  *  ================================================================================
5  *   Copyright (C) 2020 Wipro Limited.
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
22 package org.onap.slice.analysis.ms.models;
23
24 import java.util.Map;
25
26 /**
27  * 
28  * Model class for configuration policy
29  *
30  */
31
32 public class ConfigPolicy {
33
34         private static ConfigPolicy instance = null;
35         private Map<String, Object> config;
36
37         protected ConfigPolicy() {
38
39         }
40
41         /**
42          * Get instance of class.
43          */
44         public static ConfigPolicy getInstance() {
45                 if (instance == null) {
46                         instance = new ConfigPolicy();
47                 }
48                 return instance;
49         }
50
51         /**
52          * Get config param of ConfigPolicy
53          */
54         public Map<String, Object> getConfig() {
55                 return config;
56         }
57
58         /**
59          * set config param of ConfigPolicy
60          */
61         public void setConfig(Map<String, Object> config) {
62                 this.config = config;
63         }
64
65         /**
66          * Return ConfigPolicy instance as String
67          */
68         @Override
69         public String toString() {
70                 return "ConfigPolicy [config=" + config + "]";
71         }
72 }