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 resourceVendorModelNumber */
\r
65 private String resourceVendorModelNumber;
\r
67 /** The service ecomp naming. */
\r
68 private String serviceEcompNaming;
\r
70 /** The ecomp generated naming - duplicate for serviceEcompNaming */
\r
71 private boolean ecompGeneratedNaming;
\r
73 /** The naming policy */
\r
74 private String namingPolicy;
\r
76 /** The service homing. */
\r
77 private boolean serviceHoming;
\r
79 /** The vf module model name. */
\r
80 //ToscaMetadata for VF Modules
\r
81 private String vfModuleModelName;
\r
83 /** The vf module model invariant UUID. */
\r
84 private String vfModuleModelInvariantUUID;
\r
86 /** The vf module model customization UUID. */
\r
87 private String vfModuleModelCustomizationUUID;
\r
89 /** The vf module model UUID. */
\r
90 private String vfModuleModelUUID;
\r
92 /** The vf module model version. */
\r
93 private String vfModuleModelVersion;
\r
96 private String serviceType;
\r
98 private String serviceRole;
\r
101 * Instantiates a new tosca metadata.
\r
103 public ToscaMetadata() {}
\r
110 public String getType() {
\r
115 * Gets the invariant UUID.
\r
117 * @return the invariant UUID
\r
119 public String getInvariantUUID() {
\r
120 return invariantUUID;
\r
123 * Gets the customization UUID.
\r
125 * @return the customization UUID
\r
127 public String getCustomizationUUID() {
\r
128 return customizationUUID;
\r
135 public String getUUID() {
\r
140 * Gets the version.
\r
142 * @return the version
\r
144 public String getVersion() {
\r
153 public String getName() {
\r
158 * Gets the description.
\r
160 * @return the description
\r
162 public String getDescription() {
\r
163 return description;
\r
167 * Gets the category.
\r
169 * @return the category
\r
171 public String getCategory() {
\r
176 * Gets the subcategory.
\r
178 * @return the subcategory
\r
180 public String getSubcategory() {
\r
181 return subcategory;
\r
185 * Gets the resource vendor.
\r
187 * @return the resource vendor
\r
189 public String getResourceVendor() {
\r
190 return resourceVendor;
\r
194 * Gets the resource vendor release.
\r
196 * @return the resource vendor release
\r
198 public String getResourceVendorRelease() {
\r
199 return resourceVendorRelease;
\r
203 * Returns the value of service ecomp naming.
\r
205 * @return serviceEcompNaming
\r
207 public String getServiceEcompNaming() {
\r
208 return serviceEcompNaming;
\r
211 * Returns the value of the naming policy.
\r
213 * @return namingPolicy
\r
215 public String getNamingPolicy() {
\r
216 return namingPolicy;
\r
219 * Checks if is service homing.
\r
221 * @return true, if is service homing
\r
223 public boolean isServiceHoming() {
\r
224 return serviceHoming;
\r
227 * Checks if is ecomp generated naming.
\r
229 * @return true, if ecomp generated naming is true
\r
231 public boolean isEcompGeneratedNaming() {
\r
232 return ecompGeneratedNaming;
\r
237 * @param type the new type
\r
239 public void setType(String type) {
\r
244 * Sets the invariant UUID.
\r
246 * @param invariantUUID the new invariant UUID
\r
248 public void setInvariantUUID(String invariantUUID) {
\r
249 this.invariantUUID = invariantUUID;
\r
252 * Sets the naming policy.
\r
254 * @param namingPolicy the new naming policy
\r
256 public void setNamingPolicy(String namingPolicy) {
\r
257 this.namingPolicy = namingPolicy;
\r
262 * @param uuid the new uuid
\r
264 public void setUUID(String uuid) {
\r
268 * Sets the customization uuid.
\r
270 * @param u the new customization uuid
\r
272 public void setCustomizationUUID(String u) {
\r
273 this.customizationUUID = u;
\r
276 * Sets the version.
\r
278 * @param version the new version
\r
280 public void setVersion(String version) {
\r
281 this.version = version;
\r
287 * @param name the new name
\r
289 public void setName(String name) {
\r
294 * Sets the description.
\r
296 * @param description the new description
\r
298 public void setDescription(String description) {
\r
299 this.description = description;
\r
303 * Sets the category.
\r
305 * @param category the new category
\r
307 public void setCategory(String category) {
\r
308 this.category = category;
\r
312 * Sets the service ecomp naming.
\r
314 * @param serviceEcompNaming the new service ecomp naming
\r
316 public void setServiceEcompNaming(String serviceEcompNaming) {
\r
317 this.serviceEcompNaming = serviceEcompNaming;
\r
321 * Sets the service homing.
\r
323 * @param serviceHoming the new service homing
\r
325 public void setServiceHoming(boolean serviceHoming) {
\r
326 this.serviceHoming = serviceHoming;
\r
329 * Sets the ecomp generated naming.
\r
331 * @param ecompGeneratedNaming the new ecomp generated naming
\r
333 public void setEcompGeneratedNaming(boolean ecompGeneratedNaming) {
\r
334 this.ecompGeneratedNaming = ecompGeneratedNaming;
\r
337 * Gets the template name.
\r
339 * @return the template name
\r
341 public String gettemplate_name() {
\r
342 return template_name;
\r
346 * Sets the template name.
\r
348 * @param template_name the new template name
\r
350 public void settemplate_name(String template_name) {
\r
351 this.template_name = template_name;
\r
355 * Sets the subcategory.
\r
357 * @param subcategory the new subcategory
\r
359 public void setSubcategory(String subcategory) {
\r
360 this.subcategory = subcategory;
\r
364 * Sets the resource vendor.
\r
366 * @param resourceVendor the new resource vendor
\r
368 public void setResourceVendor(String resourceVendor) {
\r
369 this.resourceVendor = resourceVendor;
\r
373 * Sets the resource vendor release.
\r
375 * @param resourceVendorRelease the new resource vendor release
\r
377 public void setResourceVendorRelease(String resourceVendorRelease) {
\r
378 this.resourceVendorRelease = resourceVendorRelease;
\r
382 * Gets the vf module model name.
\r
384 * @return the vf module model name
\r
386 public String getVfModuleModelName() {
\r
387 return vfModuleModelName;
\r
391 * Sets the vf module model name.
\r
393 * @param vfModuleModelName the new vf module model name
\r
395 public void setVfModuleModelName(String vfModuleModelName) {
\r
396 this.vfModuleModelName = vfModuleModelName;
\r
400 * Gets the vf module model invariant UUID.
\r
402 * @return the vf module model invariant UUID
\r
404 public String getVfModuleModelInvariantUUID() {
\r
405 return vfModuleModelInvariantUUID;
\r
409 * Sets the vf module model invariant UUID.
\r
411 * @param vfModuleModelInvariantUUID the new vf module model invariant UUID
\r
413 public void setVfModuleModelInvariantUUID(String vfModuleModelInvariantUUID) {
\r
414 this.vfModuleModelInvariantUUID = vfModuleModelInvariantUUID;
\r
418 * Gets the vf module model UUID.
\r
420 * @return the vf module model UUID
\r
422 public String getVfModuleModelUUID() {
\r
423 return vfModuleModelUUID;
\r
427 * Sets the vf module model UUID.
\r
429 * @param vfModuleModelUUID the new vf module model UUID
\r
431 public void setVfModuleModelUUID(String vfModuleModelUUID) {
\r
432 this.vfModuleModelUUID = vfModuleModelUUID;
\r
436 * Gets the vf module model version.
\r
438 * @return the vf module model version
\r
440 public String getVfModuleModelVersion() {
\r
441 return vfModuleModelVersion;
\r
445 * Sets the vf module model version.
\r
447 * @param vfModuleModelVersion the new vf module model version
\r
449 public void setVfModuleModelVersion(String vfModuleModelVersion) {
\r
450 this.vfModuleModelVersion = vfModuleModelVersion;
\r
453 * Sets the vf module customization uuid.
\r
455 * @param u the new vf module model customization uuid
\r
457 public void setVfModuleModelCustomizationUUID(String u) {
\r
458 this.vfModuleModelCustomizationUUID = u;
\r
461 * Gets the vf module model customization uuid.
\r
463 * @return the vf module model customization uuid
\r
465 public String getVfModuleModelCustomizationUUID() {
\r
467 return vfModuleModelCustomizationUUID;
\r
471 public String getServiceType() {
\r
472 return serviceType;
\r
474 public void setServiceType(String serviceType) {
\r
475 this.serviceType= serviceType;
\r
478 public String getServiceRole() {
\r
479 return serviceRole;
\r
481 public void setServiceRole(String serviceRole) {
\r
482 this.serviceRole= serviceRole;
\r
484 /** resourceVendorModelNumber */
\r
485 public String getResourceVendorModelNumber() {
\r
486 return resourceVendorModelNumber;
\r
488 public void setResourceVendorModelNumber(String resourceVendorModelNumber) {
\r
489 this.resourceVendorModelNumber= resourceVendorModelNumber;
\r