8aba765908b5e7ff2c4d0daf82b374e9e8b4f9be
[so.git] /
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 import javax.xml.bind.annotation.XmlRootElement;
30 import org.onap.so.entity.MsoRequest;
31
32 @XmlRootElement(name = "createTenantRequest")
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<>();
39     private MsoRequest msoRequest = new MsoRequest();
40
41     public CreateTenantRequest() {
42         // empty constructor
43     }
44
45     public String getCloudSiteId() {
46         return cloudSiteId;
47     }
48
49     public void setCloudSiteId(String cloudSiteId) {
50         this.cloudSiteId = cloudSiteId;
51     }
52
53     public String getTenantName() {
54         return tenantName;
55     }
56
57     public void setTenantName(String tenantName) {
58         this.tenantName = tenantName;
59     }
60
61     public Boolean getFailIfExists() {
62         return failIfExists;
63     }
64
65     public void setFailIfExists(Boolean failIfExists) {
66         this.failIfExists = failIfExists;
67     }
68
69     public Boolean getBackout() {
70         return backout;
71     }
72
73     public void setBackout(Boolean backout) {
74         this.backout = backout;
75     }
76
77     public Map<String, String> getMetadata() {
78         return metadata;
79     }
80
81     public void setMetadata(Map<String, String> metadata) {
82         this.metadata = metadata;
83     }
84
85     public MsoRequest getMsoRequest() {
86         return msoRequest;
87     }
88
89     public void setMsoRequest(MsoRequest msoRequest) {
90         this.msoRequest = msoRequest;
91     }
92
93     @Override
94     public String toString() {
95         return "CreateTenantRequest [cloudSiteId=" + cloudSiteId + ", tenantName=" + tenantName + ", failIfExists="
96                 + failIfExists + ", backout=" + backout + ", metadata=" + metadata + "]";
97     }
98 }