92ad0fdb0c989c6c30857b90e614c31720f6bafb
[sdc.git] /
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   private String name;
12   @Size(min = 0, max = 300, message = "length should not exceed 300 characters.")
13   private String description;
14
15   public ComputeDetailsDto() {
16   }
17
18   public String getName() {
19     return name;
20   }
21
22   public void setName(String name) {
23     this.name = name;
24   }
25
26   public String getDescription() {
27     return description;
28   }
29
30   public void setDescription(String description) {
31     this.description = description;
32   }
33 }