[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / api / openecomp-sdc-rest-webapp / vendor-license-rest / vendor-license-rest-types / src / main / java / org / openecomp / sdcrests / vendorlicense / types / LimitRequestDto.java
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   @NotNull(message = "is mandatory and should not be empty")
24   @Min(value = 1, message = "should be integer and > 0")
25   private Integer value;
26   @Min(value = 1, message = "should be integer and > 0")
27   private Integer unit;
28   private String aggregationFunction;
29   private String time;
30
31   public String getName() {
32     return name;
33   }
34
35   public void setName(String name) {
36     this.name = name;
37   }
38
39   public String getDescription() {
40     return description;
41   }
42
43   public void setDescription(String description) {
44     this.description = description;
45   }
46
47   public String getMetric() {
48     return metric;
49   }
50
51   public void setMetric(String metric) {
52     this.metric = metric;
53   }
54
55   public String getType() {
56     return type;
57   }
58
59   public void setType(String type) {
60     this.type = type;
61   }
62
63   public String getAggregationFunction() {
64     return aggregationFunction;
65   }
66
67   public void setAggregationFunction(
68       String aggregationFunction) {
69     this.aggregationFunction = aggregationFunction;
70   }
71
72   public String getTime() {
73     return time;
74   }
75
76   public void setTime(String time) {
77     this.time = time;
78   }
79
80   public Integer getUnit() {
81     return unit;
82   }
83
84   public void setUnit(Integer unit) {
85     this.unit = unit;
86   }
87
88   public Integer getValue() {
89     return value;
90   }
91
92   public void setValue(Integer value) {
93     this.value = value;
94   }
95
96 }