2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdcrests.vendorlicense.types;
23 import io.swagger.annotations.ApiModel;
24 import org.hibernate.validator.constraints.NotBlank;
26 import javax.validation.constraints.Size;
28 @ApiModel(value = "LimitRequest")
29 public class LimitRequestDto {
31 @NotBlank(message = "is mandatory and should not be empty")
32 @Size(max = 120, message = "length should not exceed 120 characters.")
34 @NotBlank(message = "is mandatory and should not be empty")
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")
43 private String aggregationFunction;
46 public String getName() {
50 public void setName(String name) {
54 public String getDescription() {
58 public void setDescription(String description) {
59 this.description = description;
62 public String getMetric() {
66 public void setMetric(String metric) {
70 public String getType() {
74 public void setType(String type) {
78 public String getAggregationFunction() {
79 return aggregationFunction;
82 public void setAggregationFunction(
83 String aggregationFunction) {
84 this.aggregationFunction = aggregationFunction;
87 public String getTime() {
91 public void setTime(String time) {
95 public String getUnit() {
99 public void setUnit(String unit) {
103 public String getValue() {
107 public void setValue(String value) {