2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
21 package org.openecomp.vid.asdc.beans.tosca;
\r
24 * The Class ToscaMetadata.
\r
26 public class ToscaMetadata {
\r
28 /** The template name. */
\r
29 private String template_name;
\r
31 /** The invariant UUID. */
\r
32 private String invariantUUID;
\r
34 /** The customization UUID. */
\r
35 private String customizationUUID;
\r
38 private String uuid;
\r
41 private String version;
\r
44 private String name;
\r
46 /** The description. */
\r
47 private String description;
\r
49 /** The category. */
\r
50 private String category;
\r
52 /** The subcategory. */
\r
53 private String subcategory;
\r
56 private String type;
\r
58 /** The resource vendor. */
\r
59 private String resourceVendor;
\r
61 /** The resource vendor release. */
\r
62 private String resourceVendorRelease;
\r
64 /** The service ecomp naming. */
\r
65 private String serviceEcompNaming;
\r
67 /** The ecomp generated naming - duplicate for serviceEcompNaming */
\r
68 private boolean ecompGeneratedNaming;
\r
70 /** The naming policy */
\r
71 private String namingPolicy;
\r
73 /** The service homing. */
\r
74 private boolean serviceHoming;
\r
76 /** The vf module model name. */
\r
77 //ToscaMetadata for VF Modules
\r
78 private String vfModuleModelName;
\r
80 /** The vf module model invariant UUID. */
\r
81 private String vfModuleModelInvariantUUID;
\r
83 /** The vf module model customization UUID. */
\r
84 private String vfModuleModelCustomizationUUID;
\r
86 /** The vf module model UUID. */
\r
87 private String vfModuleModelUUID;
\r
89 /** The vf module model version. */
\r
90 private String vfModuleModelVersion;
\r
93 * Instantiates a new tosca metadata.
\r
95 public ToscaMetadata() {}
\r
102 public String getType() {
\r
107 * Gets the invariant UUID.
\r
109 * @return the invariant UUID
\r
111 public String getInvariantUUID() {
\r
112 return invariantUUID;
\r
115 * Gets the customization UUID.
\r
117 * @return the customization UUID
\r
119 public String getCustomizationUUID() {
\r
120 return customizationUUID;
\r
127 public String getUUID() {
\r
132 * Gets the version.
\r
134 * @return the version
\r
136 public String getVersion() {
\r
145 public String getName() {
\r
150 * Gets the description.
\r
152 * @return the description
\r
154 public String getDescription() {
\r
155 return description;
\r
159 * Gets the category.
\r
161 * @return the category
\r
163 public String getCategory() {
\r
168 * Gets the subcategory.
\r
170 * @return the subcategory
\r
172 public String getSubcategory() {
\r
173 return subcategory;
\r
177 * Gets the resource vendor.
\r
179 * @return the resource vendor
\r
181 public String getResourceVendor() {
\r
182 return resourceVendor;
\r
186 * Gets the resource vendor release.
\r
188 * @return the resource vendor release
\r
190 public String getResourceVendorRelease() {
\r
191 return resourceVendorRelease;
\r
195 * Returns the value of service ecomp naming.
\r
197 * @return serviceEcompNaming
\r
199 public String getServiceEcompNaming() {
\r
200 return serviceEcompNaming;
\r
203 * Returns the value of the naming policy.
\r
205 * @return namingPolicy
\r
207 public String getNamingPolicy() {
\r
208 return namingPolicy;
\r
211 * Checks if is service homing.
\r
213 * @return true, if is service homing
\r
215 public boolean isServiceHoming() {
\r
216 return serviceHoming;
\r
219 * Checks if is ecomp generated naming.
\r
221 * @return true, if ecomp generated naming is true
\r
223 public boolean isEcompGeneratedNaming() {
\r
224 return ecompGeneratedNaming;
\r
229 * @param type the new type
\r
231 public void setType(String type) {
\r
236 * Sets the invariant UUID.
\r
238 * @param invariantUUID the new invariant UUID
\r
240 public void setInvariantUUID(String invariantUUID) {
\r
241 this.invariantUUID = invariantUUID;
\r
244 * Sets the naming policy.
\r
246 * @param namingPolicy the new naming policy
\r
248 public void setNamingPolicy(String namingPolicy) {
\r
249 this.namingPolicy = namingPolicy;
\r
254 * @param uuid the new uuid
\r
256 public void setUUID(String uuid) {
\r
260 * Sets the customization uuid.
\r
262 * @param u the new customization uuid
\r
264 public void setCustomizationUUID(String u) {
\r
265 this.customizationUUID = u;
\r
268 * Sets the version.
\r
270 * @param version the new version
\r
272 public void setVersion(String version) {
\r
273 this.version = version;
\r
279 * @param name the new name
\r
281 public void setName(String name) {
\r
286 * Sets the description.
\r
288 * @param description the new description
\r
290 public void setDescription(String description) {
\r
291 this.description = description;
\r
295 * Sets the category.
\r
297 * @param category the new category
\r
299 public void setCategory(String category) {
\r
300 this.category = category;
\r
304 * Sets the service ecomp naming.
\r
306 * @param serviceEcompNaming the new service ecomp naming
\r
308 public void setServiceEcompNaming(String serviceEcompNaming) {
\r
309 this.serviceEcompNaming = serviceEcompNaming;
\r
313 * Sets the service homing.
\r
315 * @param serviceHoming the new service homing
\r
317 public void setServiceHoming(boolean serviceHoming) {
\r
318 this.serviceHoming = serviceHoming;
\r
321 * Sets the ecomp generated naming.
\r
323 * @param ecompGeneratedNaming the new ecomp generated naming
\r
325 public void setEcompGeneratedNaming(boolean ecompGeneratedNaming) {
\r
326 this.ecompGeneratedNaming = ecompGeneratedNaming;
\r
329 * Gets the template name.
\r
331 * @return the template name
\r
333 public String gettemplate_name() {
\r
334 return template_name;
\r
338 * Sets the template name.
\r
340 * @param template_name the new template name
\r
342 public void settemplate_name(String template_name) {
\r
343 this.template_name = template_name;
\r
347 * Sets the subcategory.
\r
349 * @param subcategory the new subcategory
\r
351 public void setSubcategory(String subcategory) {
\r
352 this.subcategory = subcategory;
\r
356 * Sets the resource vendor.
\r
358 * @param resourceVendor the new resource vendor
\r
360 public void setResourceVendor(String resourceVendor) {
\r
361 this.resourceVendor = resourceVendor;
\r
365 * Sets the resource vendor release.
\r
367 * @param resourceVendorRelease the new resource vendor release
\r
369 public void setResourceVendorRelease(String resourceVendorRelease) {
\r
370 this.resourceVendorRelease = resourceVendorRelease;
\r
374 * Gets the vf module model name.
\r
376 * @return the vf module model name
\r
378 public String getVfModuleModelName() {
\r
379 return vfModuleModelName;
\r
383 * Sets the vf module model name.
\r
385 * @param vfModuleModelName the new vf module model name
\r
387 public void setVfModuleModelName(String vfModuleModelName) {
\r
388 this.vfModuleModelName = vfModuleModelName;
\r
392 * Gets the vf module model invariant UUID.
\r
394 * @return the vf module model invariant UUID
\r
396 public String getVfModuleModelInvariantUUID() {
\r
397 return vfModuleModelInvariantUUID;
\r
401 * Sets the vf module model invariant UUID.
\r
403 * @param vfModuleModelInvariantUUID the new vf module model invariant UUID
\r
405 public void setVfModuleModelInvariantUUID(String vfModuleModelInvariantUUID) {
\r
406 this.vfModuleModelInvariantUUID = vfModuleModelInvariantUUID;
\r
410 * Gets the vf module model UUID.
\r
412 * @return the vf module model UUID
\r
414 public String getVfModuleModelUUID() {
\r
415 return vfModuleModelUUID;
\r
419 * Sets the vf module model UUID.
\r
421 * @param vfModuleModelUUID the new vf module model UUID
\r
423 public void setVfModuleModelUUID(String vfModuleModelUUID) {
\r
424 this.vfModuleModelUUID = vfModuleModelUUID;
\r
428 * Gets the vf module model version.
\r
430 * @return the vf module model version
\r
432 public String getVfModuleModelVersion() {
\r
433 return vfModuleModelVersion;
\r
437 * Sets the vf module model version.
\r
439 * @param vfModuleModelVersion the new vf module model version
\r
441 public void setVfModuleModelVersion(String vfModuleModelVersion) {
\r
442 this.vfModuleModelVersion = vfModuleModelVersion;
\r
445 * Sets the vf module customization uuid.
\r
447 * @param u the new vf module model customization uuid
\r
449 public void setVfModuleModelCustomizationUUID(String u) {
\r
450 this.vfModuleModelCustomizationUUID = u;
\r
453 * Gets the vf module model customization uuid.
\r
455 * @return the vf module model customization uuid
\r
457 public String getVfModuleModelCustomizationUUID() {
\r
459 return vfModuleModelCustomizationUUID;
\r