[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / api / openecomp-sdc-rest-webapp / vendor-license-rest / vendor-license-rest-types / src / main / java / org / openecomp / sdcrests / vendorlicense / types / LicenseKeyGroupRequestDto.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.sdcrests.vendorlicense.types;
22
23 import org.openecomp.sdc.vendorlicense.dao.types.LicenseKeyType;
24 import org.openecomp.sdc.vendorlicense.dao.types.OperationalScope;
25
26 import javax.validation.Valid;
27 import javax.validation.constraints.NotNull;
28 import javax.validation.constraints.Size;
29
30 public class LicenseKeyGroupRequestDto {
31   @NotNull
32   @Size(max = 120)
33   private String name;
34   @Size(max = 1000)
35   private String description;
36   @NotNull
37   private LicenseKeyType type;
38
39   @Valid
40   private MultiChoiceOrOtherDto<OperationalScope> operationalScope;
41
42   public String getName() {
43     return name;
44   }
45
46   public void setName(String name) {
47     this.name = name;
48   }
49
50   public String getDescription() {
51     return description;
52   }
53
54   public void setDescription(String description) {
55     this.description = description;
56   }
57
58   public LicenseKeyType getType() {
59     return type;
60   }
61
62   public void setType(LicenseKeyType type) {
63     this.type = type;
64   }
65
66   public MultiChoiceOrOtherDto<OperationalScope> getOperationalScope() {
67     return operationalScope;
68   }
69
70   public void setOperationalScope(MultiChoiceOrOtherDto<OperationalScope> operationalScope) {
71     this.operationalScope = operationalScope;
72   }
73 }