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.openecomp.sdc.ci.tests.tosca.datatypes;
23 import org.yaml.snakeyaml.TypeDescription;
25 public class ToscaMetadataDefinition {
27 private String invariantUUID;
30 private String description;
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;
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) {
46 this.invariantUUID = invariantUUID;
49 this.description = description;
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;
63 public String getInvariantUUID() {
67 public void setInvariantUUID(String invariantUUID) {
68 this.invariantUUID = invariantUUID;
71 public String getUUID() {
75 public void setUUID(String uUID) {
79 public String getName() {
83 public void setName(String name) {
87 public String getDescription() {
91 public void setDescription(String description) {
92 this.description = description;
95 public String getType() {
99 public void setType(String type) {
103 public String getCategory() {
107 public void setCategory(String category) {
108 this.category = category;
111 public String getSubcategory() {
115 public void setSubcategory(String subcategory) {
116 this.subcategory = subcategory;
119 public String getResourceVendor() {
120 return resourceVendor;
123 public void setResourceVendor(String resourceVendor) {
124 this.resourceVendor = resourceVendor;
127 public String getResourceVendorRelease() {
128 return resourceVendorRelease;
131 public void setResourceVendorRelease(String resourceVendorRelease) {
132 this.resourceVendorRelease = resourceVendorRelease;
135 public String getResourceVendorModelNumber() {
136 return resourceVendorModelNumber;
139 public void setResourceVendorModelNumber(String resourceVendorModelNumber) {
140 this.resourceVendorModelNumber = resourceVendorModelNumber;
143 public String getServiceType() {
147 public void setServiceType(String serviceType) {
148 this.serviceType = serviceType;
151 public String getServiceRole() {
155 public void setServiceRole(String serviceRole) {
156 this.serviceRole = serviceRole;
159 public String getServiceEcompNaming() {
160 return serviceEcompNaming;
163 public void setServiceEcompNaming(String serviceEcompNaming) {
164 this.serviceEcompNaming = serviceEcompNaming;
167 public String getEcompGeneratedNaming() {
168 return ecompGeneratedNaming;
171 public void setEcompGeneratedNaming(String ecompGeneratedNaming) {
172 this.ecompGeneratedNaming = ecompGeneratedNaming;
175 public String getNamingPolicy() {
179 public void setNamingPolicy(String namingPolicy) {
180 this.namingPolicy = namingPolicy;
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 + "]";
190 //gets Type description for Yaml snake
191 public static TypeDescription getTypeDescription(){
192 TypeDescription typeDescription = new TypeDescription(ToscaMetadataDefinition.class);
193 return typeDescription;