Update the license for 2017-2018 license
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / domain / restPolicyException / RequestError.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
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
10  *
11  *    http://www.apache.org/licenses/LICENSE-2.0
12  *
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=========================================================
19  */
20 package org.onap.aai.domain.restPolicyException;
21
22 import java.util.HashMap;
23 import java.util.Map;
24 import javax.annotation.Generated;
25 import com.fasterxml.jackson.annotation.JsonAnyGetter;
26 import com.fasterxml.jackson.annotation.JsonAnySetter;
27 import com.fasterxml.jackson.annotation.JsonIgnore;
28 import com.fasterxml.jackson.annotation.JsonInclude;
29 import com.fasterxml.jackson.annotation.JsonProperty;
30 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
31
32 @JsonInclude(JsonInclude.Include.NON_NULL)
33 @Generated("org.jsonschema2pojo")
34 @JsonPropertyOrder({
35     "policyException"
36 })
37 public class RequestError {
38
39     @JsonProperty("policyException")
40     private PolicyException policyException;
41     @JsonIgnore
42     private Map<String, Object> additionalProperties = new HashMap<String, Object>();
43
44     /**
45      * Gets the policy exception.
46      *
47      * @return     The policyException
48      */
49     @JsonProperty("policyException")
50     public PolicyException getPolicyException() {
51         return policyException;
52     }
53
54     /**
55      * Sets the policy exception.
56      *
57      * @param policyException     The policyException
58      */
59     @JsonProperty("policyException")
60     public void setPolicyException(PolicyException policyException) {
61         this.policyException = policyException;
62     }
63
64     /**
65      * Gets the additional properties.
66      *
67      * @return the additional properties
68      */
69     @JsonAnyGetter
70     public Map<String, Object> getAdditionalProperties() {
71         return this.additionalProperties;
72     }
73
74     /**
75      * Sets the additional property.
76      *
77      * @param name the name
78      * @param value the value
79      */
80     @JsonAnySetter
81     public void setAdditionalProperty(String name, Object value) {
82         this.additionalProperties.put(name, value);
83     }
84
85 }
86