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.openecomp.mso.adapters.tenantrest;
25 import java.io.Serializable;
26 import javax.xml.bind.annotation.XmlRootElement;
27 import org.jboss.resteasy.annotations.providers.NoJackson;
29 @XmlRootElement(name = "createTenantResponse")
31 public class CreateTenantResponse implements Serializable {
32 private static final long serialVersionUID = -456155026754759682L;
33 private String cloudSiteId;
34 private String tenantId;
35 private Boolean tenantCreated;
36 private TenantRollback tenantRollback = new TenantRollback();
38 public CreateTenantResponse() {}
40 public CreateTenantResponse(String cloudSiteId, String tenantId,
41 Boolean tenantCreated, TenantRollback tenantRollback) {
42 this.cloudSiteId = cloudSiteId;
43 this.tenantId = tenantId;
44 this.tenantCreated = tenantCreated;
45 this.tenantRollback = tenantRollback;
48 public String getCloudSiteId() {
52 public void setCloudSiteId(String cloudSiteId) {
53 this.cloudSiteId = cloudSiteId;
56 public String getTenantId() {
60 public void setTenantId(String tenantId) {
61 this.tenantId = tenantId;
64 public Boolean getTenantCreated() {
68 public void setTenantCreated(Boolean tenantCreated) {
69 this.tenantCreated = tenantCreated;
72 public TenantRollback getTenantRollback() {
73 return tenantRollback;
76 public void setTenantRollback(TenantRollback tenantRollback) {
77 this.tenantRollback = tenantRollback;
81 public String toString() {
82 return "CreateTenantResponse [cloudSiteId=" + cloudSiteId
83 + ", tenantId=" + tenantId + ", tenantCreated=" + tenantCreated
84 + ", tenantRollback=" + tenantRollback.toString() + "]";