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;
27 public class ResourceExternalReqDetails extends ComponentReqDetails {
33 private String resourceType = ResourceTypeEnum.VFC.toString(); // Default
35 public ResourceExternalReqDetails() {
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) {
44 this.resourceType = resourceType;
45 this.name = resourceName;
46 this.description = description;
48 this.vendorName = vendorName;
49 this.vendorRelease = vendorRelease;
50 this.contactId = contactId;
52 this.category = resourceCategory;
53 this.subcategory = resourceSubcategory;
56 public String getVendorName() {
60 public void setVendorName(String vendorName) {
61 this.vendorName = vendorName;
64 public String getVendorRelease() {
68 public void setVendorRelease(String vendorRelease) {
69 this.vendorRelease = vendorRelease;
72 public String getResourceType() {
76 public void setResourceType(String resourceType) {
77 this.resourceType = resourceType;
80 public String getCategory() {
84 public void setCategory(String category) {
85 this.category = category;
88 public String getSubcategory() {
92 public void setSubcategory(String subcategory) {
93 this.subcategory = subcategory;
98 public String toString() {
99 return "ResourceReqDetails [name=" + name + ", vendorName=" + vendorName
100 + ", vendorRelease=" + vendorRelease + ", version=" + version
101 + ", resourceType=" + resourceType + ", category=" + category + ", subcategory=" + subcategory +"]";