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