Upload the ESR server seed code.
[aai/esr-server.git] / esr-core / esr-mgr / src / main / java / org / onap / aai / esr / entity / rest / VimRestData.java
1 /**
2  * Copyright 2016 ZTE Corporation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package org.onap.aai.esr.entity.rest;
17
18 import org.onap.aai.esr.entity.db.VimData;
19
20 public class VimRestData extends BaseRestData {
21
22   private String vimId;
23
24   private String url;
25
26   private String userName;
27
28   private String password;
29
30   private String domain;
31
32   private String tenant;
33
34   public String getDomain() {
35     return domain;
36   }
37
38   public void setDomain(String domain) {
39     this.domain = domain;
40   }
41
42   public String getTenant() {
43     return tenant;
44   }
45
46   public void setTenant(String tenant) {
47     this.tenant = tenant;
48   }
49
50   public String getUrl() {
51     return url;
52   }
53
54   public void setUrl(String url) {
55     this.url = url;
56   }
57
58   public String getUserName() {
59     return userName;
60   }
61
62   public void setUserName(String userName) {
63     this.userName = userName;
64   }
65
66   public String getPassword() {
67     return password;
68   }
69
70   public void setPassword(String password) {
71     this.password = password;
72   }
73
74   public String getVimId() {
75     return vimId;
76   }
77
78   public void setVimId(String vimId) {
79     this.vimId = vimId;
80   }
81
82   /**
83    *  vim rest result.
84    */
85   public VimRestData(VimData data) {
86     super(data);
87     this.domain = data.getDomain();
88     this.password = data.getPassword();
89     this.url = data.getUrl();
90     this.userName = data.getUserName();
91     this.vimId = data.getId();
92     this.tenant = data.getTenant();
93     this.setInstanceId(null);
94     this.setCategory(null);
95
96   }
97
98   public VimRestData() {
99
100   }
101 }