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=========================================================
20 package org.onap.aai.domain.restServiceException;
22 import java.util.ArrayList;
23 import java.util.HashMap;
24 import java.util.List;
26 import javax.annotation.Generated;
27 import com.fasterxml.jackson.annotation.JsonAnyGetter;
28 import com.fasterxml.jackson.annotation.JsonAnySetter;
29 import com.fasterxml.jackson.annotation.JsonIgnore;
30 import com.fasterxml.jackson.annotation.JsonInclude;
31 import com.fasterxml.jackson.annotation.JsonProperty;
32 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
34 @JsonInclude(JsonInclude.Include.NON_NULL)
35 @Generated("org.jsonschema2pojo")
41 public class ServiceException {
43 @JsonProperty("messageId")
44 private String messageId;
47 @JsonProperty("variables")
48 private List<String> variables = new ArrayList<String>();
50 private Map<String, Object> additionalProperties = new HashMap<String, Object>();
53 * Gets the message id.
55 * @return The messageId
57 @JsonProperty("messageId")
58 public String getMessageId() {
63 * Sets the message id.
65 * @param messageId The messageId
67 @JsonProperty("messageId")
68 public void setMessageId(String messageId) {
69 this.messageId = messageId;
78 public String getText() {
85 * @param text The text
88 public void setText(String text) {
95 * @return The variables
97 @JsonProperty("variables")
98 public List<String> getVariables() {
103 * Sets the variables.
105 * @param variables The variables
107 @JsonProperty("variables")
108 public void setVariables(List<String> variables) {
109 this.variables = variables;
113 * Gets the additional properties.
115 * @return the additional properties
118 public Map<String, Object> getAdditionalProperties() {
119 return this.additionalProperties;
123 * Sets the additional property.
125 * @param name the name
126 * @param value the value
129 public void setAdditionalProperty(String name, Object value) {
130 this.additionalProperties.put(name, value);