2bc6b3ead3d24c3d0d0a60593d9382d5fd287e77
[so.git] / mso-catalog-db / src / main / java / org / openecomp / mso / db / catalog / beans / VnfResourceCustomization.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 public class VnfResourceCustomization {
25
26         private String modelCustomizationUuid;
27         private String modelInstanceName;
28         private Integer ecompHomed;
29         private String homingPolicy;
30         private Timestamp creationTimestamp;
31         private String vnfResourceModelUuid;
32         private Integer minInstances;
33         private Integer maxInstances;
34         private Integer availabilityZoneMaxCount;
35         private VnfResource vnfResource;
36
37         public VnfResourceCustomization() {
38         }
39
40         public String getModelCustomizationUuid() {
41                 return this.modelCustomizationUuid;
42         }
43         public void setModelCustomizationUuid(String modelCustomizationUuid) {
44                 this.modelCustomizationUuid = modelCustomizationUuid;
45         }
46
47         public String getModelInstanceName() {
48                 return this.modelInstanceName;
49         }
50         public void setModelInstanceName(String modelInstanceName) {
51                 this.modelInstanceName = modelInstanceName;
52         }
53
54         public Integer getEcompHomed() {
55                 return this.ecompHomed;
56         }
57         public void setEcompHomed(Integer ecompHomed) {
58                 this.ecompHomed = ecompHomed;
59         }
60
61         public String getHomingPolicy() {
62                 return this.homingPolicy;
63         }
64         public void setHomingPolicy(String homingPolicy) {
65                 this.homingPolicy = homingPolicy;
66         }
67
68         public Timestamp getCreationTimestamp() {
69                 return this.creationTimestamp;
70         }
71         public void setCreationTimestamp(Timestamp creationTimestamp) {
72                 this.creationTimestamp = creationTimestamp;
73         }
74
75         public String getVnfResourceModelUuid() {
76                 return this.vnfResourceModelUuid;
77         }
78         public void setVnfResourceModelUuid(String vnfResourceModelUuid) {
79                 this.vnfResourceModelUuid = vnfResourceModelUuid;
80         }
81         public Integer getMinInstances() {
82                 return this.minInstances;
83         }
84         public void setMinInstances(Integer minInstances) {
85                 this.minInstances = minInstances;
86         }
87
88         public Integer getMaxInstances() {
89                 return this.maxInstances;
90         }
91         public void setMaxInstances(Integer maxInstances) {
92                 this.maxInstances = maxInstances;
93         }
94
95         public Integer getAvailabilityZoneMaxCount() {
96                 return this.availabilityZoneMaxCount;
97         }
98         public void setAvailabilityZoneMaxCount(Integer availabilityZoneMaxCount) {
99                 this.availabilityZoneMaxCount = availabilityZoneMaxCount;
100         }
101
102         public VnfResource getVnfResource() {
103                 return this.vnfResource;
104         }
105         public void setVnfResource(VnfResource vnfResource) {
106                 this.vnfResource = vnfResource;
107         }
108
109         @Override
110         public String toString() {
111                 StringBuilder sb = new StringBuilder("VnfResourceCustomization: ");
112                 sb.append("ModelCustUuid=" + this.modelCustomizationUuid);
113                 sb.append(", ModelInstanceName=" + this.modelInstanceName);
114                 sb.append(", ecompHomed=" + this.ecompHomed);
115                 sb.append(", homingPolicy=" + this.homingPolicy);
116                 sb.append(", vnfResourceModelUuid=" + this.vnfResourceModelUuid);
117                 sb.append(", creationTimestamp=" + this.creationTimestamp);
118                 sb.append(", minInstances=" + this.minInstances);
119                 sb.append(", maxInstances=" + this.maxInstances);
120                 sb.append(", availabilityZoneMaxCount=" + this.availabilityZoneMaxCount);
121                 sb.append(", vnfResource:\n" + this.vnfResource.toString());
122                 return sb.toString();
123         }
124
125
126
127 }