1 package org.openecomp.sdcrests.vendorlicense.types;
3 import io.swagger.annotations.ApiModel;
4 import org.hibernate.validator.constraints.NotBlank;
5 import org.openecomp.sdc.vendorlicense.dao.types.LimitType;
7 import javax.validation.constraints.Min;
8 import javax.validation.constraints.NotNull;
9 import javax.validation.constraints.Size;
11 @ApiModel(value = "LimitRequest")
12 public class LimitRequestDto {
14 @NotBlank(message = "is mandatory and should not be empty")
15 @Size(max = 120, message = "length should not exceed 120 characters.")
17 @NotBlank(message = "is mandatory and should not be empty")
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")
28 private String aggregationFunction;
31 public String getName() {
35 public void setName(String name) {
39 public String getDescription() {
43 public void setDescription(String description) {
44 this.description = description;
47 public String getMetric() {
51 public void setMetric(String metric) {
55 public String getType() {
59 public void setType(String type) {
63 public String getAggregationFunction() {
64 return aggregationFunction;
67 public void setAggregationFunction(
68 String aggregationFunction) {
69 this.aggregationFunction = aggregationFunction;
72 public String getTime() {
76 public void setTime(String time) {
80 public Integer getUnit() {
84 public void setUnit(Integer unit) {
88 public Integer getValue() {
92 public void setValue(Integer value) {