Upload the ESR server seed code.
[aai/esr-server.git] / esr-core / esr-mgr / src / main / java / org / onap / aai / esr / entity / rest / VnfmRestData.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.VnfmData;
19
20 public class VnfmRestData extends BaseRestData {
21
22   private String vnfmId;
23   private String url;
24
25   private String userName;
26   private String password;
27   private String vimId;
28   private String certificateUrl;
29
30   public String getVnfmId() {
31     return vnfmId;
32   }
33
34   public void setVnfmId(String vnfmId) {
35     this.vnfmId = vnfmId;
36   }
37
38   public String getUrl() {
39     return url;
40   }
41
42   public void setUrl(String url) {
43     this.url = url;
44   }
45
46   public String getUserName() {
47     return userName;
48   }
49
50   public void setUserName(String userName) {
51     this.userName = userName;
52   }
53
54   public String getPassword() {
55     return password;
56   }
57
58   public void setPassword(String password) {
59     this.password = password;
60   }
61
62   public String getVimId() {
63     return vimId;
64   }
65
66   public void setVimId(String vimId) {
67     this.vimId = vimId;
68   }
69
70   public String getCertificateUrl() {
71     return certificateUrl;
72   }
73
74   public void setCertificateUrl(String certificateUrl) {
75     this.certificateUrl = certificateUrl;
76   }
77
78   /**
79    * vnfm rest result.
80    */
81   public VnfmRestData(VnfmData data) {
82     super(data);
83     this.certificateUrl = data.getCertificateUrl();
84     this.password = data.getPassword();
85     this.url = data.getUrl();
86     this.userName = data.getUserName();
87     this.vimId = data.getVimId();
88     this.vnfmId = data.getId();
89     this.setInstanceId(null);
90     this.setCategory(null);
91   }
92
93   public VnfmRestData() {
94
95   }
96 }