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;
27 import org.openecomp.mso.db.catalog.utils.MavenLikeVersioning;
29 public class HeatFiles extends MavenLikeVersioning {
31 private String description = null;
32 private String fileName;
33 private String fileBody;
34 private int vnfResourceId;
35 private Timestamp created;
36 private String asdcUuid;
37 private String asdcLabel;
38 private String asdcResourceName;
39 private String artifactChecksum;
47 public void setId(int id) {
51 public String getDescription() {
52 return this.description;
54 public void setDescription(String description) {
55 this.description = description;
58 public String getFileName() {
61 public void setFileName(String fileName) {
62 this.fileName = fileName;
65 public String getFileBody() {
68 public void setFileBody(String fileBody) {
69 this.fileBody = fileBody;
72 public int getVnfResourceId() {
73 return this.vnfResourceId;
75 public void setVnfResourceId(int vnfResourceId) {
76 this.vnfResourceId = vnfResourceId;
79 public Timestamp getCreated() {
83 public void setCreated(Timestamp created) {
84 this.created = created;
87 public String getAsdcUuid() {
90 public void setAsdcUuid(String asdcUuid) {
91 this.asdcUuid = asdcUuid;
93 public String getAsdcLabel() {
94 return this.asdcLabel;
96 public void setAsdcLabel(String asdcLabel) {
97 this.asdcLabel = asdcLabel;
99 public String getAsdcResourceName() {
100 return asdcResourceName;
103 public void setAsdcResourceName(String asdcResourceName) {
104 this.asdcResourceName = asdcResourceName;
107 public String getArtifactChecksum() {
108 return artifactChecksum;
111 public void setArtifactChecksum(String artifactChecksum) {
112 this.artifactChecksum = artifactChecksum;
116 public String toString () {
117 StringBuffer sb = new StringBuffer();
118 sb.append ("ID=" + this.id);
119 if (this.description == null) {
120 sb.append(", description=null");
122 sb.append(", description=" + this.description);
124 if (this.fileName == null) {
125 sb.append(", fileName=null");
127 sb.append(",fileName=" + this.fileName);
129 if (this.fileBody == null) {
130 sb.append(", fileBody=null");
132 sb.append(",fileBody=" + this.fileBody);
134 if (this.asdcResourceName == null) {
135 sb.append(", asdcResourceName=null");
137 sb.append(",asdcResourceName=" + this.asdcResourceName);
139 if (created != null) {
140 sb.append (",created=");
141 sb.append (DateFormat.getInstance().format(created));
143 sb.append(", vnfResourceId=" + this.vnfResourceId);
144 return sb.toString();