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