d25d2b47c8455ae2253a4f00bf05c0246332b334
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / openecomp / mso / adapters / tenantrest / CreateTenantResponse.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * OPENECOMP - MSO
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.adapters.tenantrest;
22
23
24
25 import java.io.Serializable;
26 import javax.xml.bind.annotation.XmlRootElement;
27 import org.jboss.resteasy.annotations.providers.NoJackson;
28
29 @XmlRootElement(name = "createTenantResponse")
30 @NoJackson
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();
37         
38         public CreateTenantResponse() {}
39
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;
46         }
47
48         public String getCloudSiteId() {
49                 return cloudSiteId;
50         }
51
52         public void setCloudSiteId(String cloudSiteId) {
53                 this.cloudSiteId = cloudSiteId;
54         }
55
56         public String getTenantId() {
57                 return tenantId;
58         }
59
60         public void setTenantId(String tenantId) {
61                 this.tenantId = tenantId;
62         }
63
64         public Boolean getTenantCreated() {
65                 return tenantCreated;
66         }
67
68         public void setTenantCreated(Boolean tenantCreated) {
69                 this.tenantCreated = tenantCreated;
70         }
71
72         public TenantRollback getTenantRollback() {
73                 return tenantRollback;
74         }
75
76         public void setTenantRollback(TenantRollback tenantRollback) {
77                 this.tenantRollback = tenantRollback;
78         }
79
80         @Override
81         public String toString() {
82                 return "CreateTenantResponse [cloudSiteId=" + cloudSiteId
83                                 + ", tenantId=" + tenantId + ", tenantCreated=" + tenantCreated
84                                 + ", tenantRollback=" + tenantRollback.toString() +  "]";
85         }
86 }