1f4b872ab9d5610e1224d547686eefd32694efb0
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / onap / so / adapters / tenantrest / CreateTenantRequest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Modifications Copyright (C) 2018 IBM.
8  * ================================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * ============LICENSE_END=========================================================
21  */
22
23 package org.onap.so.adapters.tenantrest;
24
25
26
27 import java.util.HashMap;
28 import java.util.Map;
29
30 import javax.xml.bind.annotation.XmlRootElement;
31
32 import org.onap.so.entity.MsoRequest;
33
34 @XmlRootElement(name = "createTenantRequest")
35 public class CreateTenantRequest extends TenantRequestCommon {
36         private String cloudSiteId;
37         private String tenantName;
38         private Boolean failIfExists;
39         private Boolean backout;
40         private Map<String,String> metadata = new HashMap<>();
41         private MsoRequest msoRequest = new MsoRequest();
42         
43         public CreateTenantRequest() {
44                 //empty constructor
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 getTenantName() {
56                 return tenantName;
57         }
58
59         public void setTenantName(String tenantName) {
60                 this.tenantName = tenantName;
61         }
62
63         public Boolean getFailIfExists() {
64                 return failIfExists;
65         }
66
67         public void setFailIfExists(Boolean failIfExists) {
68                 this.failIfExists = failIfExists;
69         }
70
71         public Boolean getBackout() {
72                 return backout;
73         }
74
75         public void setBackout(Boolean backout) {
76                 this.backout = backout;
77         }
78
79         public Map<String, String> getMetadata() {
80                 return metadata;
81         }
82
83         public void setMetadata(Map<String, String> metadata) {
84                 this.metadata = metadata;
85         }
86
87         public MsoRequest getMsoRequest() {
88                 return msoRequest;
89         }
90
91         public void setMsoRequest(MsoRequest msoRequest) {
92                 this.msoRequest = msoRequest;
93         }
94
95         @Override
96         public String toString() {
97                 return "CreateTenantRequest [cloudSiteId=" + cloudSiteId
98                                 + ", tenantName=" + tenantName + ", failIfExists="
99                                 + failIfExists + ", backout=" + backout + ", metadata="
100                                 + metadata + "]";
101         }
102 }