ceba7adbe4471e7bb6ee870d41133f10d38e758c
[sdc.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
21 package org.openecomp.sdc.ci.tests.tosca.datatypes;
22
23 import org.yaml.snakeyaml.TypeDescription;
24
25 public class ToscaMetadataDefinition {
26
27         private String invariantUUID;
28         private String UUID;
29         private String name;
30         private String description;
31         private String type;
32         private String category;
33         private String subcategory;
34         private String resourceVendor;
35         private String resourceVendorRelease;
36         private String resourceVendorModelNumber;
37         private String serviceType;
38         private String serviceRole;
39         private String serviceEcompNaming;
40         private String ecompGeneratedNaming;
41         private String namingPolicy;
42         
43         public ToscaMetadataDefinition(String invariantUUID, String uUID, String name, String description, String type, String category, String subcategory, String resourceVendor, String resourceVendorRelease, String resourceVendorModelNumber,
44                         String serviceType, String serviceRole, String serviceEcompNaming, String ecompGeneratedNaming, String namingPolicy) {
45                 super();
46                 this.invariantUUID = invariantUUID;
47                 UUID = uUID;
48                 this.name = name;
49                 this.description = description;
50                 this.type = type;
51                 this.category = category;
52                 this.subcategory = subcategory;
53                 this.resourceVendor = resourceVendor;
54                 this.resourceVendorRelease = resourceVendorRelease;
55                 this.resourceVendorModelNumber = resourceVendorModelNumber;
56                 this.serviceType = serviceType;
57                 this.serviceRole = serviceRole;
58                 this.serviceEcompNaming = serviceEcompNaming;
59                 this.ecompGeneratedNaming = ecompGeneratedNaming;
60                 this.namingPolicy = namingPolicy;
61         }
62
63         public String getInvariantUUID() {
64                 return invariantUUID;
65         }
66
67         public void setInvariantUUID(String invariantUUID) {
68                 this.invariantUUID = invariantUUID;
69         }
70
71         public String getUUID() {
72                 return UUID;
73         }
74
75         public void setUUID(String uUID) {
76                 UUID = uUID;
77         }
78
79         public String getName() {
80                 return name;
81         }
82
83         public void setName(String name) {
84                 this.name = name;
85         }
86
87         public String getDescription() {
88                 return description;
89         }
90
91         public void setDescription(String description) {
92                 this.description = description;
93         }
94
95         public String getType() {
96                 return type;
97         }
98
99         public void setType(String type) {
100                 this.type = type;
101         }
102
103         public String getCategory() {
104                 return category;
105         }
106
107         public void setCategory(String category) {
108                 this.category = category;
109         }
110
111         public String getSubcategory() {
112                 return subcategory;
113         }
114
115         public void setSubcategory(String subcategory) {
116                 this.subcategory = subcategory;
117         }
118
119         public String getResourceVendor() {
120                 return resourceVendor;
121         }
122
123         public void setResourceVendor(String resourceVendor) {
124                 this.resourceVendor = resourceVendor;
125         }
126
127         public String getResourceVendorRelease() {
128                 return resourceVendorRelease;
129         }
130
131         public void setResourceVendorRelease(String resourceVendorRelease) {
132                 this.resourceVendorRelease = resourceVendorRelease;
133         }
134
135         public String getResourceVendorModelNumber() {
136                 return resourceVendorModelNumber;
137         }
138
139         public void setResourceVendorModelNumber(String resourceVendorModelNumber) {
140                 this.resourceVendorModelNumber = resourceVendorModelNumber;
141         }
142
143         public String getServiceType() {
144                 return serviceType;
145         }
146
147         public void setServiceType(String serviceType) {
148                 this.serviceType = serviceType;
149         }
150
151         public String getServiceRole() {
152                 return serviceRole;
153         }
154
155         public void setServiceRole(String serviceRole) {
156                 this.serviceRole = serviceRole;
157         }
158
159         public String getServiceEcompNaming() {
160                 return serviceEcompNaming;
161         }
162
163         public void setServiceEcompNaming(String serviceEcompNaming) {
164                 this.serviceEcompNaming = serviceEcompNaming;
165         }
166
167         public String getEcompGeneratedNaming() {
168                 return ecompGeneratedNaming;
169         }
170
171         public void setEcompGeneratedNaming(String ecompGeneratedNaming) {
172                 this.ecompGeneratedNaming = ecompGeneratedNaming;
173         }
174
175         public String getNamingPolicy() {
176                 return namingPolicy;
177         }
178
179         public void setNamingPolicy(String namingPolicy) {
180                 this.namingPolicy = namingPolicy;
181         }
182
183         @Override
184         public String toString() {
185                 return "ToscaMetadataDefinition [invariantUUID=" + invariantUUID + ", UUID=" + UUID + ", name=" + name + ", description=" + description + ", type=" + type + ", category=" + category + ", subcategory=" + subcategory
186                                 + ", resourceVendor=" + resourceVendor + ", resourceVendorRelease=" + resourceVendorRelease + ", resourceVendorModelNumber=" + resourceVendorModelNumber + ", serviceType=" + serviceType + ", serviceRole=" + serviceRole
187                                 + ", serviceEcompNaming=" + serviceEcompNaming + ", ecompGeneratedNaming=" + ecompGeneratedNaming + ", namingPolicy=" + namingPolicy + "]";
188         }
189         
190         //gets Type description for Yaml snake
191         public static TypeDescription getTypeDescription(){
192         TypeDescription typeDescription = new TypeDescription(ToscaMetadataDefinition.class);
193         return typeDescription;
194         }
195         
196 }