2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.vid.asdc.beans.tosca;
24 * The Class ToscaMetadata.
26 public class ToscaMetadata {
28 /** The template name. */
29 private String template_name;
31 /** The invariant UUID. */
32 private String invariantUUID;
34 /** The customization UUID. */
35 private String customizationUUID;
41 private String version;
46 /** The description. */
47 private String description;
50 private String category;
52 /** The subcategory. */
53 private String subcategory;
58 /** The resource vendor. */
59 private String resourceVendor;
61 /** The resource vendor release. */
62 private String resourceVendorRelease;
64 /** The service ecomp naming. */
65 private String serviceEcompNaming;
67 /** The ecomp generated naming - duplicate for serviceEcompNaming */
68 private boolean ecompGeneratedNaming;
70 /** The naming policy */
71 private String namingPolicy;
73 /** The service homing. */
74 private boolean serviceHoming;
76 /** The vf module model name. */
77 //ToscaMetadata for VF Modules
78 private String vfModuleModelName;
80 /** The vf module model invariant UUID. */
81 private String vfModuleModelInvariantUUID;
83 /** The vf module model customization UUID. */
84 private String vfModuleModelCustomizationUUID;
86 /** The vf module model UUID. */
87 private String vfModuleModelUUID;
89 /** The vf module model version. */
90 private String vfModuleModelVersion;
93 * Instantiates a new tosca metadata.
95 public ToscaMetadata() {}
102 public String getType() {
107 * Gets the invariant UUID.
109 * @return the invariant UUID
111 public String getInvariantUUID() {
112 return invariantUUID;
115 * Gets the customization UUID.
117 * @return the customization UUID
119 public String getCustomizationUUID() {
120 return customizationUUID;
127 public String getUUID() {
134 * @return the version
136 public String getVersion() {
145 public String getName() {
150 * Gets the description.
152 * @return the description
154 public String getDescription() {
161 * @return the category
163 public String getCategory() {
168 * Gets the subcategory.
170 * @return the subcategory
172 public String getSubcategory() {
177 * Gets the resource vendor.
179 * @return the resource vendor
181 public String getResourceVendor() {
182 return resourceVendor;
186 * Gets the resource vendor release.
188 * @return the resource vendor release
190 public String getResourceVendorRelease() {
191 return resourceVendorRelease;
195 * Returns the value of service ecomp naming.
197 * @return serviceEcompNaming
199 public String getServiceEcompNaming() {
200 return serviceEcompNaming;
203 * Returns the value of the naming policy.
205 * @return namingPolicy
207 public String getNamingPolicy() {
211 * Checks if is service homing.
213 * @return true, if is service homing
215 public boolean isServiceHoming() {
216 return serviceHoming;
219 * Checks if is ecomp generated naming.
221 * @return true, if ecomp generated naming is true
223 public boolean isEcompGeneratedNaming() {
224 return ecompGeneratedNaming;
229 * @param type the new type
231 public void setType(String type) {
236 * Sets the invariant UUID.
238 * @param invariantUUID the new invariant UUID
240 public void setInvariantUUID(String invariantUUID) {
241 this.invariantUUID = invariantUUID;
244 * Sets the naming policy.
246 * @param namingPolicy the new naming policy
248 public void setNamingPolicy(String namingPolicy) {
249 this.namingPolicy = namingPolicy;
254 * @param uuid the new uuid
256 public void setUUID(String uuid) {
260 * Sets the customization uuid.
262 * @param u the new customization uuid
264 public void setCustomizationUUID(String u) {
265 this.customizationUUID = u;
270 * @param version the new version
272 public void setVersion(String version) {
273 this.version = version;
279 * @param name the new name
281 public void setName(String name) {
286 * Sets the description.
288 * @param description the new description
290 public void setDescription(String description) {
291 this.description = description;
297 * @param category the new category
299 public void setCategory(String category) {
300 this.category = category;
304 * Sets the service ecomp naming.
306 * @param serviceEcompNaming the new service ecomp naming
308 public void setServiceEcompNaming(String serviceEcompNaming) {
309 this.serviceEcompNaming = serviceEcompNaming;
313 * Sets the service homing.
315 * @param serviceHoming the new service homing
317 public void setServiceHoming(boolean serviceHoming) {
318 this.serviceHoming = serviceHoming;
321 * Sets the ecomp generated naming.
323 * @param ecompGeneratedNaming the new ecomp generated naming
325 public void setEcompGeneratedNaming(boolean ecompGeneratedNaming) {
326 this.ecompGeneratedNaming = ecompGeneratedNaming;
329 * Gets the template name.
331 * @return the template name
333 public String gettemplate_name() {
334 return template_name;
338 * Sets the template name.
340 * @param template_name the new template name
342 public void settemplate_name(String template_name) {
343 this.template_name = template_name;
347 * Sets the subcategory.
349 * @param subcategory the new subcategory
351 public void setSubcategory(String subcategory) {
352 this.subcategory = subcategory;
356 * Sets the resource vendor.
358 * @param resourceVendor the new resource vendor
360 public void setResourceVendor(String resourceVendor) {
361 this.resourceVendor = resourceVendor;
365 * Sets the resource vendor release.
367 * @param resourceVendorRelease the new resource vendor release
369 public void setResourceVendorRelease(String resourceVendorRelease) {
370 this.resourceVendorRelease = resourceVendorRelease;
374 * Gets the vf module model name.
376 * @return the vf module model name
378 public String getVfModuleModelName() {
379 return vfModuleModelName;
383 * Sets the vf module model name.
385 * @param vfModuleModelName the new vf module model name
387 public void setVfModuleModelName(String vfModuleModelName) {
388 this.vfModuleModelName = vfModuleModelName;
392 * Gets the vf module model invariant UUID.
394 * @return the vf module model invariant UUID
396 public String getVfModuleModelInvariantUUID() {
397 return vfModuleModelInvariantUUID;
401 * Sets the vf module model invariant UUID.
403 * @param vfModuleModelInvariantUUID the new vf module model invariant UUID
405 public void setVfModuleModelInvariantUUID(String vfModuleModelInvariantUUID) {
406 this.vfModuleModelInvariantUUID = vfModuleModelInvariantUUID;
410 * Gets the vf module model UUID.
412 * @return the vf module model UUID
414 public String getVfModuleModelUUID() {
415 return vfModuleModelUUID;
419 * Sets the vf module model UUID.
421 * @param vfModuleModelUUID the new vf module model UUID
423 public void setVfModuleModelUUID(String vfModuleModelUUID) {
424 this.vfModuleModelUUID = vfModuleModelUUID;
428 * Gets the vf module model version.
430 * @return the vf module model version
432 public String getVfModuleModelVersion() {
433 return vfModuleModelVersion;
437 * Sets the vf module model version.
439 * @param vfModuleModelVersion the new vf module model version
441 public void setVfModuleModelVersion(String vfModuleModelVersion) {
442 this.vfModuleModelVersion = vfModuleModelVersion;
445 * Sets the vf module customization uuid.
447 * @param u the new vf module model customization uuid
449 public void setVfModuleModelCustomizationUUID(String u) {
450 this.vfModuleModelCustomizationUUID = u;
453 * Gets the vf module model customization uuid.
455 * @return the vf module model customization uuid
457 public String getVfModuleModelCustomizationUUID() {
459 return vfModuleModelCustomizationUUID;