c1e2ef05bf9f0eab84b172b2403f018763995994
[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
36   @Size(max = 100)
37   private String manufacturerReferenceNumber;
38
39   @Size(max = 1000)
40   private String description;
41
42   @NotNull
43   private LicenseKeyType type;
44
45   @Valid
46   private MultiChoiceOrOtherDto<OperationalScope> operationalScope;
47
48   private String startDate;
49   private String expiryDate;
50
51   private Integer thresholdValue;
52
53   private ThresholdUnit thresholdUnits;
54
55   @Size(max = 120)
56   private String increments;
57
58   public String getName() {
59     return name;
60   }
61
62   public void setName(String name) {
63     this.name = name;
64   }
65
66   public String getManufacturerReferenceNumber() {
67     return manufacturerReferenceNumber;
68   }
69
70   public void setManufacturerReferenceNumber(String manufacturerReferenceNumber) {
71     this.manufacturerReferenceNumber = manufacturerReferenceNumber;
72   }
73
74   public String getDescription() {
75     return description;
76   }
77
78   public void setDescription(String description) {
79     this.description = description;
80   }
81
82   public LicenseKeyType getType() {
83     return type;
84   }
85
86   public void setType(LicenseKeyType type) {
87     this.type = type;
88   }
89
90   public MultiChoiceOrOtherDto<OperationalScope> getOperationalScope() {
91     return operationalScope;
92   }
93
94   public void setOperationalScope(MultiChoiceOrOtherDto<OperationalScope> operationalScope) {
95     this.operationalScope = operationalScope;
96   }
97
98   public String getStartDate() {
99     return startDate;
100   }
101
102   public void setStartDate(String startDate) {
103     this.startDate = startDate;
104   }
105
106   public String getExpiryDate() {
107     return expiryDate;
108   }
109
110   public void setExpiryDate(String expiryDate) {
111     this.expiryDate = expiryDate;
112   }
113
114   public Integer getThresholdValue() {
115     return thresholdValue;
116   }
117
118   public void setThresholdValue(Integer thresholdValue) {
119     this.thresholdValue = thresholdValue;
120   }
121
122   public ThresholdUnit getThresholdUnits() {
123     return thresholdUnits;
124   }
125
126   public void setThresholdUnits(ThresholdUnit thresholdUnits) {
127     this.thresholdUnits = thresholdUnits;
128   }
129
130   public String getIncrements() {
131     return increments;
132   }
133
134   public void setIncrements(String increments) {
135     this.increments = increments;
136   }
137 }