blob: f0327df632698b90ccf9c23a27af685a3ed7039d [file] [log] [blame]
William Kurkian1bedb412018-07-19 12:55:41 -04001/*
2* Copyright 2018- Cisco
3*
4* Licensed under the Apache License, Version 2.0 (the "License");
5* you may not use this file except in compliance with the License.
6* You may obtain a copy of the License at
7*
8* http://www.apache.org/licenses/LICENSE-2.0
9*
10* Unless required by applicable law or agreed to in writing, software
11* distributed under the License is distributed on an "AS IS" BASIS,
12* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13* See the License for the specific language governing permissions and
14* limitations under the License.
15*/
16package mapper;
17
18import org.slf4j.Logger;
19import org.slf4j.LoggerFactory;
20import java.util.Map;
21
22public class VesVolthaMessage {
23 private String id = "";
24 private String logical_device_id = "";
25 private String raised_ts = "";
26 private String description = "";
27 private String type = "";
28 private String category = "";
29 private String severity = "";
30 private String state = "";
31 private String resource_id = "";
32 private Map<String,String> context;
33
34 public String getId() {
35 return id;
36 }
37
38 public String getDescription() {
39 return description;
40 }
41
42 public String getLogicalDeviceId() {
43 return logical_device_id;
44 }
45
46 public String getRaisedTS() {
47 return raised_ts;
48 }
49
50 public String getCategory() {
51 //Passing type instead of category to map bewteen VES and VOLTHA.
52 return category;
53 }
54
55 public String getType() {
56 return type;
57 }
58
59 public String getSeverity() {
60 return severity;
61 }
62
63 public String getState() {
64 return state;
65 }
66
67 public Map<String,String> getContext() {
68 return context;
69 }
70
71 public String getResourceId() {
72 return resource_id;
73 }
74
75
76}