[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / api / openecomp-sdc-rest-webapp / vendor-license-rest / vendor-license-rest-types / src / main / java / org / openecomp / sdcrests / vendorlicense / types / EntitlementPoolRequestDto.java
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.AggregationFunction;
26 import org.openecomp.sdc.vendorlicense.dao.types.EntitlementMetric;
27 import org.openecomp.sdc.vendorlicense.dao.types.EntitlementTime;
28 import org.openecomp.sdc.vendorlicense.dao.types.OperationalScope;
29 import org.openecomp.sdc.vendorlicense.dao.types.ThresholdUnit;
30
31 import javax.validation.Valid;
32 import javax.validation.constraints.NotNull;
33 import javax.validation.constraints.Size;
34
35 @ApiModel(value = "EntitlementPoolRequest")
36 //@JsonIgnoreProperties(value = {"manufacturerReferenceNumber"})
37 public class EntitlementPoolRequestDto {
38
39   @NotNull
40   @Size(max = 120)
41   private String name;
42
43   @Size(max = 1000)
44   private String description;
45
46   private Integer thresholdValue;
47
48   private ThresholdUnit thresholdUnits;
49   @NotNull
50   @Valid
51   private ChoiceOrOtherDto<EntitlementMetric> entitlementMetric;
52   @Size(max = 120)
53   private String increments;
54   @NotNull
55   @Valid
56   private ChoiceOrOtherDto<AggregationFunction> aggregationFunction;
57
58   @Valid
59   private MultiChoiceOrOtherDto<OperationalScope> operationalScope;
60   @NotNull
61   @Valid
62   private ChoiceOrOtherDto<EntitlementTime> time;
63   @NotNull
64   @Size(max = 100)
65   private String manufacturerReferenceNumber;
66
67   private String startDate;
68   private String expiryDate;
69
70   public String getName() {
71     return name;
72   }
73
74   public void setName(String name) {
75     this.name = name;
76   }
77
78   public String getDescription() {
79     return description;
80   }
81
82   public void setDescription(String description) {
83     this.description = description;
84   }
85
86   public Integer getThresholdValue() {
87     return thresholdValue;
88   }
89
90   public void setThresholdValue(Integer thresholdValue) {
91     this.thresholdValue = thresholdValue;
92   }
93
94   public ThresholdUnit getThresholdUnits() {
95     return thresholdUnits;
96   }
97
98   public void setThresholdUnits(ThresholdUnit thresholdUnits) {
99     this.thresholdUnits = thresholdUnits;
100   }
101
102   public ChoiceOrOtherDto<EntitlementMetric> getEntitlementMetric() {
103     return entitlementMetric;
104   }
105
106   public void setEntitlementMetric(ChoiceOrOtherDto<EntitlementMetric> entitlementMetric) {
107     this.entitlementMetric = entitlementMetric;
108   }
109
110   public String getIncrements() {
111     return increments;
112   }
113
114   public void setIncrements(String increments) {
115     this.increments = increments;
116   }
117
118   public ChoiceOrOtherDto<AggregationFunction> getAggregationFunction() {
119     return aggregationFunction;
120   }
121
122   public void setAggregationFunction(ChoiceOrOtherDto<AggregationFunction> aggregationFunction) {
123     this.aggregationFunction = aggregationFunction;
124   }
125
126   public MultiChoiceOrOtherDto<OperationalScope> getOperationalScope() {
127     return operationalScope;
128   }
129
130   public void setOperationalScope(MultiChoiceOrOtherDto<OperationalScope> operationalScope) {
131     this.operationalScope = operationalScope;
132   }
133
134   public ChoiceOrOtherDto<EntitlementTime> getTime() {
135     return time;
136   }
137
138   public void setTime(ChoiceOrOtherDto<EntitlementTime> time) {
139     this.time = time;
140   }
141
142   public String getManufacturerReferenceNumber() {
143     return manufacturerReferenceNumber;
144   }
145
146   public void setManufacturerReferenceNumber(String manufacturerReferenceNumber) {
147     this.manufacturerReferenceNumber = manufacturerReferenceNumber;
148   }
149
150   public String getStartDate() {
151     return startDate;
152   }
153
154   public void setStartDate(String startDate) {
155     this.startDate = startDate;
156   }
157
158   public String getExpiryDate() {
159     return expiryDate;
160   }
161
162   public void setExpiryDate(String expiryDate) {
163     this.expiryDate = expiryDate;
164   }
165 }