Containerization feature of SO
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / onap / so / adapters / vdu / CloudInfo.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2018 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.onap.so.adapters.vdu;
22
23 /**
24  * Cloud information structure for deploying/managing a VDU.  Includes the cloud site
25  * as well as tenant information within the site.  Currently this is defined as a 
26  * cloud site ID. which would map to a CloudConfig entry.
27  * Perhaps the CloudConfig entry itself should be provided, instead of requiring each
28  * plug-in to query it.
29  * 
30  * The meaning of 'tenant' may differ by cloud provider, but every cloud supports some
31  * sort of tenant partitioning.
32  * 
33  */
34 public class CloudInfo {
35         
36         private String cloudSiteId;
37         private String tenantId;        
38         private String tenantName;//bpmn query and pass
39         
40         public CloudInfo() {
41         }
42         
43         public CloudInfo (String cloudSiteId, String tenantId, String tenantName) {
44                 this.cloudSiteId = cloudSiteId;
45                 this.tenantId = tenantId;
46                 this.tenantName = tenantName;
47         }
48         
49         public String getCloudSiteId() {
50                 return cloudSiteId;
51         }
52         public void setCloudSiteId(String cloudSiteId) {
53                 this.cloudSiteId = cloudSiteId;
54         }
55         public String getTenantId() {
56                 return tenantId;
57         }
58         public void setTenantId(String tenantId) {
59                 this.tenantId = tenantId;
60         }
61         public String getTenantName() {
62                 return tenantName;
63         }
64         public void setTenantName(String tenantName) {
65                 this.tenantName = tenantName;
66         }
67         
68         
69 }