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.openecomp.sdc.vendorlicense.dao.types.AggregationFunction;
25 import org.openecomp.sdc.vendorlicense.dao.types.EntitlementMetric;
26 import org.openecomp.sdc.vendorlicense.dao.types.EntitlementTime;
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 @ApiModel(value = "EntitlementPoolRequest")
35 public class EntitlementPoolRequestDto {
42 private String description;
44 private int thresholdValue;
46 private ThresholdUnit thresholdUnits;
49 private ChoiceOrOtherDto<EntitlementMetric> entitlementMetric;
51 private String increments;
54 private ChoiceOrOtherDto<AggregationFunction> aggregationFunction;
57 private MultiChoiceOrOtherDto<OperationalScope> operationalScope;
60 private ChoiceOrOtherDto<EntitlementTime> time;
63 private String manufacturerReferenceNumber;
65 public String getName() {
69 public void setName(String name) {
73 public String getDescription() {
77 public void setDescription(String description) {
78 this.description = description;
81 public int getThresholdValue() {
82 return thresholdValue;
85 public void setThresholdValue(int thresholdValue) {
86 this.thresholdValue = thresholdValue;
89 public ThresholdUnit getThresholdUnits() {
90 return thresholdUnits;
93 public void setThresholdUnits(ThresholdUnit thresholdUnits) {
94 this.thresholdUnits = thresholdUnits;
97 public ChoiceOrOtherDto<EntitlementMetric> getEntitlementMetric() {
98 return entitlementMetric;
101 public void setEntitlementMetric(ChoiceOrOtherDto<EntitlementMetric> entitlementMetric) {
102 this.entitlementMetric = entitlementMetric;
105 public String getIncrements() {
109 public void setIncrements(String increments) {
110 this.increments = increments;
113 public ChoiceOrOtherDto<AggregationFunction> getAggregationFunction() {
114 return aggregationFunction;
117 public void setAggregationFunction(ChoiceOrOtherDto<AggregationFunction> aggregationFunction) {
118 this.aggregationFunction = aggregationFunction;
121 public MultiChoiceOrOtherDto<OperationalScope> getOperationalScope() {
122 return operationalScope;
125 public void setOperationalScope(MultiChoiceOrOtherDto<OperationalScope> operationalScope) {
126 this.operationalScope = operationalScope;
129 public ChoiceOrOtherDto<EntitlementTime> getTime() {
133 public void setTime(ChoiceOrOtherDto<EntitlementTime> time) {
137 public String getManufacturerReferenceNumber() {
138 return manufacturerReferenceNumber;
141 public void setManufacturerReferenceNumber(String manufacturerReferenceNumber) {
142 this.manufacturerReferenceNumber = manufacturerReferenceNumber;