[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 / LicenseAgreementDescriptorDto.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.LicenseTerm;
24
25 import javax.validation.Valid;
26 import javax.validation.constraints.NotNull;
27 import javax.validation.constraints.Size;
28
29 public class LicenseAgreementDescriptorDto {
30
31   @NotNull
32   @Size(max = 120)
33   private String name;
34
35   @Size(max = 1000)
36   private String description;
37   @NotNull
38   @Valid
39   private ChoiceOrOtherDto<LicenseTerm> licenseTerm;
40   @Size(max = 1000)
41   private String requirementsAndConstrains;
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 ChoiceOrOtherDto<LicenseTerm> getLicenseTerm() {
60     return licenseTerm;
61   }
62
63   public void setLicenseTerm(ChoiceOrOtherDto<LicenseTerm> licenseTerm) {
64     this.licenseTerm = licenseTerm;
65   }
66
67   public String getRequirementsAndConstrains() {
68     return requirementsAndConstrains;
69   }
70
71   public void setRequirementsAndConstrains(String requirementsAndConstrains) {
72     this.requirementsAndConstrains = requirementsAndConstrains;
73   }
74 }