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