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