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.JsonAnyGetter;
24 import com.fasterxml.jackson.annotation.JsonAnySetter;
25 import com.fasterxml.jackson.annotation.JsonIgnore;
26 import com.fasterxml.jackson.annotation.JsonInclude;
27 import com.fasterxml.jackson.annotation.JsonProperty;
28 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30 import java.util.ArrayList;
31 import java.util.HashMap;
32 import java.util.List;
35 import javax.annotation.Generated;
37 @JsonInclude(JsonInclude.Include.NON_NULL)
38 @Generated("org.jsonschema2pojo")
39 @JsonPropertyOrder({"messageId", "text", "variables"})
40 public class ServiceException {
42 @JsonProperty("messageId")
43 private String messageId;
46 @JsonProperty("variables")
47 private List<String> variables = new ArrayList<String>();
49 private Map<String, Object> additionalProperties = new HashMap<String, Object>();
52 * Gets the message id.
54 * @return The messageId
56 @JsonProperty("messageId")
57 public String getMessageId() {
62 * Sets the message id.
64 * @param messageId The messageId
66 @JsonProperty("messageId")
67 public void setMessageId(String messageId) {
68 this.messageId = messageId;
77 public String getText() {
84 * @param text The text
87 public void setText(String text) {
94 * @return The variables
96 @JsonProperty("variables")
97 public List<String> getVariables() {
102 * Sets the variables.
104 * @param variables The variables
106 @JsonProperty("variables")
107 public void setVariables(List<String> variables) {
108 this.variables = variables;
112 * Gets the additional properties.
114 * @return the additional properties
117 public Map<String, Object> getAdditionalProperties() {
118 return this.additionalProperties;
122 * Sets the additional property.
124 * @param name the name
125 * @param value the value
128 public void setAdditionalProperty(String name, Object value) {
129 this.additionalProperties.put(name, value);