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 org.openecomp.sdc.vendorlicense.dao.types.LicenseKeyType;
24 import org.openecomp.sdc.vendorlicense.dao.types.OperationalScope;
25 import org.openecomp.sdc.vendorlicense.dao.types.ThresholdUnit;
27 import javax.validation.Valid;
28 import javax.validation.constraints.NotNull;
29 import javax.validation.constraints.Size;
31 public class LicenseKeyGroupRequestDto {
36 private String description;
38 private LicenseKeyType type;
41 private MultiChoiceOrOtherDto<OperationalScope> operationalScope;
43 private String startDate;
44 private String expiryDate;
46 private Integer thresholdValue;
48 private ThresholdUnit thresholdUnits;
51 private String increments;
53 public String getName() {
57 public void setName(String name) {
61 public String getDescription() {
65 public void setDescription(String description) {
66 this.description = description;
69 public LicenseKeyType getType() {
73 public void setType(LicenseKeyType type) {
77 public MultiChoiceOrOtherDto<OperationalScope> getOperationalScope() {
78 return operationalScope;
81 public void setOperationalScope(MultiChoiceOrOtherDto<OperationalScope> operationalScope) {
82 this.operationalScope = operationalScope;
85 public String getStartDate() {
89 public void setStartDate(String startDate) {
90 this.startDate = startDate;
93 public String getExpiryDate() {
97 public void setExpiryDate(String expiryDate) {
98 this.expiryDate = expiryDate;
101 public Integer getThresholdValue() {
102 return thresholdValue;
105 public void setThresholdValue(Integer thresholdValue) {
106 this.thresholdValue = thresholdValue;
109 public ThresholdUnit getThresholdUnits() {
110 return thresholdUnits;
113 public void setThresholdUnits(ThresholdUnit thresholdUnits) {
114 this.thresholdUnits = thresholdUnits;
117 public String getIncrements() {
121 public void setIncrements(String increments) {
122 this.increments = increments;