1 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
3 import org.hibernate.validator.constraints.NotBlank;
5 import javax.validation.constraints.Pattern;
6 import javax.validation.constraints.Size;
8 public class ComputeDetailsDto implements CompositionDataEntityDto {
9 @NotBlank(message = "is mandatory and should not be empty")
10 @Size(min = 0, max = 30, message = "length should not exceed 30 characters.")
11 @Pattern(regexp = "^[a-zA-Z 0-9._-]*$", message = "must match \"^[a-zA-Z 0-9._-]*$\"")
13 @Size(min = 0, max = 300, message = "length should not exceed 300 characters.")
14 private String description;
16 public ComputeDetailsDto() {
19 public String getName() {
23 public void setName(String name) {
27 public String getDescription() {
31 public void setDescription(String description) {
32 this.description = description;