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