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