2 * Copyright 2016 ZTE Corporation.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org.onap.aai.esr.entity.rest;
18 import org.onap.aai.esr.entity.db.EmsData;
20 public class EmsRestData extends BaseRestData {
22 private String productName;
25 private String userName;
26 private String password;
29 public String getProductName() {
33 public void setProductName(String productName) {
34 this.productName = productName;
37 public String getUrl() {
41 public void setUrl(String url) {
45 public String getUserName() {
49 public void setUserName(String userName) {
50 this.userName = userName;
53 public String getPassword() {
57 public void setPassword(String password) {
58 this.password = password;
61 public String getEmsId() {
65 public void setEmsId(String emsId) {
72 public EmsRestData(EmsData 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);
83 public EmsRestData() {}