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=========================================================
20 package org.openecomp.sdcrests.vendorlicense.types;
22 import io.swagger.v3.oas.annotations.media.Schema;
23 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
24 import org.hibernate.validator.constraints.NotBlank;
25 import org.openecomp.sdc.vendorlicense.dao.types.EntitlementPoolType;
26 import org.openecomp.sdc.vendorlicense.dao.types.OperationalScope;
27 import org.openecomp.sdc.vendorlicense.dao.types.ThresholdUnit;
28 import javax.validation.Valid;
29 import javax.validation.constraints.NotNull;
30 import javax.validation.constraints.Size;
32 @Schema(description = "EntitlementPoolRequest")
33 @JsonIgnoreProperties({"time", "aggregationFunction", "entitlementMetric"})
34 public class EntitlementPoolRequestDto {
39 @NotBlank(message = "is mandatory and should not be empty")
41 private String manufacturerReferenceNumber;
43 private String description;
45 private EntitlementPoolType type;
46 private Integer thresholdValue;
47 private ThresholdUnit thresholdUnits;
49 private String increments;
51 private MultiChoiceOrOtherDto<OperationalScope> operationalScope;
52 private String startDate;
53 private String expiryDate;
55 public String getName() {
59 public void setName(String name) {
63 public String getManufacturerReferenceNumber() {
64 return manufacturerReferenceNumber;
67 public void setManufacturerReferenceNumber(String manufacturerReferenceNumber) {
68 this.manufacturerReferenceNumber = manufacturerReferenceNumber;
71 public String getDescription() {
75 public void setDescription(String description) {
76 this.description = description;
79 public EntitlementPoolType getType() {
83 public void setType(EntitlementPoolType type) {
87 public Integer getThresholdValue() {
88 return thresholdValue;
91 public void setThresholdValue(Integer thresholdValue) {
92 this.thresholdValue = thresholdValue;
95 public ThresholdUnit getThresholdUnits() {
96 return thresholdUnits;
99 public void setThresholdUnits(ThresholdUnit thresholdUnits) {
100 this.thresholdUnits = thresholdUnits;
103 public String getIncrements() {
107 public void setIncrements(String increments) {
108 this.increments = increments;
111 public MultiChoiceOrOtherDto<OperationalScope> getOperationalScope() {
112 return operationalScope;
115 public void setOperationalScope(MultiChoiceOrOtherDto<OperationalScope> operationalScope) {
116 this.operationalScope = operationalScope;
119 public String getStartDate() {
123 public void setStartDate(String startDate) {
124 this.startDate = startDate;
127 public String getExpiryDate() {
131 public void setExpiryDate(String expiryDate) {
132 this.expiryDate = expiryDate;