9fd3bc596f26b6f4c4ffd5cf15436c3bbf08ac98
[so.git] / bpmn / mso-infrastructure-bpmn / src / main / java / org / onap / so / bpmn / common / adapter / vnf / VnfRollback.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 package org.onap.so.bpmn.common.adapter.vnf;
22
23 import javax.xml.bind.annotation.XmlAccessType;
24 import javax.xml.bind.annotation.XmlAccessorType;
25 import javax.xml.bind.annotation.XmlType;
26
27
28 /**
29  * <p>Java class for vnfRollback complex type.
30  * 
31  * <p>The following schema fragment specifies the expected content contained within this class.
32  * 
33  * <pre>
34  * &lt;complexType name="vnfRollback">
35  *   &lt;complexContent>
36  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
37  *       &lt;sequence>
38  *         &lt;element name="cloudSiteId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
39  *         &lt;element name="cloudOwner" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
40  *         &lt;element name="msoRequest" type="{http://org.onap.so/vnfNotify}msoRequest" minOccurs="0"/>
41  *         &lt;element name="tenantCreated" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
42  *         &lt;element name="tenantId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
43  *         &lt;element name="vnfCreated" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
44  *         &lt;element name="vnfId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
45  *       &lt;/sequence>
46  *     &lt;/restriction>
47  *   &lt;/complexContent>
48  * &lt;/complexType>
49  * </pre>
50  * 
51  * 
52  */
53 @XmlAccessorType(XmlAccessType.FIELD)
54 @XmlType(name = "vnfRollback", propOrder = {
55     "cloudSiteId",
56     "cloudOwner",
57     "msoRequest",
58     "tenantCreated",
59     "tenantId",
60     "vnfCreated",
61     "vnfId"
62 })
63 public class VnfRollback {
64
65     protected String cloudSiteId;
66     protected String cloudOwner;
67     protected MsoRequest msoRequest;
68     protected boolean tenantCreated;
69     protected String tenantId;
70     protected boolean vnfCreated;
71     protected String vnfId;
72
73     /**
74      * Gets the value of the cloudSiteId property.
75      * 
76      * @return
77      *     possible object is
78      *     {@link String }
79      *     
80      */
81     public String getCloudSiteId() {
82         return cloudSiteId;
83     }
84
85     /**
86      * Sets the value of the cloudSiteId property.
87      * 
88      * @param value
89      *     allowed object is
90      *     {@link String }
91      *     
92      */
93     public void setCloudSiteId(String value) {
94         this.cloudSiteId = value;
95     }
96
97     /**
98      * Gets the value of the cloudOwner property.
99      * 
100      * @return
101      *     possible object is
102      *     {@link String }
103      *     
104      */
105     public String getCloudOwner() {
106         return cloudOwner;
107     }
108
109     /**
110      * Sets the value of the cloudOwner property.
111      * 
112      * @param value
113      *     allowed object is
114      *     {@link String }
115      *     
116      */
117     public void setCloudOwner(String value) {
118         this.cloudOwner = value;
119     }
120
121     /**
122      * Gets the value of the msoRequest property.
123      * 
124      * @return
125      *     possible object is
126      *     {@link MsoRequest }
127      *     
128      */
129     public MsoRequest getMsoRequest() {
130         return msoRequest;
131     }
132
133     /**
134      * Sets the value of the msoRequest property.
135      * 
136      * @param value
137      *     allowed object is
138      *     {@link MsoRequest }
139      *     
140      */
141     public void setMsoRequest(MsoRequest value) {
142         this.msoRequest = value;
143     }
144
145     /**
146      * Gets the value of the tenantCreated property.
147      * 
148      */
149     public boolean isTenantCreated() {
150         return tenantCreated;
151     }
152
153     /**
154      * Sets the value of the tenantCreated property.
155      * 
156      */
157     public void setTenantCreated(boolean value) {
158         this.tenantCreated = value;
159     }
160
161     /**
162      * Gets the value of the tenantId property.
163      * 
164      * @return
165      *     possible object is
166      *     {@link String }
167      *     
168      */
169     public String getTenantId() {
170         return tenantId;
171     }
172
173     /**
174      * Sets the value of the tenantId property.
175      * 
176      * @param value
177      *     allowed object is
178      *     {@link String }
179      *     
180      */
181     public void setTenantId(String value) {
182         this.tenantId = value;
183     }
184
185     /**
186      * Gets the value of the vnfCreated property.
187      * 
188      */
189     public boolean isVnfCreated() {
190         return vnfCreated;
191     }
192
193     /**
194      * Sets the value of the vnfCreated property.
195      * 
196      */
197     public void setVnfCreated(boolean value) {
198         this.vnfCreated = value;
199     }
200
201     /**
202      * Gets the value of the vnfId property.
203      * 
204      * @return
205      *     possible object is
206      *     {@link String }
207      *     
208      */
209     public String getVnfId() {
210         return vnfId;
211     }
212
213     /**
214      * Sets the value of the vnfId property.
215      * 
216      * @param value
217      *     allowed object is
218      *     {@link String }
219      *     
220      */
221     public void setVnfId(String value) {
222         this.vnfId = value;
223     }
224     
225     public String toString() {
226         String msoRequestElement = msoRequest == null ? ""
227                         : "<msoRequest>"+msoRequest+"</msoRequest>" + '\n';
228
229                 return
230                         "<cloudSiteId>"+cloudSiteId+"</cloudSiteId>" + '\n' +
231                         "<cloudOwner>"+cloudOwner+"</cloudOwner>" + '\n' +
232                         msoRequestElement +
233                         "<tenantCreated>"+tenantCreated+"</tenantCreated>" + '\n' +
234                         "<tenantId>"+tenantId+"</tenantId>" + '\n' +
235                         "<vnfCreated>"+vnfCreated+"</vnfCreated>" + '\n' +
236                         "<vnfId>"+vnfId+"</vnfId>";
237     }
238 }