dbd6ddc06370f90adc3647723122d465522dbafd
[sdc.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 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
24 import io.swagger.v3.oas.annotations.media.Schema;
25 import org.codehaus.jackson.annotate.JsonIgnoreProperties;
26 import org.hibernate.validator.constraints.NotBlank;
27 import org.openecomp.sdc.vendorlicense.dao.types.OperationalScope;
28 import org.openecomp.sdc.vendorlicense.dao.types.ThresholdUnit;
29
30 import javax.validation.Valid;
31 import javax.validation.constraints.NotNull;
32 import javax.validation.constraints.Size;
33
34 @Schema(description = "EntitlementPoolRequest")
35 @JsonIgnoreProperties({"time", "aggregationFunction", "entitlementMetric"})
36 public class EntitlementPoolRequestDto {
37
38   @NotNull
39   @Size(max = 120)
40   private String name;
41
42   @NotBlank(message = "is mandatory and should not be empty")
43   @Size(max = 100)
44   private String manufacturerReferenceNumber;
45
46   @Size(max = 1000)
47   private String description;
48
49   private Integer thresholdValue;
50
51   private ThresholdUnit thresholdUnits;
52   @Size(max = 120)
53   private String increments;
54
55   @Valid
56   private MultiChoiceOrOtherDto<OperationalScope> operationalScope;
57
58   private String startDate;
59   private String expiryDate;
60
61   public String getName() {
62     return name;
63   }
64
65   public void setName(String name) {
66     this.name = name;
67   }
68
69   public String getManufacturerReferenceNumber() {
70     return manufacturerReferenceNumber;
71   }
72
73   public void setManufacturerReferenceNumber(String manufacturerReferenceNumber) {
74     this.manufacturerReferenceNumber = manufacturerReferenceNumber;
75   }
76
77   public String getDescription() {
78     return description;
79   }
80
81   public void setDescription(String description) {
82     this.description = description;
83   }
84
85   public Integer getThresholdValue() {
86     return thresholdValue;
87   }
88
89   public void setThresholdValue(Integer thresholdValue) {
90     this.thresholdValue = thresholdValue;
91   }
92
93   public ThresholdUnit getThresholdUnits() {
94     return thresholdUnits;
95   }
96
97   public void setThresholdUnits(ThresholdUnit thresholdUnits) {
98     this.thresholdUnits = thresholdUnits;
99   }
100
101   public String getIncrements() {
102     return increments;
103   }
104
105   public void setIncrements(String increments) {
106     this.increments = increments;
107   }
108
109   public MultiChoiceOrOtherDto<OperationalScope> getOperationalScope() {
110     return operationalScope;
111   }
112
113   public void setOperationalScope(MultiChoiceOrOtherDto<OperationalScope> operationalScope) {
114     this.operationalScope = operationalScope;
115   }
116
117   public String getStartDate() {
118     return startDate;
119   }
120
121   public void setStartDate(String startDate) {
122     this.startDate = startDate;
123   }
124
125   public String getExpiryDate() {
126     return expiryDate;
127   }
128
129   public void setExpiryDate(String expiryDate) {
130     this.expiryDate = expiryDate;
131   }
132 }