[SDC-29] rebase continue work to align source
[sdc.git] / test-apis-ci / src / main / java / org / openecomp / sdc / ci / tests / datatypes / ResourceExternalReqDetails.java
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.datatypes;
22
23 import java.util.List;
24
25 import org.openecomp.sdc.be.datatypes.enums.ResourceTypeEnum;
26 import org.openecomp.sdc.be.model.Resource;
27
28 public class ResourceExternalReqDetails extends ComponentReqDetails {
29         String vendorName;
30         String vendorRelease;
31         String category;
32         String subcategory;
33         
34         private String resourceType = ResourceTypeEnum.VFC.toString(); // Default
35                                                                                                                                         // value
36         public ResourceExternalReqDetails() {
37                 super();
38         }
39         
40         
41         public ResourceExternalReqDetails(String resourceName, String description, List<String> tags,
42                         String vendorName, String vendorRelease, String contactId, String icon,
43                         String resourceType, String resourceCategory, String resourceSubcategory) {
44                 super();
45                 this.resourceType = resourceType;
46                 this.name = resourceName;
47                 this.description = description;
48                 this.tags = tags;
49                 this.vendorName = vendorName;
50                 this.vendorRelease = vendorRelease;
51                 this.contactId = contactId;
52                 this.icon = icon;
53                 this.category = resourceCategory;
54                 this.subcategory = resourceSubcategory;
55         }
56
57         public String getVendorName() {
58                 return vendorName;
59         }
60
61         public void setVendorName(String vendorName) {
62                 this.vendorName = vendorName;
63         }
64
65         public String getVendorRelease() {
66                 return vendorRelease;
67         }
68
69         public void setVendorRelease(String vendorRelease) {
70                 this.vendorRelease = vendorRelease;
71         }
72         
73         public String getResourceType() {
74                 return resourceType;
75         }
76
77         public void setResourceType(String resourceType) {
78                 this.resourceType = resourceType;
79         }
80         
81         public String getCategory() {
82                 return category;
83         }
84
85         public void setCategory(String category) {
86                 this.category = category;
87         }
88
89         public String getSubcategory() {
90                 return subcategory;
91         }
92
93         public void setSubcategory(String subcategory) {
94                 this.subcategory = subcategory;
95         }
96         
97
98         @Override
99         public String toString() {
100                 return "ResourceReqDetails [name=" + name + ", vendorName=" + vendorName
101                                 + ", vendorRelease=" + vendorRelease + ", version=" + version
102                                 + ", resourceType=" + resourceType + ", category=" + category + ", subcategory=" + subcategory +"]";
103         }
104
105 }