[MSO-8] Update the maven dependency
[so.git] / mso-catalog-db / src / main / java / org / openecomp / mso / db / catalog / beans / HeatEnvironment.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * OPENECOMP - MSO
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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=========================================================
19  */
20
21 package org.openecomp.mso.db.catalog.beans;
22
23
24 import java.sql.Timestamp;
25 import java.text.DateFormat;
26
27 import org.openecomp.mso.db.catalog.utils.MavenLikeVersioning;
28
29 public class HeatEnvironment extends MavenLikeVersioning {
30         private int id;
31         private String name = null;
32         private String description = null;
33         private String environment = null;
34
35         private String asdcUuid;
36         private String asdcResourceName;
37         private String asdcLabel;
38         private String artifactChecksum;
39
40         private Timestamp created;
41
42         public HeatEnvironment() {}
43
44         public int getId() {
45                 return this.id;
46         }
47
48         public void setId(int id) {
49                 this.id = id;
50         }
51
52
53     /**
54      * @return the name
55      */
56     public String getName () {
57         return name;
58     }
59
60
61     /**
62      * @param name the name to set
63      */
64     public void setName (String name) {
65         this.name = name;
66     }
67
68     public String getDescription() {
69                 return this.description;
70         }
71         public void setDescription(String description) {
72                 this.description = description;
73         }
74
75         public String getEnvironment() {
76                 return this.environment;
77         }
78         public void setEnvironment(String environment) {
79                 this.environment = environment;
80         }
81
82         public String getAsdcUuid() {
83                 return asdcUuid;
84         }
85
86         public void setAsdcUuid(String asdcUuid) {
87                 this.asdcUuid = asdcUuid;
88         }
89         public String getAsdcLabel() {
90                 return this.asdcLabel;
91         }
92         public void setAsdcLabel(String asdcLabel) {
93                 this.asdcLabel = asdcLabel;
94         }
95
96         public String getArtifactChecksum() {
97                 return artifactChecksum;
98         }
99
100         public void setArtifactChecksum(String artifactChecksum) {
101                 this.artifactChecksum = artifactChecksum;
102         }
103
104         /**
105      * @return the asdcResourceName
106      */
107     public String getAsdcResourceName () {
108         return asdcResourceName;
109     }
110
111
112     /**
113      * @param asdcResourceName the asdcResourceName to set
114      */
115     public void setAsdcResourceName (String asdcResourceName) {
116         this.asdcResourceName = asdcResourceName;
117     }
118
119         public Timestamp getCreated() {
120                 return created;
121         }
122
123         public void setCreated(Timestamp created) {
124                 this.created = created;
125         }
126
127     @Override
128         public String toString () {
129                 StringBuffer sb = new StringBuffer();
130                 sb.append ("ID=" + this.id);
131         sb.append (", name=");
132         sb.append (name);
133         sb.append (", version=");
134         sb.append (version);
135         sb.append(", description=");
136         sb.append (description == null ? "null" : description);
137         sb.append(", environment=");
138         sb.append (environment == null ? "null" : environment);
139         sb.append(", asdcUuid=");
140         sb.append (asdcUuid == null ? "null" : asdcUuid);
141                 sb.append (", asdcResourceName=");
142                 sb.append (asdcResourceName == null ? "null" : asdcResourceName);
143                 if (created != null) {
144                 sb.append (",created=");
145                 sb.append (DateFormat.getInstance().format(created));
146             }
147                 return sb.toString();
148         }
149 }