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.hibernate.validator.constraints.NotBlank;
26 import org.openecomp.sdc.vendorlicense.dao.types.OperationalScope;
27 import org.openecomp.sdc.vendorlicense.dao.types.ThresholdUnit;
29 import javax.validation.Valid;
30 import javax.validation.constraints.NotNull;
31 import javax.validation.constraints.Size;
33 @ApiModel(value = "EntitlementPoolRequest")
34 @JsonIgnoreProperties({"time", "aggregationFunction", "entitlementMetric"})
35 public class EntitlementPoolRequestDto {
41 @NotBlank(message = "is mandatory and should not be empty")
43 private String manufacturerReferenceNumber;
46 private String description;
48 private Integer thresholdValue;
50 private ThresholdUnit thresholdUnits;
52 private String increments;
55 private MultiChoiceOrOtherDto<OperationalScope> operationalScope;
57 private String startDate;
58 private String expiryDate;
60 public String getName() {
64 public void setName(String name) {
68 public String getManufacturerReferenceNumber() {
69 return manufacturerReferenceNumber;
72 public void setManufacturerReferenceNumber(String manufacturerReferenceNumber) {
73 this.manufacturerReferenceNumber = manufacturerReferenceNumber;
76 public String getDescription() {
80 public void setDescription(String description) {
81 this.description = description;
84 public Integer getThresholdValue() {
85 return thresholdValue;
88 public void setThresholdValue(Integer thresholdValue) {
89 this.thresholdValue = thresholdValue;
92 public ThresholdUnit getThresholdUnits() {
93 return thresholdUnits;
96 public void setThresholdUnits(ThresholdUnit thresholdUnits) {
97 this.thresholdUnits = thresholdUnits;
100 public String getIncrements() {
104 public void setIncrements(String increments) {
105 this.increments = increments;
108 public MultiChoiceOrOtherDto<OperationalScope> getOperationalScope() {
109 return operationalScope;
112 public void setOperationalScope(MultiChoiceOrOtherDto<OperationalScope> operationalScope) {
113 this.operationalScope = operationalScope;
116 public String getStartDate() {
120 public void setStartDate(String startDate) {
121 this.startDate = startDate;
124 public String getExpiryDate() {
128 public void setExpiryDate(String expiryDate) {
129 this.expiryDate = expiryDate;