0df2e3251facb5d5e13c361c50bd9dcf697488b7
[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   @NotNull
35   @Size(max = 1000)
36   private String description;
37   @NotNull
38   private LicenseKeyType type;
39   @NotNull
40   @Valid
41   private MultiChoiceOrOtherDto<OperationalScope> operationalScope;
42
43   public String getName() {
44     return name;
45   }
46
47   public void setName(String name) {
48     this.name = name;
49   }
50
51   public String getDescription() {
52     return description;
53   }
54
55   public void setDescription(String description) {
56     this.description = description;
57   }
58
59   public LicenseKeyType getType() {
60     return type;
61   }
62
63   public void setType(LicenseKeyType type) {
64     this.type = type;
65   }
66
67   public MultiChoiceOrOtherDto<OperationalScope> getOperationalScope() {
68     return operationalScope;
69   }
70
71   public void setOperationalScope(MultiChoiceOrOtherDto<OperationalScope> operationalScope) {
72     this.operationalScope = operationalScope;
73   }
74 }