daeb9b0d104e4bad1bf93a40d59d5d4020d4c1fb
[sdc.git] /
1 package org.openecomp.sdcrests.vendorlicense.types;
2
3 import io.swagger.annotations.ApiModel;
4 import org.hibernate.validator.constraints.NotBlank;
5
6 import javax.validation.constraints.Size;
7
8 @ApiModel(value = "LimitRequest")
9 public class LimitRequestDto {
10
11   @NotBlank(message = "is mandatory and should not be empty")
12   @Size(max = 120, message = "length should not exceed 120 characters.")
13   private String name;
14   @NotBlank(message = "is mandatory and should not be empty")
15   private String type;
16   @Size(max = 1000, message = "length should not exceed 1000 characters.")
17   private String description;
18   @NotBlank(message = "is mandatory and should not be empty")
19   private String metric;
20   @NotBlank(message = "is mandatory and should not be empty")
21   private String value;
22   private String unit;
23   private String aggregationFunction;
24   private String time;
25
26   public String getName() {
27     return name;
28   }
29
30   public void setName(String name) {
31     this.name = name;
32   }
33
34   public String getDescription() {
35     return description;
36   }
37
38   public void setDescription(String description) {
39     this.description = description;
40   }
41
42   public String getMetric() {
43     return metric;
44   }
45
46   public void setMetric(String metric) {
47     this.metric = metric;
48   }
49
50   public String getType() {
51     return type;
52   }
53
54   public void setType(String type) {
55     this.type = type;
56   }
57
58   public String getAggregationFunction() {
59     return aggregationFunction;
60   }
61
62   public void setAggregationFunction(
63       String aggregationFunction) {
64     this.aggregationFunction = aggregationFunction;
65   }
66
67   public String getTime() {
68     return time;
69   }
70
71   public void setTime(String time) {
72     this.time = time;
73   }
74
75   public String getUnit() {
76     return unit;
77   }
78
79   public void setUnit(String unit) {
80     this.unit = unit;
81   }
82
83   public String getValue() {
84     return value;
85   }
86
87   public void setValue(String value) {
88     this.value = value;
89   }
90
91 }