2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.aai.domain.restServiceException;
23 import com.fasterxml.jackson.annotation.*;
25 import java.util.ArrayList;
26 import java.util.HashMap;
27 import java.util.List;
30 import javax.annotation.Generated;
32 @JsonInclude(JsonInclude.Include.NON_NULL)
33 @Generated("org.jsonschema2pojo")
34 @JsonPropertyOrder({"messageId", "text", "variables"})
35 public class ServiceException {
37 @JsonProperty("messageId")
38 private String messageId;
41 @JsonProperty("variables")
42 private List<String> variables = new ArrayList<String>();
44 private Map<String, Object> additionalProperties = new HashMap<String, Object>();
47 * Gets the message id.
49 * @return The messageId
51 @JsonProperty("messageId")
52 public String getMessageId() {
57 * Sets the message id.
59 * @param messageId The messageId
61 @JsonProperty("messageId")
62 public void setMessageId(String messageId) {
63 this.messageId = messageId;
72 public String getText() {
79 * @param text The text
82 public void setText(String text) {
89 * @return The variables
91 @JsonProperty("variables")
92 public List<String> getVariables() {
99 * @param variables The variables
101 @JsonProperty("variables")
102 public void setVariables(List<String> variables) {
103 this.variables = variables;
107 * Gets the additional properties.
109 * @return the additional properties
112 public Map<String, Object> getAdditionalProperties() {
113 return this.additionalProperties;
117 * Sets the additional property.
119 * @param name the name
120 * @param value the value
123 public void setAdditionalProperty(String name, Object value) {
124 this.additionalProperties.put(name, value);