Merge "Reorder modifiers"
[so.git] / mso-catalog-db / src / main / java / org / openecomp / mso / db / catalog / beans / HeatEnvironment.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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 import java.io.Serializable;
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 implements Serializable {
30         
31         private static final long serialVersionUID = 768026109321305392L;
32
33         private String artifactUuid = null;
34         private String name = null;
35         private String description = null;
36         private String environment = null;
37         private String artifactChecksum = null;
38
39         private Timestamp created = null;
40
41         public String getArtifactUuid() {
42                 return this.artifactUuid;
43         }
44         public void setArtifactUuid(String artifactUuid) {
45                 this.artifactUuid = artifactUuid;
46         }
47
48     public String getName () {
49         return name;
50     }
51
52     public void setName (String name) {
53         this.name = name;
54     }
55
56     public String getDescription() {
57                 return this.description;
58         }
59         public void setDescription(String description) {
60                 this.description = description;
61         }
62
63         public String getEnvironment() {
64                 return this.environment;
65         }
66         public void setEnvironment(String environment) {
67                 this.environment = environment;
68         }
69
70         public String getArtifactChecksum() {
71                 return artifactChecksum;
72         }
73
74         public void setArtifactChecksum(String artifactChecksum) {
75                 this.artifactChecksum = artifactChecksum;
76         }
77
78         public Timestamp getCreated() {
79                 return created;
80         }
81
82         public void setCreated(Timestamp created) {
83                 this.created = created;
84         }
85
86     @Override
87         public String toString () {
88                 StringBuilder sb = new StringBuilder();
89                 sb.append("Artifact UUID=").append(this.artifactUuid);
90         sb.append (", name=");
91         sb.append (name);
92         sb.append (", version=");
93         sb.append (version);
94         sb.append(", description=");
95         sb.append (this.description == null ? "null" : this.description);
96         sb.append(", body=");
97         sb.append (this.environment == null ? "null" : this.environment);
98                 if (this.created != null) {
99                 sb.append (",creationTimestamp=");
100                 sb.append (DateFormat.getInstance().format(this.created));
101             }
102                 return sb.toString();
103         }
104 }