Change the header to SO
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / openecomp / mso / 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.openecomp.mso.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="msoRequest" type="{http://org.openecomp.mso/vnfNotify}msoRequest" minOccurs="0"/>
40  *         &lt;element name="tenantCreated" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
41  *         &lt;element name="tenantId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
42  *         &lt;element name="vnfCreated" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
43  *         &lt;element name="vnfId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
44  *       &lt;/sequence>
45  *     &lt;/restriction>
46  *   &lt;/complexContent>
47  * &lt;/complexType>
48  * </pre>
49  * 
50  * 
51  */
52 @XmlAccessorType(XmlAccessType.FIELD)
53 @XmlType(name = "vnfRollback", propOrder = {
54     "cloudSiteId",
55     "msoRequest",
56     "tenantCreated",
57     "tenantId",
58     "vnfCreated",
59     "vnfId"
60 })
61 public class VnfRollback {
62
63     protected String cloudSiteId;
64     protected MsoRequest msoRequest;
65     protected boolean tenantCreated;
66     protected String tenantId;
67     protected boolean vnfCreated;
68     protected String vnfId;
69
70     /**
71      * Gets the value of the cloudSiteId property.
72      * 
73      * @return
74      *     possible object is
75      *     {@link String }
76      *     
77      */
78     public String getCloudSiteId() {
79         return cloudSiteId;
80     }
81
82     /**
83      * Sets the value of the cloudSiteId property.
84      * 
85      * @param value
86      *     allowed object is
87      *     {@link String }
88      *     
89      */
90     public void setCloudSiteId(String value) {
91         this.cloudSiteId = value;
92     }
93
94     /**
95      * Gets the value of the msoRequest property.
96      * 
97      * @return
98      *     possible object is
99      *     {@link MsoRequest }
100      *     
101      */
102     public MsoRequest getMsoRequest() {
103         return msoRequest;
104     }
105
106     /**
107      * Sets the value of the msoRequest property.
108      * 
109      * @param value
110      *     allowed object is
111      *     {@link MsoRequest }
112      *     
113      */
114     public void setMsoRequest(MsoRequest value) {
115         this.msoRequest = value;
116     }
117
118     /**
119      * Gets the value of the tenantCreated property.
120      * 
121      */
122     public boolean isTenantCreated() {
123         return tenantCreated;
124     }
125
126     /**
127      * Sets the value of the tenantCreated property.
128      * 
129      */
130     public void setTenantCreated(boolean value) {
131         this.tenantCreated = value;
132     }
133
134     /**
135      * Gets the value of the tenantId property.
136      * 
137      * @return
138      *     possible object is
139      *     {@link String }
140      *     
141      */
142     public String getTenantId() {
143         return tenantId;
144     }
145
146     /**
147      * Sets the value of the tenantId property.
148      * 
149      * @param value
150      *     allowed object is
151      *     {@link String }
152      *     
153      */
154     public void setTenantId(String value) {
155         this.tenantId = value;
156     }
157
158     /**
159      * Gets the value of the vnfCreated property.
160      * 
161      */
162     public boolean isVnfCreated() {
163         return vnfCreated;
164     }
165
166     /**
167      * Sets the value of the vnfCreated property.
168      * 
169      */
170     public void setVnfCreated(boolean value) {
171         this.vnfCreated = value;
172     }
173
174     /**
175      * Gets the value of the vnfId property.
176      * 
177      * @return
178      *     possible object is
179      *     {@link String }
180      *     
181      */
182     public String getVnfId() {
183         return vnfId;
184     }
185
186     /**
187      * Sets the value of the vnfId property.
188      * 
189      * @param value
190      *     allowed object is
191      *     {@link String }
192      *     
193      */
194     public void setVnfId(String value) {
195         this.vnfId = value;
196     }
197     
198     public String toString() {
199         String msoRequestElement = msoRequest == null ? ""
200                         : "<msoRequest>"+msoRequest+"</msoRequest>" + '\n';
201
202                 return
203                         "<cloudSiteId>"+cloudSiteId+"</cloudSiteId>" + '\n' +
204                         msoRequestElement +
205                         "<tenantCreated>"+tenantCreated+"</tenantCreated>" + '\n' +
206                         "<tenantId>"+tenantId+"</tenantId>" + '\n' +
207                         "<vnfCreated>"+vnfCreated+"</vnfCreated>" + '\n' +
208                         "<vnfId>"+vnfId+"</vnfId>";
209     }
210 }