Change the header to SO
[so.git] / mso-catalog-db / src / main / java / org / openecomp / mso / db / catalog / beans / AllottedResourceCustomization.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
25 import org.openecomp.mso.db.catalog.utils.MavenLikeVersioning;
26 import org.openecomp.mso.db.catalog.beans.AllottedResource;
27
28 public class AllottedResourceCustomization extends MavenLikeVersioning implements Serializable {
29         
30         private static final long serialVersionUID = 768026109321305392L;
31
32         private String modelCustomizationUuid;
33         private String arModelUuid;
34         private Timestamp created;
35         private String modelInstanceName;
36         private String providingServiceModelInvariantUuid;
37         private String targetNetworkRole;
38         private String nfFunction;
39         private String nfType;
40         private String nfRole;
41         private String nfNamingCode;
42         private Integer minInstances;
43         private Integer maxInstances;
44         private AllottedResource ar = null;
45
46         public AllottedResourceCustomization() {
47                 super();
48         }
49
50         public String getModelCustomizationUuid() {
51                 return this.modelCustomizationUuid;
52         }
53         public void setModelCustomizationUuid(String modelCustomizationUuid) {
54                 this.modelCustomizationUuid = modelCustomizationUuid;
55         }
56
57         public String getArModelUuid() {
58                 return this.arModelUuid;
59         }
60         public void setArModelUuid(String arModelUuid) {
61                 this.arModelUuid = arModelUuid;
62         }
63
64         public Timestamp getCreated() {
65                 return this.created;
66         }
67         public void setCreated(Timestamp created) {
68                 this.created = created;
69         }
70
71         public String getModelInstanceName() {
72                 return this.modelInstanceName;
73         }
74         public void setModelInstanceName(String modelInstanceName) {
75                 this.modelInstanceName = modelInstanceName;
76         }
77         public AllottedResource getAllottedResource() {
78                 return this.ar;
79         }
80         public void setAllottedResource(AllottedResource ar) {
81                 this.ar = ar;
82         }
83         public String getProvidingServiceModelInvariantUuid() {
84                 return this.providingServiceModelInvariantUuid;
85         }
86         public void setProvidingServiceModelInvariantUuid(String providingServiceModelInvariantUuid) {
87                 this.providingServiceModelInvariantUuid = providingServiceModelInvariantUuid;
88         }
89         public String getTargetNetworkRole() {
90                 return this.targetNetworkRole;
91         }
92         public void setTargetNetworkRole(String targetNetworkRole) {
93                 this.targetNetworkRole = targetNetworkRole;
94         }
95         public String getNfFunction() {
96                 return this.nfFunction;
97         }
98         public void setNfFunction(String nfFunction) {
99                 this.nfFunction = nfFunction;
100         }
101         public String getNfType() {
102                 return this.nfType;
103         }
104         public void setNfType(String nfType) {
105                 this.nfType = nfType;
106         }
107         public String getNfRole() {
108                 return this.nfRole;
109         }
110         public void setNfRole(String nfRole) {
111                 this.nfRole = nfRole;
112         }
113         public String getNfNamingCode() {
114                 return this.nfNamingCode;
115         }
116         public void setNfNamingCode(String nfNamingCode) {
117                 this.nfNamingCode = nfNamingCode;
118         }
119         public Integer getMinInstances() {
120                 return this.minInstances;
121         }
122         public void setMinInstances(Integer minInstances) {
123                 this.minInstances = minInstances;
124         }
125         public Integer getMaxInstances() {
126                 return this.maxInstances;
127         }
128         public void setMaxInstances(Integer maxInstances) {
129                 this.maxInstances = maxInstances;
130         }
131
132         @Override
133         public String toString () {
134                 StringBuffer sb = new StringBuffer();
135                 sb.append("modelCustomizationUuid=");
136                 sb.append(this.modelCustomizationUuid);
137                 sb.append(",modelInstanceName=");
138                 sb.append(this.modelInstanceName);
139                 sb.append(",modelInstanceName=");
140                 sb.append(this.modelInstanceName);
141                 sb.append(",created=");
142                 sb.append(this.created);
143                 sb.append(",ar=");
144                 sb.append(this.ar);
145
146                 return sb.toString();
147         }
148
149 }