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 javax.validation.Valid;
23 import javax.validation.constraints.NotNull;
24 import javax.validation.constraints.Size;
25 import org.openecomp.sdc.vendorlicense.dao.types.LicenseKeyType;
26 import org.openecomp.sdc.vendorlicense.dao.types.OperationalScope;
27 import org.openecomp.sdc.vendorlicense.dao.types.ThresholdUnit;
29 public class LicenseKeyGroupRequestDto {
35 private String manufacturerReferenceNumber;
37 private String description;
39 private LicenseKeyType type;
41 private MultiChoiceOrOtherDto<OperationalScope> operationalScope;
42 private String startDate;
43 private String expiryDate;
44 private Integer thresholdValue;
45 private ThresholdUnit thresholdUnits;
47 private String increments;
49 public String getName() {
53 public void setName(String name) {
57 public String getManufacturerReferenceNumber() {
58 return manufacturerReferenceNumber;
61 public void setManufacturerReferenceNumber(String manufacturerReferenceNumber) {
62 this.manufacturerReferenceNumber = manufacturerReferenceNumber;
65 public String getDescription() {
69 public void setDescription(String description) {
70 this.description = description;
73 public LicenseKeyType getType() {
77 public void setType(LicenseKeyType type) {
81 public MultiChoiceOrOtherDto<OperationalScope> getOperationalScope() {
82 return operationalScope;
85 public void setOperationalScope(MultiChoiceOrOtherDto<OperationalScope> operationalScope) {
86 this.operationalScope = operationalScope;
89 public String getStartDate() {
93 public void setStartDate(String startDate) {
94 this.startDate = startDate;
97 public String getExpiryDate() {
101 public void setExpiryDate(String expiryDate) {
102 this.expiryDate = expiryDate;
105 public Integer getThresholdValue() {
106 return thresholdValue;
109 public void setThresholdValue(Integer thresholdValue) {
110 this.thresholdValue = thresholdValue;
113 public ThresholdUnit getThresholdUnits() {
114 return thresholdUnits;
117 public void setThresholdUnits(ThresholdUnit thresholdUnits) {
118 this.thresholdUnits = thresholdUnits;
121 public String getIncrements() {
125 public void setIncrements(String increments) {
126 this.increments = increments;