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.VimData;
20 public class VimRestData extends BaseRestData {
26 private String userName;
28 private String password;
30 private String domain;
32 private String tenant;
34 public String getDomain() {
38 public void setDomain(String domain) {
42 public String getTenant() {
46 public void setTenant(String tenant) {
50 public String getUrl() {
54 public void setUrl(String url) {
58 public String getUserName() {
62 public void setUserName(String userName) {
63 this.userName = userName;
66 public String getPassword() {
70 public void setPassword(String password) {
71 this.password = password;
74 public String getVimId() {
78 public void setVimId(String vimId) {
85 public VimRestData(VimData data) {
87 this.domain = data.getDomain();
88 this.password = data.getPassword();
89 this.url = data.getUrl();
90 this.userName = data.getUserName();
91 this.vimId = data.getId();
92 this.tenant = data.getTenant();
93 this.setInstanceId(null);
94 this.setCategory(null);
98 public VimRestData() {