AT&T 1712 and 1802 release code
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / openecomp / mso / 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  * 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 org.openecomp.mso.entity.MsoRequest;
26 import java.util.Map;
27 import java.util.HashMap;
28 import javax.xml.bind.annotation.XmlRootElement;
29
30 @XmlRootElement(name = "createTenantRequest")
31 public class CreateTenantRequest extends TenantRequestCommon {
32         private String cloudSiteId;
33         private String tenantName;
34         private Boolean failIfExists;
35         private Boolean backout;
36         private Map<String,String> metadata = new HashMap<>();
37         private MsoRequest msoRequest = new MsoRequest();
38         
39         public CreateTenantRequest() {}
40
41         public String getCloudSiteId() {
42                 return cloudSiteId;
43         }
44
45         public void setCloudSiteId(String cloudSiteId) {
46                 this.cloudSiteId = cloudSiteId;
47         }
48
49         public String getTenantName() {
50                 return tenantName;
51         }
52
53         public void setTenantName(String tenantName) {
54                 this.tenantName = tenantName;
55         }
56
57         public Boolean getFailIfExists() {
58                 return failIfExists;
59         }
60
61         public void setFailIfExists(Boolean failIfExists) {
62                 this.failIfExists = failIfExists;
63         }
64
65         public Boolean getBackout() {
66                 return backout;
67         }
68
69         public void setBackout(Boolean backout) {
70                 this.backout = backout;
71         }
72
73         public Map<String, String> getMetadata() {
74                 return metadata;
75         }
76
77         public void setMetadata(Map<String, String> metadata) {
78                 this.metadata = metadata;
79         }
80
81         public MsoRequest getMsoRequest() {
82                 return msoRequest;
83         }
84
85         public void setMsoRequest(MsoRequest msoRequest) {
86                 this.msoRequest = msoRequest;
87         }
88
89         @Override
90         public String toString() {
91                 return "CreateTenantRequest [cloudSiteId=" + cloudSiteId
92                                 + ", tenantName=" + tenantName + ", failIfExists="
93                                 + failIfExists + ", backout=" + backout + ", metadata="
94                                 + metadata + "]";
95         }
96 }