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 @NotBlank(message = "is mandatory and should not be empty")
26 private String aggregationFunction;
29 public String getName() {
33 public void setName(String name) {
37 public String getDescription() {
41 public void setDescription(String description) {
42 this.description = description;
45 public String getMetric() {
49 public void setMetric(String metric) {
53 public String getType() {
57 public void setType(String type) {
61 public String getAggregationFunction() {
62 return aggregationFunction;
65 public void setAggregationFunction(
66 String aggregationFunction) {
67 this.aggregationFunction = aggregationFunction;
70 public String getTime() {
74 public void setTime(String time) {
78 public String getUnit() {
82 public void setUnit(String unit) {
86 public String getValue() {
90 public void setValue(String value) {