Merge "Reorder modifiers"
[so.git] / mso-catalog-db / src / main / java / org / openecomp / mso / db / catalog / beans / VnfResourceCustomization.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 package org.openecomp.mso.db.catalog.beans;
21
22 import java.io.Serializable;
23 import java.sql.Timestamp;
24 import java.util.ArrayList;
25 import java.util.List;
26 import java.util.Set;
27
28 import org.openecomp.mso.db.catalog.utils.MavenLikeVersioning;
29
30 public class VnfResourceCustomization extends MavenLikeVersioning implements Serializable {
31
32         private static final long serialVersionUID = 768026109321305392L;
33         
34         private String modelCustomizationUuid = null;
35         private String modelInstanceName = null;
36         private Timestamp created = null;
37         private String vnfResourceModelUuid = null;
38         private String vnfResourceModelUUID = null;
39         private Integer minInstances;
40         private Integer maxInstances;
41         private Integer availabilityZoneMaxCount;
42         private VnfResource vnfResource;
43         private String nfFunction = null;
44         private String nfType = null;
45         private String nfRole = null;
46         private String nfNamingCode = null;
47         private String multiStageDesign = null;
48     private List<VfModuleCustomization> vfModuleCustomizations;
49     private Set<ServiceToResourceCustomization> serviceResourceCustomizations;
50
51         public VnfResourceCustomization() {
52         }
53
54
55         public String getModelCustomizationUuid() {
56                 return modelCustomizationUuid;
57         }
58
59         public void setModelCustomizationUuid(String modelCustomizationUuid) {
60                 this.modelCustomizationUuid = modelCustomizationUuid;
61         }
62
63         public String getModelInstanceName() {
64                 return this.modelInstanceName;
65         }
66         public void setModelInstanceName(String modelInstanceName) {
67                 this.modelInstanceName = modelInstanceName;
68         }
69
70         public Timestamp getCreationTimestamp() {
71                 return this.created;
72         }
73         public void setCreationTimestamp(Timestamp created) {
74                 this.created = created;
75         }
76
77         public String getVnfResourceModelUuid() {
78                 return this.vnfResourceModelUuid == null ? this.vnfResourceModelUUID : this.vnfResourceModelUuid;
79         }
80         public void setVnfResourceModelUuid(String vnfResourceModelUuid) {
81                 this.vnfResourceModelUuid = vnfResourceModelUuid;
82         }
83         public String getVnfResourceModelUUID() {
84                 return this.vnfResourceModelUUID;
85         }
86         public void setVnfResourceModelUUID(String vnfResourceModelUUID) {
87                 this.vnfResourceModelUUID = vnfResourceModelUUID;
88         }
89         public Integer getMinInstances() {
90                 return this.minInstances;
91         }
92         public void setMinInstances(Integer minInstances) {
93                 this.minInstances = minInstances;
94         }
95
96         public Integer getMaxInstances() {
97                 return this.maxInstances;
98         }
99         public void setMaxInstances(Integer maxInstances) {
100                 this.maxInstances = maxInstances;
101         }
102
103         public Integer getAvailabilityZoneMaxCount() {
104                 return this.availabilityZoneMaxCount;
105         }
106         public void setAvailabilityZoneMaxCount(Integer availabilityZoneMaxCount) {
107                 this.availabilityZoneMaxCount = availabilityZoneMaxCount;
108         }
109
110         public VnfResource getVnfResource() {
111                 return this.vnfResource;
112         }
113         public void setVnfResource(VnfResource vnfResource) {
114                 this.vnfResource = vnfResource;
115         }
116
117         public String getNfFunction() {
118                 return nfFunction;
119         }
120
121         public void setNfFunction(String nfFunction) {
122                 this.nfFunction = nfFunction;
123         }
124
125         public String getNfType() {
126                 return nfType;
127         }
128
129         public void setNfType(String nfType) {
130                 this.nfType = nfType;
131         }
132
133         public String getNfRole() {
134                 return nfRole;
135         }
136
137         public void setNfRole(String nfRole) {
138                 this.nfRole = nfRole;
139         }
140
141         public String getNfNamingCode() {
142                 return nfNamingCode;
143         }
144
145         public void setNfNamingCode(String nfNamingCode) {
146                 this.nfNamingCode = nfNamingCode;
147         }
148         public String getMultiStageDesign() {
149                 return this.multiStageDesign;
150         }
151         public void setMultiStageDesign(String multiStageDesign) {
152                 this.multiStageDesign = multiStageDesign;
153         }
154         public List<VfModuleCustomization> getVfModuleCustomizations() {
155                 return this.vfModuleCustomizations;
156         }
157         public void setVfModuleCustomizations(List<VfModuleCustomization> vfModuleCustomizations) {
158                 this.vfModuleCustomizations = vfModuleCustomizations;
159         }
160         public void addVfModuleCustomization(VfModuleCustomization vfmc) {
161                 if (vfmc != null) {
162                         if (this.vfModuleCustomizations != null) {
163                                 this.vfModuleCustomizations.add(vfmc);
164                         } else {
165                                 this.vfModuleCustomizations = new ArrayList<>();
166                                 this.vfModuleCustomizations.add(vfmc);
167                         }
168                 }
169         }
170         public Timestamp getCreated() {
171                 return created;
172         }
173
174         public void setCreated(Timestamp created) {
175                 this.created = created;
176         }
177
178         public Set<ServiceToResourceCustomization> getServiceResourceCustomizations() {
179                 return serviceResourceCustomizations;
180         }
181
182         public void setServiceResourceCustomizations(
183                         Set<ServiceToResourceCustomization> serviceResourceCustomizations) {
184                 this.serviceResourceCustomizations = serviceResourceCustomizations;
185         }
186
187         @Override
188         public String toString() {
189         return "VnfResourceCustomization: " + "ModelCustUuid=" + this.modelCustomizationUuid +
190             ", ModelInstanceName=" + this.modelInstanceName +
191             ", vnfResourceModelUuid=" + this.vnfResourceModelUUID +
192             ", creationTimestamp=" + this.created +
193             ", minInstances=" + this.minInstances +
194             ", maxInstances=" + this.maxInstances +
195             ", availabilityZoneMaxCount=" + this.availabilityZoneMaxCount +
196             ", nfFunction=" + this.nfFunction +
197             ", nfType=" + this.nfType +
198             ", nfRole=" + this.nfRole +
199             ", nfNamingCode=" + this.nfNamingCode +
200             ", multiStageDesign=" + this.multiStageDesign;
201         }
202
203 }