2 * API ServiceOrder serviceOrder API designed for ONAP Beijing Release. This API is build from TMF
3 * open API16.5 + applied TMF guideline 3.0
5 * OpenAPI spec version: 0.1.1_inProgress
8 * NOTE: This class is auto generated by the swagger code generator program.
9 * https://github.com/swagger-api/swagger-codegen.git Do not edit the class manually.
11 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
12 * in compliance with the License. You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * Unless required by applicable law or agreed to in writing, software distributed under the License
17 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
18 * or implied. See the License for the specific language governing permissions and limitations under
23 package org.onap.nbi.apis.serviceorder.model;
25 import com.fasterxml.jackson.annotation.JsonProperty;
26 import io.swagger.annotations.ApiModel;
27 import io.swagger.annotations.ApiModelProperty;
28 import javax.validation.constraints.NotNull;
29 import java.util.Objects;
34 @ApiModel(description = "")
35 @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen",
36 date = "2018-02-19T14:00:30.767Z")
37 public class ErrorRepresentation {
39 private Integer code = null;
41 @JsonProperty("reason")
42 private String reason = null;
44 @JsonProperty("message")
45 private String message = null;
47 @JsonProperty("status")
48 private String status = null;
50 @JsonProperty("referenceError")
51 private String referenceError = null;
53 @JsonProperty("@type")
54 private String type = null;
56 @JsonProperty("@schemaLocation")
57 private String schemaLocation = null;
59 public ErrorRepresentation code(Integer code) {
65 * Application related code (as defined in the API or from a common list)
70 @ApiModelProperty(required = true, value = "Application related code (as defined in the API or from a common list)")
72 public Integer getCode() {
76 public void setCode(Integer code) {
80 public ErrorRepresentation reason(String reason) {
86 * Text that explains the reason for error. This can be shown to a client user.
90 @JsonProperty("reason")
91 @ApiModelProperty(required = true,
92 value = "Text that explains the reason for error. This can be shown to a client user.")
94 public String getReason() {
98 public void setReason(String reason) {
102 public ErrorRepresentation message(String message) {
103 this.message = message;
108 * Text that provide more details and corrective actions related to the error. This can be shown
113 @JsonProperty("message")
115 value = "Text that provide more details and corrective actions related to the error. This can be shown to a client user")
116 public String getMessage() {
120 public void setMessage(String message) {
121 this.message = message;
124 public ErrorRepresentation status(String status) {
125 this.status = status;
130 * http error code extension like 400-2
134 @JsonProperty("status")
135 @ApiModelProperty(value = "http error code extension like 400-2")
136 public String getStatus() {
140 public void setStatus(String status) {
141 this.status = status;
144 public ErrorRepresentation referenceError(String referenceError) {
145 this.referenceError = referenceError;
150 * url pointing to documentation describing the error
152 * @return referenceError
154 @JsonProperty("referenceError")
155 @ApiModelProperty(value = "url pointing to documentation describing the error")
156 public String getReferenceError() {
157 return referenceError;
160 public void setReferenceError(String referenceError) {
161 this.referenceError = referenceError;
164 public ErrorRepresentation type(String type) {
170 * The class type of a REST resource
174 @JsonProperty("@type")
175 @ApiModelProperty(value = "The class type of a REST resource")
176 public String getType() {
180 public void setType(String type) {
184 public ErrorRepresentation schemaLocation(String schemaLocation) {
185 this.schemaLocation = schemaLocation;
190 * it provides a link to the schema describing a REST resource
192 * @return schemaLocation
194 @JsonProperty("@schemaLocation")
195 @ApiModelProperty(value = "it provides a link to the schema describing a REST resource")
196 public String getSchemaLocation() {
197 return schemaLocation;
200 public void setSchemaLocation(String schemaLocation) {
201 this.schemaLocation = schemaLocation;
206 public boolean equals(java.lang.Object o) {
210 if (o == null || getClass() != o.getClass()) {
213 ErrorRepresentation errorRepresentation = (ErrorRepresentation) o;
214 return Objects.equals(this.code, errorRepresentation.code)
215 && Objects.equals(this.reason, errorRepresentation.reason)
216 && Objects.equals(this.message, errorRepresentation.message)
217 && Objects.equals(this.status, errorRepresentation.status)
218 && Objects.equals(this.referenceError, errorRepresentation.referenceError)
219 && Objects.equals(this.type, errorRepresentation.type)
220 && Objects.equals(this.schemaLocation, errorRepresentation.schemaLocation);
224 public int hashCode() {
225 return Objects.hash(code, reason, message, status, referenceError, type, schemaLocation);
230 public String toString() {
231 StringBuilder sb = new StringBuilder();
232 sb.append("class ErrorRepresentation {\n");
234 sb.append(" code: ").append(toIndentedString(code)).append("\n");
235 sb.append(" reason: ").append(toIndentedString(reason)).append("\n");
236 sb.append(" message: ").append(toIndentedString(message)).append("\n");
237 sb.append(" status: ").append(toIndentedString(status)).append("\n");
238 sb.append(" referenceError: ").append(toIndentedString(referenceError)).append("\n");
239 sb.append(" type: ").append(toIndentedString(type)).append("\n");
240 sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
242 return sb.toString();
246 * Convert the given object to string with each line indented by 4 spaces (except the first
249 private String toIndentedString(java.lang.Object o) {
253 return o.toString().replace("\n", "\n ");