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