2 * ============LICENSE_START=======================================================
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 package org.onap.aai.sparky.viewandinspect.entity;
25 import com.att.aft.dme2.internal.jackson.annotate.JsonProperty;
28 * The Class Violations.
30 public class Violations {
32 private String severity;
34 private String category;
38 private String timestamp;
40 private String details;
42 @JsonProperty("error-message")
43 private String errorMessage;
46 * Instantiates a new violations.
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
54 public Violations(String severity, String category, String type, String timestamp,
55 String errorMessage) {
56 this.severity = severity;
57 this.category = category;
59 this.timestamp = timestamp;
60 this.errorMessage = errorMessage;
63 public String getSeverity() {
67 public void setSeverity(String severity) {
68 this.severity = severity;
71 public String getCategory() {
75 public void setCategory(String category) {
76 this.category = category;
79 public String getType() {
83 public void setType(String type) {
88 public String getTimestamp() {
92 public void setTimestamp(String timestamp) {
93 this.timestamp = timestamp;
97 * public Map<String, Object> getDetails() { return details; }
99 * public void setDetails(Map<String, Object> details) { this.details = details; }
102 public String getErrorMessage() {
106 public void setErrorMessage(String errorMessage) {
107 this.errorMessage = errorMessage;