[SDC] Full OnBoard health-check and NFoD support
[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({"manufacturerReferenceNumber", "time", "aggregationFunction", "entitlementMetric"})
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   @Size(max = 120)
50   private String increments;
51
52   @Valid
53   private MultiChoiceOrOtherDto<OperationalScope> operationalScope;
54
55   private String startDate;
56   private String expiryDate;
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 getDescription() {
67     return description;
68   }
69
70   public void setDescription(String description) {
71     this.description = description;
72   }
73
74   public Integer getThresholdValue() {
75     return thresholdValue;
76   }
77
78   public void setThresholdValue(Integer thresholdValue) {
79     this.thresholdValue = thresholdValue;
80   }
81
82   public ThresholdUnit getThresholdUnits() {
83     return thresholdUnits;
84   }
85
86   public void setThresholdUnits(ThresholdUnit thresholdUnits) {
87     this.thresholdUnits = thresholdUnits;
88   }
89
90   public String getIncrements() {
91     return increments;
92   }
93
94   public void setIncrements(String increments) {
95     this.increments = increments;
96   }
97
98   public MultiChoiceOrOtherDto<OperationalScope> getOperationalScope() {
99     return operationalScope;
100   }
101
102   public void setOperationalScope(MultiChoiceOrOtherDto<OperationalScope> operationalScope) {
103     this.operationalScope = operationalScope;
104   }
105
106   public String getStartDate() {
107     return startDate;
108   }
109
110   public void setStartDate(String startDate) {
111     this.startDate = startDate;
112   }
113
114   public String getExpiryDate() {
115     return expiryDate;
116   }
117
118   public void setExpiryDate(String expiryDate) {
119     this.expiryDate = expiryDate;
120   }
121 }