ec304cec4183b83412781a3a0d7d829da6c6e32e
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / onap / so / adapters / tenantrest / CreateTenantResponse.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.onap.so.adapters.tenantrest;
22
23
24
25 import java.io.Serializable;
26
27 import javax.xml.bind.annotation.XmlRootElement;
28
29 @XmlRootElement(name = "createTenantResponse")
30 public class CreateTenantResponse implements Serializable {
31         private static final long serialVersionUID = -456155026754759682L;
32         private String cloudSiteId;
33         private String tenantId;
34         private Boolean tenantCreated;
35         private TenantRollback tenantRollback = new TenantRollback();
36         
37         public CreateTenantResponse() {}
38
39         public CreateTenantResponse(String cloudSiteId, String tenantId,
40                         Boolean tenantCreated, TenantRollback tenantRollback) {
41                 this.cloudSiteId = cloudSiteId;
42                 this.tenantId = tenantId;
43                 this.tenantCreated = tenantCreated;
44                 this.tenantRollback = tenantRollback;
45         }
46
47         public String getCloudSiteId() {
48                 return cloudSiteId;
49         }
50
51         public void setCloudSiteId(String cloudSiteId) {
52                 this.cloudSiteId = cloudSiteId;
53         }
54
55         public String getTenantId() {
56                 return tenantId;
57         }
58
59         public void setTenantId(String tenantId) {
60                 this.tenantId = tenantId;
61         }
62
63         public Boolean getTenantCreated() {
64                 return tenantCreated;
65         }
66
67         public void setTenantCreated(Boolean tenantCreated) {
68                 this.tenantCreated = tenantCreated;
69         }
70
71         public TenantRollback getTenantRollback() {
72                 return tenantRollback;
73         }
74
75         public void setTenantRollback(TenantRollback tenantRollback) {
76                 this.tenantRollback = tenantRollback;
77         }
78
79         @Override
80         public String toString() {
81                 return "CreateTenantResponse [cloudSiteId=" + cloudSiteId
82                                 + ", tenantId=" + tenantId + ", tenantCreated=" + tenantCreated
83                                 + ", tenantRollback=" + tenantRollback.toString() +  "]";
84         }
85 }