Format Java code with respect to ONAP Code Style
[externalapi/nbi.git] / src / main / java / org / onap / nbi / exceptions / ApiError.java
1 /**
2  *     Copyright (c) 2018 Orange
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  */
16
17 package org.onap.nbi.exceptions;
18
19 import javax.xml.bind.annotation.XmlAccessType;
20 import javax.xml.bind.annotation.XmlAccessorType;
21 import javax.xml.bind.annotation.XmlElement;
22 import javax.xml.bind.annotation.XmlType;
23
24 @XmlAccessorType(XmlAccessType.FIELD)
25 @XmlType(name = "Error", propOrder = {"code", "message", "description", "infoURL"})
26 public class ApiError {
27     @XmlElement(required = true)
28     protected String code;
29     @XmlElement(required = true)
30     protected String message;
31     @XmlElement(required = true)
32     private String description;
33     @XmlElement(required = true)
34     protected String infoURL;
35
36     public ApiError() {
37     }
38
39     public ApiError(String code, String message, String description, String infoURL) {
40         this.code = code;
41         this.message = message;
42         this.description = description;
43         this.infoURL = infoURL;
44     }
45
46     public String getCode() {
47         return code;
48     }
49
50     public void setCode(String code) {
51         this.code = code;
52     }
53
54     public String getMessage() {
55         return message;
56     }
57
58     public void setMessage(String message) {
59         this.message = message;
60     }
61
62     public String getDescription() {
63         return description;
64     }
65
66     public void setDescription(String description) {
67         this.description = description;
68     }
69
70     public String getInfoURL() {
71         return infoURL;
72     }
73
74     public void setInfoURL(String infoURL) {
75         this.infoURL = infoURL;
76     }
77 }