2 * ============LICENSE_START===================================================
3 * SPARKY (AAI UI service)
4 * ============================================================================
5 * Copyright © 2017 AT&T Intellectual Property.
6 * Copyright © 2017 Amdocs
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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=====================================================
22 * ECOMP and OpenECOMP are trademarks
23 * and service marks of AT&T Intellectual Property.
26 package org.openecomp.sparky.viewandinspect.entity;
28 import com.att.aft.dme2.internal.jackson.annotate.JsonProperty;
31 * The Class Violations.
33 public class Violations {
35 private String severity;
37 private String category;
41 private String timestamp;
43 private String details;
45 @JsonProperty("error-message")
46 private String errorMessage;
49 * Instantiates a new violations.
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
57 public Violations(String severity, String category, String type, String timestamp,
58 String errorMessage) {
59 this.severity = severity;
60 this.category = category;
62 this.timestamp = timestamp;
63 this.errorMessage = errorMessage;
66 public String getSeverity() {
70 public void setSeverity(String severity) {
71 this.severity = severity;
74 public String getCategory() {
78 public void setCategory(String category) {
79 this.category = category;
82 public String getType() {
86 public void setType(String type) {
91 public String getTimestamp() {
95 public void setTimestamp(String timestamp) {
96 this.timestamp = timestamp;
100 * public Map<String, Object> getDetails() { return details; }
102 * public void setDetails(Map<String, Object> details) { this.details = details; }
105 public String getErrorMessage() {
109 public void setErrorMessage(String errorMessage) {
110 this.errorMessage = errorMessage;