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;
30 * Java class for vnfRollback complex type.
33 * The following schema fragment specifies the expected content contained within this class.
36 * <complexType name="vnfRollback">
38 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
40 * <element name="cloudSiteId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
41 * <element name="cloudOwner" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
42 * <element name="msoRequest" type="{http://org.onap.so/vnfNotify}msoRequest" minOccurs="0"/>
43 * <element name="tenantCreated" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
44 * <element name="tenantId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
45 * <element name="vnfCreated" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
46 * <element name="vnfId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
49 * </complexContent>
55 @XmlAccessorType(XmlAccessType.FIELD)
56 @XmlType(name = "vnfRollback",
57 propOrder = {"cloudSiteId", "cloudOwner", "msoRequest", "tenantCreated", "tenantId", "vnfCreated", "vnfId"})
58 public class VnfRollback {
60 protected String cloudSiteId;
61 protected String cloudOwner;
62 protected MsoRequest msoRequest;
63 protected boolean tenantCreated;
64 protected String tenantId;
65 protected boolean vnfCreated;
66 protected String vnfId;
69 * Gets the value of the cloudSiteId property.
71 * @return possible object is {@link String }
74 public String getCloudSiteId() {
79 * Sets the value of the cloudSiteId property.
81 * @param value allowed object is {@link String }
84 public void setCloudSiteId(String value) {
85 this.cloudSiteId = value;
89 * Gets the value of the cloudOwner property.
91 * @return possible object is {@link String }
94 public String getCloudOwner() {
99 * Sets the value of the cloudOwner property.
101 * @param value allowed object is {@link String }
104 public void setCloudOwner(String value) {
105 this.cloudOwner = value;
109 * Gets the value of the msoRequest property.
111 * @return possible object is {@link MsoRequest }
114 public MsoRequest getMsoRequest() {
119 * Sets the value of the msoRequest property.
121 * @param value allowed object is {@link MsoRequest }
124 public void setMsoRequest(MsoRequest value) {
125 this.msoRequest = value;
129 * Gets the value of the tenantCreated property.
132 public boolean isTenantCreated() {
133 return tenantCreated;
137 * Sets the value of the tenantCreated property.
140 public void setTenantCreated(boolean value) {
141 this.tenantCreated = value;
145 * Gets the value of the tenantId property.
147 * @return possible object is {@link String }
150 public String getTenantId() {
155 * Sets the value of the tenantId property.
157 * @param value allowed object is {@link String }
160 public void setTenantId(String value) {
161 this.tenantId = value;
165 * Gets the value of the vnfCreated property.
168 public boolean isVnfCreated() {
173 * Sets the value of the vnfCreated property.
176 public void setVnfCreated(boolean value) {
177 this.vnfCreated = value;
181 * Gets the value of the vnfId property.
183 * @return possible object is {@link String }
186 public String getVnfId() {
191 * Sets the value of the vnfId property.
193 * @param value allowed object is {@link String }
196 public void setVnfId(String value) {
200 public String toString() {
201 String msoRequestElement = msoRequest == null ? "" : "<msoRequest>" + msoRequest + "</msoRequest>" + '\n';
203 return "<cloudSiteId>" + cloudSiteId + "</cloudSiteId>" + '\n' + "<cloudOwner>" + cloudOwner + "</cloudOwner>"
204 + '\n' + msoRequestElement + "<tenantCreated>" + tenantCreated + "</tenantCreated>" + '\n'
205 + "<tenantId>" + tenantId + "</tenantId>" + '\n' + "<vnfCreated>" + vnfCreated + "</vnfCreated>" + '\n'
206 + "<vnfId>" + vnfId + "</vnfId>";