Containerization feature of SO
[so.git] / common / src / main / java / org / onap / so / serviceinstancebeans / RequestError.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 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
21 //
22 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 
23 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
24 // Any modifications to this file will be lost upon recompilation of the source schema. 
25 // Generated on: 2016.04.07 at 08:25:52 AM CDT 
26 //
27
28
29 package org.onap.so.serviceinstancebeans;
30
31 import javax.xml.bind.annotation.XmlAccessType;
32 import javax.xml.bind.annotation.XmlAccessorType;
33 import javax.xml.bind.annotation.XmlRootElement;
34 import javax.xml.bind.annotation.XmlType;
35 import org.apache.commons.lang3.builder.ToStringBuilder;
36
37 import com.fasterxml.jackson.annotation.JsonRootName;
38
39
40 /**
41  * <p>Java class for anonymous complex type.
42  * 
43  * <p>The following schema fragment specifies the expected content contained within this class.
44  * 
45  * <pre>
46  * &lt;complexType>
47  *   &lt;complexContent>
48  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
49  *       &lt;sequence>
50  *         &lt;choice>
51  *           &lt;element name="policyException" type="{http://org.onap/so/request/types/v1}policyException"/>
52  *           &lt;element name="serviceException" type="{http://org.onap/so/request/types/v1}serviceException"/>
53  *         &lt;/choice>
54  *       &lt;/sequence>
55  *     &lt;/restriction>
56  *   &lt;/complexContent>
57  * &lt;/complexType>
58  * </pre>
59  * 
60  * 
61  */
62 @XmlAccessorType(XmlAccessType.FIELD)
63 @XmlType(name = "", propOrder = {
64     "policyException",
65     "serviceException"
66 })
67 @XmlRootElement(name = "requestError")
68 @JsonRootName(value = "requestError")
69 public class RequestError {
70
71     protected PolicyException policyException;
72     protected ServiceException serviceException;
73
74     /**
75      * Gets the value of the policyException property.
76      * 
77      * @return
78      *     possible object is
79      *     {@link PolicyException }
80      *     
81      */
82     public PolicyException getPolicyException() {
83         return policyException;
84     }
85
86     /**
87      * Sets the value of the policyException property.
88      * 
89      * @param value
90      *     allowed object is
91      *     {@link PolicyException }
92      *     
93      */
94     public void setPolicyException(PolicyException value) {
95         this.policyException = value;
96     }
97
98     /**
99      * Gets the value of the serviceException property.
100      * 
101      * @return
102      *     possible object is
103      *     {@link ServiceException }
104      *     
105      */
106     public ServiceException getServiceException() {
107         return serviceException;
108     }
109
110     /**
111      * Sets the value of the serviceException property.
112      * 
113      * @param value
114      *     allowed object is
115      *     {@link ServiceException }
116      *     
117      */
118     public void setServiceException(ServiceException value) {
119         this.serviceException = value;
120     }
121
122         @Override
123         public String toString() {
124                 return new ToStringBuilder(this).append("policyException", policyException)
125                                 .append("serviceException", serviceException).toString();
126         }
127
128 }