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 HeatEnvironment extends MavenLikeVersioning {
31 private String name = null;
32 private String description = null;
33 private String environment = null;
35 private String asdcUuid;
36 private String asdcResourceName;
37 private String asdcLabel;
39 private Timestamp created;
41 public HeatEnvironment() {}
47 public void setId(int id) {
55 public String getName () {
61 * @param name the name to set
63 public void setName (String name) {
67 public String getDescription() {
68 return this.description;
70 public void setDescription(String description) {
71 this.description = description;
74 public String getEnvironment() {
75 return this.environment;
77 public void setEnvironment(String environment) {
78 this.environment = environment;
81 public String getAsdcUuid() {
85 public void setAsdcUuid(String asdcUuid) {
86 this.asdcUuid = asdcUuid;
88 public String getAsdcLabel() {
89 return this.asdcLabel;
91 public void setAsdcLabel(String asdcLabel) {
92 this.asdcLabel = asdcLabel;
97 * @return the asdcResourceName
99 public String getAsdcResourceName () {
100 return asdcResourceName;
105 * @param asdcResourceName the asdcResourceName to set
107 public void setAsdcResourceName (String asdcResourceName) {
108 this.asdcResourceName = asdcResourceName;
111 public Timestamp getCreated() {
115 public void setCreated(Timestamp created) {
116 this.created = created;
120 public String toString () {
121 StringBuffer sb = new StringBuffer();
122 sb.append ("ID=" + this.id);
123 sb.append (", name=");
125 sb.append (", version=");
127 sb.append(", description=");
128 sb.append (description == null ? "null" : description);
129 sb.append(", environment=");
130 sb.append (environment == null ? "null" : environment);
131 sb.append(", asdcUuid=");
132 sb.append (asdcUuid == null ? "null" : asdcUuid);
133 sb.append (", asdcResourceName=");
134 sb.append (asdcResourceName == null ? "null" : asdcResourceName);
135 if (created != null) {
136 sb.append (",created=");
137 sb.append (DateFormat.getInstance().format(created));
139 return sb.toString();