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;
24 import io.swagger.v3.oas.annotations.media.Schema;
25 import org.codehaus.jackson.annotate.JsonIgnoreProperties;
26 import org.hibernate.validator.constraints.NotBlank;
27 import org.openecomp.sdc.vendorlicense.dao.types.OperationalScope;
28 import org.openecomp.sdc.vendorlicense.dao.types.ThresholdUnit;
30 import javax.validation.Valid;
31 import javax.validation.constraints.NotNull;
32 import javax.validation.constraints.Size;
34 @Schema(description = "EntitlementPoolRequest")
35 @JsonIgnoreProperties({"time", "aggregationFunction", "entitlementMetric"})
36 public class EntitlementPoolRequestDto {
42 @NotBlank(message = "is mandatory and should not be empty")
44 private String manufacturerReferenceNumber;
47 private String description;
49 private Integer thresholdValue;
51 private ThresholdUnit thresholdUnits;
53 private String increments;
56 private MultiChoiceOrOtherDto<OperationalScope> operationalScope;
58 private String startDate;
59 private String expiryDate;
61 public String getName() {
65 public void setName(String name) {
69 public String getManufacturerReferenceNumber() {
70 return manufacturerReferenceNumber;
73 public void setManufacturerReferenceNumber(String manufacturerReferenceNumber) {
74 this.manufacturerReferenceNumber = manufacturerReferenceNumber;
77 public String getDescription() {
81 public void setDescription(String description) {
82 this.description = description;
85 public Integer getThresholdValue() {
86 return thresholdValue;
89 public void setThresholdValue(Integer thresholdValue) {
90 this.thresholdValue = thresholdValue;
93 public ThresholdUnit getThresholdUnits() {
94 return thresholdUnits;
97 public void setThresholdUnits(ThresholdUnit thresholdUnits) {
98 this.thresholdUnits = thresholdUnits;
101 public String getIncrements() {
105 public void setIncrements(String increments) {
106 this.increments = increments;
109 public MultiChoiceOrOtherDto<OperationalScope> getOperationalScope() {
110 return operationalScope;
113 public void setOperationalScope(MultiChoiceOrOtherDto<OperationalScope> operationalScope) {
114 this.operationalScope = operationalScope;
117 public String getStartDate() {
121 public void setStartDate(String startDate) {
122 this.startDate = startDate;
125 public String getExpiryDate() {
129 public void setExpiryDate(String expiryDate) {
130 this.expiryDate = expiryDate;