Initial commit for AAI-UI(sparky-backend)
[aai/sparky-be.git] / src / main / java / org / openecomp / sparky / viewandinspect / entity / Violations.java
1 /**
2  * ============LICENSE_START===================================================
3  * SPARKY (AAI UI service)
4  * ============================================================================
5  * Copyright © 2017 AT&T Intellectual Property.
6  * Copyright © 2017 Amdocs
7  * All rights reserved.
8  * ============================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * ============LICENSE_END=====================================================
21  *
22  * ECOMP and OpenECOMP are trademarks
23  * and service marks of AT&T Intellectual Property.
24  */
25
26 package org.openecomp.sparky.viewandinspect.entity;
27
28 import com.att.aft.dme2.internal.jackson.annotate.JsonProperty;
29
30 /**
31  * The Class Violations.
32  */
33 public class Violations {
34
35   private String severity;
36
37   private String category;
38
39   private String type;
40
41   private String timestamp;
42
43   private String details;
44
45   @JsonProperty("error-message")
46   private String errorMessage;
47
48   /**
49    * Instantiates a new violations.
50    *
51    * @param severity the severity
52    * @param category the category
53    * @param type the type
54    * @param timestamp the timestamp
55    * @param errorMessage the error message
56    */
57   public Violations(String severity, String category, String type, String timestamp,
58       String errorMessage) {
59     this.severity = severity;
60     this.category = category;
61     this.type = type;
62     this.timestamp = timestamp;
63     this.errorMessage = errorMessage;
64   }
65
66   public String getSeverity() {
67     return severity;
68   }
69
70   public void setSeverity(String severity) {
71     this.severity = severity;
72   }
73
74   public String getCategory() {
75     return category;
76   }
77
78   public void setCategory(String category) {
79     this.category = category;
80   }
81
82   public String getType() {
83     return type;
84   }
85
86   public void setType(String type) {
87     this.type = type;
88   }
89
90
91   public String getTimestamp() {
92     return timestamp;
93   }
94
95   public void setTimestamp(String timestamp) {
96     this.timestamp = timestamp;
97   }
98
99   /*
100    * public Map<String, Object> getDetails() { return details; }
101    * 
102    * public void setDetails(Map<String, Object> details) { this.details = details; }
103    */
104
105   public String getErrorMessage() {
106     return errorMessage;
107   }
108
109   public void setErrorMessage(String errorMessage) {
110     this.errorMessage = errorMessage;
111   }
112
113
114 }