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.SdncData;
20 public class SdncRestData extends BaseRestData {
22 private String sdnControllerId;
24 private String userName;
25 private String password;
26 private String productName;
27 private String protocol;
30 public String getUrl() {
34 public void setUrl(String url) {
38 public String getUserName() {
42 public void setUserName(String userName) {
43 this.userName = userName;
46 public String getPassword() {
50 public void setPassword(String password) {
51 this.password = password;
54 public String getSdnControllerId() {
55 return sdnControllerId;
58 public void setSdnControllerId(String sdnControllerId) {
59 this.sdnControllerId = sdnControllerId;
62 public String getProductName() {
66 public void setProductName(String productName) {
67 this.productName = productName;
70 public String getProtocol() {
74 public void setProtocol(String protocol) {
75 this.protocol = protocol;
81 public SdncRestData(SdncData 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);
95 public SdncRestData() {