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.datatypes;
23 import java.util.List;
25 import org.openecomp.sdc.be.datatypes.enums.ResourceTypeEnum;
26 import org.openecomp.sdc.be.model.Resource;
28 public class ResourceExternalReqDetails extends ComponentReqDetails {
34 private String resourceType = ResourceTypeEnum.VFC.toString(); // Default
36 public ResourceExternalReqDetails() {
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) {
45 this.resourceType = resourceType;
46 this.name = resourceName;
47 this.description = description;
49 this.vendorName = vendorName;
50 this.vendorRelease = vendorRelease;
51 this.contactId = contactId;
53 this.category = resourceCategory;
54 this.subcategory = resourceSubcategory;
57 public String getVendorName() {
61 public void setVendorName(String vendorName) {
62 this.vendorName = vendorName;
65 public String getVendorRelease() {
69 public void setVendorRelease(String vendorRelease) {
70 this.vendorRelease = vendorRelease;
73 public String getResourceType() {
77 public void setResourceType(String resourceType) {
78 this.resourceType = resourceType;
81 public String getCategory() {
85 public void setCategory(String category) {
86 this.category = category;
89 public String getSubcategory() {
93 public void setSubcategory(String subcategory) {
94 this.subcategory = subcategory;
99 public String toString() {
100 return "ResourceReqDetails [name=" + name + ", vendorName=" + vendorName
101 + ", vendorRelease=" + vendorRelease + ", version=" + version
102 + ", resourceType=" + resourceType + ", category=" + category + ", subcategory=" + subcategory +"]";