AT&T 1712 and 1802 release code
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / openecomp / mso / adapters / tenantrest / QueryTenantResponse.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 java.util.Map;
26 import javax.xml.bind.annotation.XmlRootElement;
27
28 @XmlRootElement(name = "queryTenantResponse")
29 public class QueryTenantResponse extends TenantRequestCommon {
30         private String tenantId;
31         private String tenantName;
32         private Map<String,String> metadata;
33         
34         public QueryTenantResponse() {}
35         
36         public QueryTenantResponse (String id, String name, Map<String,String> metadata) {
37                 this.tenantId = id;
38                 this.tenantName = name;
39                 this.metadata = metadata;
40         }
41         
42         public String getTenantId() {
43                 return tenantId;
44         }
45         public void setTenantId(String tenantId) {
46                 this.tenantId = tenantId;
47         }
48         
49         public String getTenantName() {
50                 return tenantName;
51         }
52         public void setTenantName(String tenantName) {
53                 this.tenantName = tenantName;
54         }
55         
56         public Map<String, String> getMetadata() {
57                 return metadata;
58         }
59         public void setMetadata(Map<String, String> metadata) {
60                 this.metadata = metadata;
61         }
62 }