[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / api / openecomp-sdc-rest-webapp / vendor-software-products-rest / vendor-software-products-rest-types / src / main / java / org / openecomp / sdcrests / vendorsoftwareproducts / types / ComputeDetailsDto.java
1 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
2
3 import org.hibernate.validator.constraints.NotBlank;
4
5 import javax.validation.constraints.Pattern;
6 import javax.validation.constraints.Size;
7
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._-]*$\"")
12   private String name;
13   @Size(min = 0, max = 300, message = "length should not exceed 300 characters.")
14   private String description;
15
16   public ComputeDetailsDto() {
17   }
18
19   public String getName() {
20     return name;
21   }
22
23   public void setName(String name) {
24     this.name = name;
25   }
26
27   public String getDescription() {
28     return description;
29   }
30
31   public void setDescription(String description) {
32     this.description = description;
33   }
34 }