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=========================================================
20 package org.openecomp.mso.db.catalog.beans;
22 import java.sql.Timestamp;
24 import org.openecomp.mso.db.catalog.utils.MavenLikeVersioning;
26 public class AllottedResourceCustomization extends MavenLikeVersioning {
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;
37 public AllottedResourceCustomization() {
41 public String getModelCustomizationUuid() {
42 return this.modelCustomizationUuid;
44 public void setModelCustomizationUuid(String modelCustomizationUuid) {
45 this.modelCustomizationUuid = modelCustomizationUuid;
48 public String getModelUuid() {
49 return this.modelUuid;
51 public void setModelUuid(String modelUuid) {
52 this.modelUuid = modelUuid;
55 public String getModelInvariantUuid() {
56 return this.modelInvariantUuid;
58 public void setModelInvariantUuid(String modelInvariantUuid) {
59 this.modelInvariantUuid = modelInvariantUuid;
62 public String getModelName() {
63 return this.modelName;
65 public void setModelName(String modelName) {
66 this.modelName = modelName;
69 public String getDescription() {
70 return this.description;
72 public void setDescription(String description) {
73 this.description = description;
76 public Timestamp getCreated() {
79 public void setCreated(Timestamp created) {
80 this.created = created;
83 public String getModelInstanceName() {
84 return this.modelInstanceName;
86 public void setModelInstanceName(String modelInstanceName) {
87 this.modelInstanceName = modelInstanceName;
89 public String getModelVersion() {
90 return this.modelVersion;
92 public void setModelVersion(String modelVersion) {
93 this.modelVersion = modelVersion;
97 public String toString () {
98 StringBuffer sb = new StringBuffer();
99 sb.append("modelName=");
100 sb.append(this.modelName);
101 sb.append(",modelVersion=");
102 sb.append(this.modelVersion);
103 sb.append(",version=");
104 sb.append(this.version);
105 sb.append(",modelUuid=");
106 sb.append(this.modelUuid);
107 sb.append(",modelInvariantUuid=");
108 sb.append(this.modelInvariantUuid);
109 sb.append(",modelCustomizationUuid=");
110 sb.append(this.modelCustomizationUuid);
111 sb.append(",modelInstanceName=");
112 sb.append(this.modelInstanceName);
113 sb.append(",description=");
114 sb.append(this.description);
115 sb.append(",modelInstanceName=");
116 sb.append(this.modelInstanceName);
117 sb.append(",created=");
118 sb.append(this.created);
120 return sb.toString();