f7db785debeada028a4e19b557eed7e5b69d166d
[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 cloudOwner;
38         private String tenantId;
39         private String tenantName;//bpmn query and pass
40
41         public CloudInfo() {
42         }
43
44         public CloudInfo (String cloudSiteId, String cloudOwner, String tenantId, String tenantName) {
45                 this.cloudSiteId = cloudSiteId;
46                 this.cloudOwner = cloudOwner;
47                 this.tenantId = tenantId;
48                 this.tenantName = tenantName;
49         }
50
51         public String getCloudSiteId() {
52                 return cloudSiteId;
53         }
54         public void setCloudSiteId(String cloudSiteId) {
55                 this.cloudSiteId = cloudSiteId;
56         }
57     public String getCloudOwner() {
58         return cloudOwner;
59     }
60     public void setCloudOwner(String cloudOwner) {
61         this.cloudOwner = cloudOwner;
62     }
63         public String getTenantId() {
64                 return tenantId;
65         }
66         public void setTenantId(String tenantId) {
67                 this.tenantId = tenantId;
68         }
69         public String getTenantName() {
70                 return tenantName;
71         }
72         public void setTenantName(String tenantName) {
73                 this.tenantName = tenantName;
74         }
75
76
77 }