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