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 {
37 private String manufacturerReferenceNumber;
40 private String description;
43 private LicenseKeyType type;
46 private MultiChoiceOrOtherDto<OperationalScope> operationalScope;
48 private String startDate;
49 private String expiryDate;
51 private Integer thresholdValue;
53 private ThresholdUnit thresholdUnits;
56 private String increments;
58 public String getName() {
62 public void setName(String name) {
66 public String getManufacturerReferenceNumber() {
67 return manufacturerReferenceNumber;
70 public void setManufacturerReferenceNumber(String manufacturerReferenceNumber) {
71 this.manufacturerReferenceNumber = manufacturerReferenceNumber;
74 public String getDescription() {
78 public void setDescription(String description) {
79 this.description = description;
82 public LicenseKeyType getType() {
86 public void setType(LicenseKeyType type) {
90 public MultiChoiceOrOtherDto<OperationalScope> getOperationalScope() {
91 return operationalScope;
94 public void setOperationalScope(MultiChoiceOrOtherDto<OperationalScope> operationalScope) {
95 this.operationalScope = operationalScope;
98 public String getStartDate() {
102 public void setStartDate(String startDate) {
103 this.startDate = startDate;
106 public String getExpiryDate() {
110 public void setExpiryDate(String expiryDate) {
111 this.expiryDate = expiryDate;
114 public Integer getThresholdValue() {
115 return thresholdValue;
118 public void setThresholdValue(Integer thresholdValue) {
119 this.thresholdValue = thresholdValue;
122 public ThresholdUnit getThresholdUnits() {
123 return thresholdUnits;
126 public void setThresholdUnits(ThresholdUnit thresholdUnits) {
127 this.thresholdUnits = thresholdUnits;
130 public String getIncrements() {
134 public void setIncrements(String increments) {
135 this.increments = increments;