d7dd2adfa6e72ab1a4d2d53b874a60306223d6f9
[so.git] / mso-catalog-db / src / main / java / org / openecomp / mso / db / catalog / beans / AllottedResourceCustomization.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 package org.openecomp.mso.db.catalog.beans;
21
22 import java.sql.Timestamp;
23
24 import org.openecomp.mso.db.catalog.utils.MavenLikeVersioning;
25
26 public class AllottedResourceCustomization extends MavenLikeVersioning {
27
28         private String modelCustomizationUuid;
29         private String modelUuid;
30         private String modelInvariantUuid;
31         private String modelVersion = null; // duplicate of version kept in parent class
32         private String modelName;
33         private String description;
34         private Timestamp created;
35         private String modelInstanceName;
36
37         public AllottedResourceCustomization() {
38                 super();
39         }
40
41         public String getModelCustomizationUuid() {
42                 return this.modelCustomizationUuid;
43         }
44         public void setModelCustomizationUuid(String modelCustomizationUuid) {
45                 this.modelCustomizationUuid = modelCustomizationUuid;
46         }
47
48         public String getModelUuid() {
49                 return this.modelUuid;
50         }
51         public void setModelUuid(String modelUuid) {
52                 this.modelUuid = modelUuid;
53         }
54
55         public String getModelInvariantUuid() {
56                 return this.modelInvariantUuid;
57         }
58         public void setModelInvariantUuid(String modelInvariantUuid) {
59                 this.modelInvariantUuid = modelInvariantUuid;
60         }
61
62         public String getModelName() {
63                 return this.modelName;
64         }
65         public void setModelName(String modelName) {
66                 this.modelName = modelName;
67         }
68
69         public String getDescription() {
70                 return this.description;
71         }
72         public void setDescription(String description) {
73                 this.description = description;
74         }
75
76         public Timestamp getCreated() {
77                 return this.created;
78         }
79         public void setCreated(Timestamp created) {
80                 this.created = created;
81         }
82
83         public String getModelInstanceName() {
84                 return this.modelInstanceName;
85         }
86         public void setModelInstanceName(String modelInstanceName) {
87                 this.modelInstanceName = modelInstanceName;
88         }
89         public String getModelVersion() {
90                 return this.modelVersion;
91         }
92         public void setModelVersion(String modelVersion) {
93                 this.modelVersion = modelVersion;
94         }
95
96         public String getModelInvariantId() { return "not yet implemented"; }
97
98         @Override
99         public String toString () {
100                 StringBuffer sb = new StringBuffer();
101                 sb.append("modelName=");
102                 sb.append(this.modelName);
103                 sb.append(",modelVersion=");
104                 sb.append(this.modelVersion);
105                 sb.append(",version=");
106                 sb.append(this.version);
107                 sb.append(",modelUuid=");
108                 sb.append(this.modelUuid);
109                 sb.append(",modelInvariantUuid=");
110                 sb.append(this.modelInvariantUuid);
111                 sb.append(",modelCustomizationUuid=");
112                 sb.append(this.modelCustomizationUuid);
113                 sb.append(",modelInstanceName=");
114                 sb.append(this.modelInstanceName);
115                 sb.append(",description=");
116                 sb.append(this.description);
117                 sb.append(",modelInstanceName=");
118                 sb.append(this.modelInstanceName);
119                 sb.append(",created=");
120                 sb.append(this.created);
121
122                 return sb.toString();
123         }
124
125 }