2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.mso.db.catalog.beans;
24 import java.sql.Timestamp;
25 import java.text.DateFormat;
28 import org.openecomp.mso.db.catalog.utils.MavenLikeVersioning;
30 public class VnfResource extends MavenLikeVersioning {
33 private String vnfType;
35 private String orchestrationMode = null;
36 private String description = null;
37 private Integer templateId;
38 private Integer environmentId = null;
40 private Map <String, HeatFiles> heatFiles;
42 private String asdcUuid;
44 private Timestamp created;
46 private String aicVersionMin = null;
47 private String aicVersionMax = null;
49 private String modelInvariantUuid = null;
50 private String modelVersion = null;
52 private String modelCustomizationName = null;
54 private String modelName = null;
55 private String serviceModelInvariantUUID = null;
57 public VnfResource () {
64 public void setId (int id) {
68 public String getVnfType () {
72 public void setVnfType (String vnfType) {
73 this.vnfType = vnfType;
76 public String getOrchestrationMode () {
77 return orchestrationMode;
80 public void setOrchestrationMode (String orchestrationMode) {
81 this.orchestrationMode = orchestrationMode;
84 public String getDescription () {
88 public void setDescription (String description) {
89 this.description = description;
92 public Integer getTemplateId () {
96 public void setTemplateId (Integer templateId) {
97 this.templateId = templateId;
100 public Integer getEnvironmentId () {
101 return this.environmentId;
104 public void setEnvironmentId (Integer environmentId) {
105 this.environmentId = environmentId;
108 public Map <String, HeatFiles> getHeatFiles () {
109 return this.heatFiles;
112 public void setHeatFiles (Map <String, HeatFiles> heatFiles) {
113 this.heatFiles = heatFiles;
116 public String getAsdcUuid() {
120 public void setAsdcUuid(String asdcUuidp) {
121 this.asdcUuid = asdcUuidp;
124 public Timestamp getCreated() {
128 public void setCreated(Timestamp created) {
129 this.created = created;
132 public String getAicVersionMin() {
133 return this.aicVersionMin;
136 public void setAicVersionMin(String aicVersionMin) {
137 this.aicVersionMin = aicVersionMin;
140 public String getAicVersionMax() {
141 return this.aicVersionMax;
144 public void setAicVersionMax(String aicVersionMax) {
145 this.aicVersionMax = aicVersionMax;
148 public String getModelInvariantUuid() {
149 return this.modelInvariantUuid;
152 public void setModelInvariantUuid(String modelInvariantUuid) {
153 this.modelInvariantUuid = modelInvariantUuid;
156 public String getModelVersion() {
157 return this.modelVersion;
159 public void setModelVersion(String modelVersion) {
160 this.modelVersion = modelVersion;
163 public String getModelCustomizationName() {
164 return modelCustomizationName;
167 public void setModelCustomizationName(String modelCustomizationName) {
168 this.modelCustomizationName = modelCustomizationName;
171 public String getModelName() {
175 public void setModelName(String modelName) {
176 this.modelName = modelName;
179 public String getServiceModelInvariantUUID() {
180 return serviceModelInvariantUUID;
183 public void setServiceModelInvariantUUID(String serviceModelInvariantUUID) {
184 this.serviceModelInvariantUUID = serviceModelInvariantUUID;
188 public String toString () {
189 StringBuffer buf = new StringBuffer();
193 buf.append(",version=");
195 buf.append(",mode=");
196 buf.append(orchestrationMode);
197 buf.append(",template=");
198 buf.append(templateId);
199 buf.append(",envtId=");
200 buf.append(environmentId);
201 buf.append(",asdcUuid=");
202 buf.append(asdcUuid);
203 buf.append(",aicVersionMin=");
204 buf.append(this.aicVersionMin);
205 buf.append(",aicVersionMax=");
206 buf.append(this.aicVersionMax);
207 buf.append(",modelInvariantUuid=");
208 buf.append(this.modelInvariantUuid);
209 buf.append(",modelVersion=");
210 buf.append(this.modelVersion);
211 buf.append(",modelCustomizationName=");
212 buf.append(this.modelCustomizationName);
213 buf.append(",modelName=");
214 buf.append(this.modelName);
215 buf.append(",serviceModelInvariantUUID=");
216 buf.append(this.serviceModelInvariantUUID);
218 if (created != null) {
219 buf.append(",created=");
220 buf.append(DateFormat.getInstance().format(created));
222 return buf.toString();