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