2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdcrests.vendorlicense.types;
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;
31 import javax.validation.Valid;
32 import javax.validation.constraints.NotNull;
33 import javax.validation.constraints.Size;
35 @ApiModel(value = "EntitlementPoolRequest")
36 //@JsonIgnoreProperties(value = {"manufacturerReferenceNumber"})
37 public class EntitlementPoolRequestDto {
44 private String description;
46 private Integer thresholdValue;
48 private ThresholdUnit thresholdUnits;
51 private ChoiceOrOtherDto<EntitlementMetric> entitlementMetric;
53 private String increments;
56 private ChoiceOrOtherDto<AggregationFunction> aggregationFunction;
59 private MultiChoiceOrOtherDto<OperationalScope> operationalScope;
62 private ChoiceOrOtherDto<EntitlementTime> time;
65 private String manufacturerReferenceNumber;
67 private String startDate;
68 private String expiryDate;
70 public String getName() {
74 public void setName(String name) {
78 public String getDescription() {
82 public void setDescription(String description) {
83 this.description = description;
86 public Integer getThresholdValue() {
87 return thresholdValue;
90 public void setThresholdValue(Integer thresholdValue) {
91 this.thresholdValue = thresholdValue;
94 public ThresholdUnit getThresholdUnits() {
95 return thresholdUnits;
98 public void setThresholdUnits(ThresholdUnit thresholdUnits) {
99 this.thresholdUnits = thresholdUnits;
102 public ChoiceOrOtherDto<EntitlementMetric> getEntitlementMetric() {
103 return entitlementMetric;
106 public void setEntitlementMetric(ChoiceOrOtherDto<EntitlementMetric> entitlementMetric) {
107 this.entitlementMetric = entitlementMetric;
110 public String getIncrements() {
114 public void setIncrements(String increments) {
115 this.increments = increments;
118 public ChoiceOrOtherDto<AggregationFunction> getAggregationFunction() {
119 return aggregationFunction;
122 public void setAggregationFunction(ChoiceOrOtherDto<AggregationFunction> aggregationFunction) {
123 this.aggregationFunction = aggregationFunction;
126 public MultiChoiceOrOtherDto<OperationalScope> getOperationalScope() {
127 return operationalScope;
130 public void setOperationalScope(MultiChoiceOrOtherDto<OperationalScope> operationalScope) {
131 this.operationalScope = operationalScope;
134 public ChoiceOrOtherDto<EntitlementTime> getTime() {
138 public void setTime(ChoiceOrOtherDto<EntitlementTime> time) {
142 public String getManufacturerReferenceNumber() {
143 return manufacturerReferenceNumber;
146 public void setManufacturerReferenceNumber(String manufacturerReferenceNumber) {
147 this.manufacturerReferenceNumber = manufacturerReferenceNumber;
150 public String getStartDate() {
154 public void setStartDate(String startDate) {
155 this.startDate = startDate;
158 public String getExpiryDate() {
162 public void setExpiryDate(String expiryDate) {
163 this.expiryDate = expiryDate;