Renaming openecomp to onap
[aai/sparky-be.git] / src / main / java / org / onap / aai / sparky / viewandinspect / entity / Violations.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.viewandinspect.entity;
24
25 import com.att.aft.dme2.internal.jackson.annotate.JsonProperty;
26
27 /**
28  * The Class Violations.
29  */
30 public class Violations {
31
32   private String severity;
33
34   private String category;
35
36   private String type;
37
38   private String timestamp;
39
40   private String details;
41
42   @JsonProperty("error-message")
43   private String errorMessage;
44
45   /**
46    * Instantiates a new violations.
47    *
48    * @param severity the severity
49    * @param category the category
50    * @param type the type
51    * @param timestamp the timestamp
52    * @param errorMessage the error message
53    */
54   public Violations(String severity, String category, String type, String timestamp,
55       String errorMessage) {
56     this.severity = severity;
57     this.category = category;
58     this.type = type;
59     this.timestamp = timestamp;
60     this.errorMessage = errorMessage;
61   }
62
63   public String getSeverity() {
64     return severity;
65   }
66
67   public void setSeverity(String severity) {
68     this.severity = severity;
69   }
70
71   public String getCategory() {
72     return category;
73   }
74
75   public void setCategory(String category) {
76     this.category = category;
77   }
78
79   public String getType() {
80     return type;
81   }
82
83   public void setType(String type) {
84     this.type = type;
85   }
86
87
88   public String getTimestamp() {
89     return timestamp;
90   }
91
92   public void setTimestamp(String timestamp) {
93     this.timestamp = timestamp;
94   }
95
96   /*
97    * public Map<String, Object> getDetails() { return details; }
98    * 
99    * public void setDetails(Map<String, Object> details) { this.details = details; }
100    */
101
102   public String getErrorMessage() {
103     return errorMessage;
104   }
105
106   public void setErrorMessage(String errorMessage) {
107     this.errorMessage = errorMessage;
108   }
109
110
111 }