2 * ============LICENSE_START=======================================================
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
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.so.bpmn.common.adapter.vnf;
23 import javax.xml.bind.annotation.XmlAccessType;
24 import javax.xml.bind.annotation.XmlAccessorType;
25 import javax.xml.bind.annotation.XmlType;
29 * <p>Java class for vnfRollback complex type.
31 * <p>The following schema fragment specifies the expected content contained within this class.
34 * <complexType name="vnfRollback">
36 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
38 * <element name="cloudSiteId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
39 * <element name="cloudOwner" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
40 * <element name="msoRequest" type="{http://org.onap.so/vnfNotify}msoRequest" minOccurs="0"/>
41 * <element name="tenantCreated" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
42 * <element name="tenantId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
43 * <element name="vnfCreated" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
44 * <element name="vnfId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
47 * </complexContent>
53 @XmlAccessorType(XmlAccessType.FIELD)
54 @XmlType(name = "vnfRollback", propOrder = {
63 public class VnfRollback {
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;
74 * Gets the value of the cloudSiteId property.
81 public String getCloudSiteId() {
86 * Sets the value of the cloudSiteId property.
93 public void setCloudSiteId(String value) {
94 this.cloudSiteId = value;
98 * Gets the value of the cloudOwner property.
105 public String getCloudOwner() {
110 * Sets the value of the cloudOwner property.
117 public void setCloudOwner(String value) {
118 this.cloudOwner = value;
122 * Gets the value of the msoRequest property.
126 * {@link MsoRequest }
129 public MsoRequest getMsoRequest() {
134 * Sets the value of the msoRequest property.
138 * {@link MsoRequest }
141 public void setMsoRequest(MsoRequest value) {
142 this.msoRequest = value;
146 * Gets the value of the tenantCreated property.
149 public boolean isTenantCreated() {
150 return tenantCreated;
154 * Sets the value of the tenantCreated property.
157 public void setTenantCreated(boolean value) {
158 this.tenantCreated = value;
162 * Gets the value of the tenantId property.
169 public String getTenantId() {
174 * Sets the value of the tenantId property.
181 public void setTenantId(String value) {
182 this.tenantId = value;
186 * Gets the value of the vnfCreated property.
189 public boolean isVnfCreated() {
194 * Sets the value of the vnfCreated property.
197 public void setVnfCreated(boolean value) {
198 this.vnfCreated = value;
202 * Gets the value of the vnfId property.
209 public String getVnfId() {
214 * Sets the value of the vnfId property.
221 public void setVnfId(String value) {
225 public String toString() {
226 String msoRequestElement = msoRequest == null ? ""
227 : "<msoRequest>"+msoRequest+"</msoRequest>" + '\n';
230 "<cloudSiteId>"+cloudSiteId+"</cloudSiteId>" + '\n' +
231 "<cloudOwner>"+cloudOwner+"</cloudOwner>" + '\n' +
233 "<tenantCreated>"+tenantCreated+"</tenantCreated>" + '\n' +
234 "<tenantId>"+tenantId+"</tenantId>" + '\n' +
235 "<vnfCreated>"+vnfCreated+"</vnfCreated>" + '\n' +
236 "<vnfId>"+vnfId+"</vnfId>";