1 package org.openecomp.sdcrests.vendorlicense.types;
3 import io.swagger.annotations.ApiModel;
4 import org.hibernate.validator.constraints.NotBlank;
6 import javax.validation.constraints.Size;
8 @ApiModel(value = "LimitRequest")
9 public class LimitRequestDto {
11 @NotBlank(message = "is mandatory and should not be empty")
12 @Size(max = 120, message = "length should not exceed 120 characters.")
14 @NotBlank(message = "is mandatory and should not be empty")
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")
23 private String aggregationFunction;
26 public String getName() {
30 public void setName(String name) {
34 public String getDescription() {
38 public void setDescription(String description) {
39 this.description = description;
42 public String getMetric() {
46 public void setMetric(String metric) {
50 public String getType() {
54 public void setType(String type) {
58 public String getAggregationFunction() {
59 return aggregationFunction;
62 public void setAggregationFunction(
63 String aggregationFunction) {
64 this.aggregationFunction = aggregationFunction;
67 public String getTime() {
71 public void setTime(String time) {
75 public String getUnit() {
79 public void setUnit(String unit) {
83 public String getValue() {
87 public void setValue(String value) {