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.BaseData;
20 public class BaseRestData {
22 private String instanceId;
26 private String vendor;
28 private String version;
30 private String description;
34 private String createTime;
36 private String category;
38 public String getInstanceId() {
42 public void setInstanceId(String instanceId) {
43 this.instanceId = instanceId;
46 public String getName() {
50 public void setName(String name) {
54 public String getVendor() {
58 public void setVendor(String vendor) {
62 public String getVersion() {
66 public void setVersion(String version) {
67 this.version = version;
70 public String getDescription() {
74 public void setDescription(String description) {
75 this.description = description;
78 public String getType() {
82 public void setType(String type) {
86 public String getCreateTime() {
90 public void setCreateTime(String createTime) {
91 this.createTime = createTime;
94 public String getCategory() {
98 public void setCategory(String category) {
99 this.category = category;
102 public BaseRestData() {
109 public BaseRestData(BaseData data) {
110 this.createTime = data.getCreateTime();
111 this.description = data.getDescription();
112 this.name = data.getName();
113 this.type = data.getType();
114 this.vendor = data.getVendor();
115 this.version = data.getVersion();
116 this.instanceId = data.getId();
117 this.category = data.getCategory();