d3e68b84469fc64d042df49f3232b49a95c6e816
[sdc.git] /
1 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
2
3 import org.hibernate.validator.constraints.NotBlank;
4
5 import javax.validation.constraints.Size;
6
7 public class ComputeDetailsDto implements CompositionDataEntityDto {
8   @NotBlank(message = "is mandatory and should not be empty")
9   @Size(min = 0, max = 30, message = "length should not exceed 30 characters.")
10   private String name;
11   @Size(min = 0, max = 300, message = "length should not exceed 300 characters.")
12   private String description;
13
14   public ComputeDetailsDto() {
15   }
16
17   public String getName() {
18     return name;
19   }
20
21   public void setName(String name) {
22     this.name = name;
23   }
24
25   public String getDescription() {
26     return description;
27   }
28
29   public void setDescription(String description) {
30     this.description = description;
31   }
32 }