2 * Copyright © 2016-2018 European Support Limited
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
18 import javax.validation.constraints.NotNull;
20 import org.openecomp.sdc.common.util.ValidationUtils;
21 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.LicenseType;
22 import org.openecomp.sdc.vendorsoftwareproduct.types.LicensingData;
25 public class VspDescriptionDto {
30 private String description;
33 private String category;
35 private String subCategory;
37 private String vendorName;
39 private String vendorId; // this will be populated with vlm id
40 private String licensingVersion; // this will be populated with vlm version
41 private LicenseType licenseType;
42 private LicensingData licensingData;
44 public void setName(final String name) {
45 this.name = ValidationUtils.sanitizeInputString(name);
48 public void setVendorName(final String vendorName) {
49 this.vendorName = ValidationUtils.sanitizeInputString(vendorName);
52 public void setDescription(final String description) {
53 this.description = ValidationUtils.sanitizeInputString(description);