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