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.EntitlementPoolType;
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 @Schema(description = "EntitlementPoolRequest")
36 @JsonIgnoreProperties({"time", "aggregationFunction", "entitlementMetric"})
37 public class EntitlementPoolRequestDto {
43 @NotBlank(message = "is mandatory and should not be empty")
45 private String manufacturerReferenceNumber;
48 private String description;
51 private EntitlementPoolType type;
53 private Integer thresholdValue;
55 private ThresholdUnit thresholdUnits;
57 private String increments;
60 private MultiChoiceOrOtherDto<OperationalScope> operationalScope;
62 private String startDate;
63 private String expiryDate;
65 public String getName() {
69 public void setName(String name) {
73 public String getManufacturerReferenceNumber() {
74 return manufacturerReferenceNumber;
77 public void setManufacturerReferenceNumber(String manufacturerReferenceNumber) {
78 this.manufacturerReferenceNumber = manufacturerReferenceNumber;
81 public String getDescription() {
85 public void setDescription(String description) {
86 this.description = description;
89 public EntitlementPoolType getType() {
93 public void setType(EntitlementPoolType type) {
97 public Integer getThresholdValue() {
98 return thresholdValue;
101 public void setThresholdValue(Integer thresholdValue) {
102 this.thresholdValue = thresholdValue;
105 public ThresholdUnit getThresholdUnits() {
106 return thresholdUnits;
109 public void setThresholdUnits(ThresholdUnit thresholdUnits) {
110 this.thresholdUnits = thresholdUnits;
113 public String getIncrements() {
117 public void setIncrements(String increments) {
118 this.increments = increments;
121 public MultiChoiceOrOtherDto<OperationalScope> getOperationalScope() {
122 return operationalScope;
125 public void setOperationalScope(MultiChoiceOrOtherDto<OperationalScope> operationalScope) {
126 this.operationalScope = operationalScope;
129 public String getStartDate() {
133 public void setStartDate(String startDate) {
134 this.startDate = startDate;
137 public String getExpiryDate() {
141 public void setExpiryDate(String expiryDate) {
142 this.expiryDate = expiryDate;