Added oparent to sdc main
[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 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdcrests.vendorlicense.types;
22
23 import io.swagger.annotations.ApiModel;
24 import org.hibernate.validator.constraints.NotBlank;
25
26 import javax.validation.constraints.Size;
27
28 @ApiModel(value = "LimitRequest")
29 public class LimitRequestDto {
30
31   @NotBlank(message = "is mandatory and should not be empty")
32   @Size(max = 120, message = "length should not exceed 120 characters.")
33   private String name;
34   @NotBlank(message = "is mandatory and should not be empty")
35   private String type;
36   @Size(max = 1000, message = "length should not exceed 1000 characters.")
37   private String description;
38   @NotBlank(message = "is mandatory and should not be empty")
39   private String metric;
40   @NotBlank(message = "is mandatory and should not be empty")
41   private String value;
42   private String unit;
43   private String aggregationFunction;
44   private String time;
45
46   public String getName() {
47     return name;
48   }
49
50   public void setName(String name) {
51     this.name = name;
52   }
53
54   public String getDescription() {
55     return description;
56   }
57
58   public void setDescription(String description) {
59     this.description = description;
60   }
61
62   public String getMetric() {
63     return metric;
64   }
65
66   public void setMetric(String metric) {
67     this.metric = metric;
68   }
69
70   public String getType() {
71     return type;
72   }
73
74   public void setType(String type) {
75     this.type = type;
76   }
77
78   public String getAggregationFunction() {
79     return aggregationFunction;
80   }
81
82   public void setAggregationFunction(
83       String aggregationFunction) {
84     this.aggregationFunction = aggregationFunction;
85   }
86
87   public String getTime() {
88     return time;
89   }
90
91   public void setTime(String time) {
92     this.time = time;
93   }
94
95   public String getUnit() {
96     return unit;
97   }
98
99   public void setUnit(String unit) {
100     this.unit = unit;
101   }
102
103   public String getValue() {
104     return value;
105   }
106
107   public void setValue(String value) {
108     this.value = value;
109   }
110
111 }