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({"manufacturerReferenceNumber", "time", "aggregationFunction", "entitlementMetric"})
37 public class EntitlementPoolRequestDto {
44 private String description;
46 private Integer thresholdValue;
48 private ThresholdUnit thresholdUnits;
50 private String increments;
53 private MultiChoiceOrOtherDto<OperationalScope> operationalScope;
55 private String startDate;
56 private String expiryDate;
58 public String getName() {
62 public void setName(String name) {
66 public String getDescription() {
70 public void setDescription(String description) {
71 this.description = description;
74 public Integer getThresholdValue() {
75 return thresholdValue;
78 public void setThresholdValue(Integer thresholdValue) {
79 this.thresholdValue = thresholdValue;
82 public ThresholdUnit getThresholdUnits() {
83 return thresholdUnits;
86 public void setThresholdUnits(ThresholdUnit thresholdUnits) {
87 this.thresholdUnits = thresholdUnits;
90 public String getIncrements() {
94 public void setIncrements(String increments) {
95 this.increments = increments;
98 public MultiChoiceOrOtherDto<OperationalScope> getOperationalScope() {
99 return operationalScope;
102 public void setOperationalScope(MultiChoiceOrOtherDto<OperationalScope> operationalScope) {
103 this.operationalScope = operationalScope;
106 public String getStartDate() {
110 public void setStartDate(String startDate) {
111 this.startDate = startDate;
114 public String getExpiryDate() {
118 public void setExpiryDate(String expiryDate) {
119 this.expiryDate = expiryDate;